2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, tomb }:
|
2018-04-18 20:27:03 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
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}"'
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-18 20:27:03 +01:00
|
|
|
description = "Pass extension that keeps the password store encrypted inside a tomb";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/roddhjav/pass-tomb";
|
2018-04-18 20:27:03 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2020-05-09 10:25:07 +01:00
|
|
|
maintainers = with maintainers; [ lovek323 fpletz tadfisher ];
|
2018-04-18 20:27:03 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|