From 86498a74a769ab07f865f02c641e80fc47e7458b Mon Sep 17 00:00:00 2001 From: Sergey Volkov Date: Thu, 19 Oct 2023 13:17:12 +0200 Subject: [PATCH] passExtensions.pass-file: init at 1.0.0 --- .../security/pass/extensions/default.nix | 1 + pkgs/tools/security/pass/extensions/file.nix | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/tools/security/pass/extensions/file.nix 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; + }; +}