ungoogled-chromium: 131.0.6778.264-1 -> 132.0.6834.83-1 (#375093)
[NixPkgs.git] / pkgs / tools / security / pass / extensions / tomb.nix
blobf9ad7fe0f894194f681949396c2eda609fdd052c
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   tomb,
6 }:
8 stdenv.mkDerivation rec {
9   pname = "pass-tomb";
10   version = "1.3";
12   src = fetchFromGitHub {
13     owner = "roddhjav";
14     repo = "pass-tomb";
15     rev = "v${version}";
16     sha256 = "sha256-kbbMHmYmeyt7HM8YiNhknePm1vUaXWWXPWePKGpbU+o=";
17   };
19   buildInputs = [ tomb ];
21   dontBuild = true;
23   installFlags = [ "PREFIX=$(out)" ];
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   '';
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   };