nix-configurations/pkgs/wofi-pass/default.nix

25 lines
620 B
Nix
Raw Permalink Normal View History

2023-04-21 03:18:13 +00:00
{ stdenv, lib, fetchFromGitHub, bash, pkgs, makeWrapper }:
2023-04-16 15:07:24 +00:00
with lib;
2023-06-18 04:00:57 +00:00
with pkgs;
2023-04-16 15:07:24 +00:00
stdenv.mkDerivation {
pname = "wofi-pass";
version = "0.1";
src = fetchFromGitHub {
owner = "TinfoilSubmarine";
repo = "wofi-pass";
rev = "869c545";
sha256 = "gcfW8E/3/dqv0P3S4z9fDv8k4R7czcIKwpo/OHFFWj0=";
};
2023-06-18 04:00:57 +00:00
buildInputs = [ bash coreutils wl-clipboard wofi wtype ];
2023-04-17 16:37:10 +00:00
2023-04-16 15:07:24 +00:00
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
cp wofi-pass $out/bin/wofi-pass
wrapProgram $out/bin/wofi-pass \
2023-06-18 04:00:57 +00:00
--prefix PATH : ${makeBinPath [ bash coreutils wl-clipboard wofi wtype ]}
2023-04-16 15:07:24 +00:00
'';
}