diff --git a/pkgs/tools/security/pass/extensions/default.nix b/pkgs/tools/security/pass/extensions/default.nix index 96c252156de8..f7ac0a3d16ba 100644 --- a/pkgs/tools/security/pass/extensions/default.nix +++ b/pkgs/tools/security/pass/extensions/default.nix @@ -12,4 +12,5 @@ with pkgs; pass-tomb = callPackage ./tomb.nix {}; pass-update = callPackage ./update.nix {}; pass-genphrase = callPackage ./genphrase.nix {}; + pass-file = callPackage ./file.nix {}; } diff --git a/pkgs/tools/security/pass/extensions/file.nix b/pkgs/tools/security/pass/extensions/file.nix new file mode 100644 index 000000000000..43321d80855c --- /dev/null +++ b/pkgs/tools/security/pass/extensions/file.nix @@ -0,0 +1,23 @@ +{ lib, stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "pass-file"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "dvogt23"; + repo = pname; + rev = version; + hash = "sha256-18KvmcfLwelyk9RV/IMaj6O/nkQEQz84eUEB/mRaKE4="; + }; + + installFlags = [ "PREFIX=$(out)" ]; + + meta = with lib; { + description = "A pass extension that allows to add files to password-store."; + homepage = "https://github.com/dvogt23/pass-file"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ taranarmo ]; + platforms = platforms.unix; + }; +}