mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-15 08:46:25 +00:00
51 lines
761 B
Nix
51 lines
761 B
Nix
|
{ lib
|
||
|
, stdenv
|
||
|
, 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;
|
||
|
};
|
||
|
}
|
||
|
|