mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
33 lines
888 B
Nix
33 lines
888 B
Nix
{ stdenv, fetchFromGitHub, tomb }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pass-tomb";
|
|
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}"'
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Pass extension that keeps the password store encrypted inside a tomb";
|
|
homepage = https://github.com/roddhjav/pass-tomb;
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ lovek323 the-kenny fpletz tadfisher ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|