nix-config/pkgs/pass-wofi/default.nix
Greg Burd f3fd89af54
A fork of Misterio77 and his standard template.
Many thangs to the hard work and generous availability of:
git@github.com:Misterio77/nix-config.git
2023-09-15 10:53:38 -04:00

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;
};
}