3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/pass/extensions/tomb.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
877 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, tomb }:
2018-04-18 20:27:03 +01:00
stdenv.mkDerivation rec {
pname = "pass-tomb";
2021-08-15 11:52:34 +01:00
version = "1.3";
2018-04-18 20:27:03 +01:00
src = fetchFromGitHub {
owner = "roddhjav";
repo = "pass-tomb";
rev = "v${version}";
2021-08-15 11:52:34 +01:00
sha256 = "sha256-kbbMHmYmeyt7HM8YiNhknePm1vUaXWWXPWePKGpbU+o=";
2018-04-18 20:27:03 +01:00
};
buildInputs = [ tomb ];
dontBuild = true;
installFlags = [ "PREFIX=$(out)" ];
postFixup = ''
substituteInPlace $out/lib/password-store/extensions/tomb.bash \
--replace 'TOMB="''${PASSWORD_STORE_TOMB:-tomb}"' 'TOMB="''${PASSWORD_STORE_TOMB:-${tomb}/bin/tomb}"'
'';
meta = with lib; {
2018-04-18 20:27:03 +01:00
description = "Pass extension that keeps the password store encrypted inside a tomb";
homepage = "https://github.com/roddhjav/pass-tomb";
2018-04-18 20:27:03 +01:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ lovek323 fpletz tadfisher ];
2018-04-18 20:27:03 +01:00
platforms = platforms.unix;
};
}