summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorEmily Trau <13267947+emilytrau@users.noreply.github.com>2023-12-01 22:25:53 +1100
committerGitHub <noreply@github.com>2023-12-01 22:25:53 +1100
commit604365c826de879261fece225683ed7331e218bc (patch)
treea476cef794621f3608fd5c3e642b42c55fb15acf /pkgs
parent5ecdf2b6fdc4fbf002396e9e713271890ac7aa61 (diff)
parent86498a74a769ab07f865f02c641e80fc47e7458b (diff)
Merge pull request #262046 from taranarmo/master
passExtensions.pass-file: init at 1.0.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/security/pass/extensions/default.nix1
-rw-r--r--pkgs/tools/security/pass/extensions/file.nix23
2 files changed, 24 insertions, 0 deletions
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;
+ };
+}