Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 908 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 tomb, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "pass-tomb"; 10 version = "1.3"; 11 12 src = fetchFromGitHub { 13 owner = "roddhjav"; 14 repo = "pass-tomb"; 15 rev = "v${version}"; 16 sha256 = "sha256-kbbMHmYmeyt7HM8YiNhknePm1vUaXWWXPWePKGpbU+o="; 17 }; 18 19 buildInputs = [ tomb ]; 20 21 dontBuild = true; 22 23 installFlags = [ "PREFIX=$(out)" ]; 24 25 postFixup = '' 26 substituteInPlace $out/lib/password-store/extensions/tomb.bash \ 27 --replace 'TOMB="''${PASSWORD_STORE_TOMB:-tomb}"' 'TOMB="''${PASSWORD_STORE_TOMB:-${tomb}/bin/tomb}"' 28 ''; 29 30 meta = with lib; { 31 description = "Pass extension that keeps the password store encrypted inside a tomb"; 32 homepage = "https://github.com/roddhjav/pass-tomb"; 33 license = licenses.gpl3Plus; 34 maintainers = with maintainers; [ 35 lovek323 36 fpletz 37 tadfisher 38 ]; 39 platforms = platforms.unix; 40 }; 41}