mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-14 16:36:24 +00:00
f3fd89af54
Many thangs to the hard work and generous availability of: git@github.com:Misterio77/nix-config.git
52 lines
786 B
Nix
52 lines
786 B
Nix
{ lib
|
|
, pkgs
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
, pass
|
|
, jq
|
|
, wofi
|
|
, libnotify
|
|
, wl-clipboard
|
|
, findutils
|
|
, gnused
|
|
, coreutils
|
|
}:
|
|
|
|
with lib;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "pass-wofi";
|
|
version = "1.0";
|
|
src = ./pass-wofi.sh;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
dontUnpack = true;
|
|
dontBuild = true;
|
|
dontConfigure = true;
|
|
|
|
installPhase = ''
|
|
install -Dm 0755 $src $out/bin/pass-wofi
|
|
wrapProgram $out/bin/pass-wofi --set PATH \
|
|
"${
|
|
makeBinPath [
|
|
pass
|
|
jq
|
|
wofi
|
|
libnotify
|
|
wl-clipboard
|
|
findutils
|
|
gnused
|
|
coreutils
|
|
]
|
|
}"
|
|
'';
|
|
|
|
meta = {
|
|
description = "A wofi graphical menu for pass";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|
|
|