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