summary refs log tree commit diff
path: root/pkgs/tools/security/pass
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2021-06-07 20:26:43 +0200
committerElis Hirwing <elis@hirwing.se>2021-06-07 21:31:42 +0200
commit0ac806adebd4b6660217563fe6876f561067f47c (patch)
tree73a3892f05d62593036745849b64908bcf747212 /pkgs/tools/security/pass
parent12e7af1cfb3ab5bbbbd1d213a0b17c11ce9d3f2f (diff)
downloadnixpkgs-0ac806adebd4b6660217563fe6876f561067f47c.tar
nixpkgs-0ac806adebd4b6660217563fe6876f561067f47c.tar.gz
nixpkgs-0ac806adebd4b6660217563fe6876f561067f47c.tar.bz2
nixpkgs-0ac806adebd4b6660217563fe6876f561067f47c.tar.lz
nixpkgs-0ac806adebd4b6660217563fe6876f561067f47c.tar.xz
nixpkgs-0ac806adebd4b6660217563fe6876f561067f47c.tar.zst
nixpkgs-0ac806adebd4b6660217563fe6876f561067f47c.zip
passExtensions.pass-checkup: 0.2.0 -> 0.2.1
Diffstat (limited to 'pkgs/tools/security/pass')
-rw-r--r--pkgs/tools/security/pass/extensions/checkup.nix22
1 files changed, 15 insertions, 7 deletions
diff --git a/pkgs/tools/security/pass/extensions/checkup.nix b/pkgs/tools/security/pass/extensions/checkup.nix
index bafaabba843..5ae846d4a4b 100644
--- a/pkgs/tools/security/pass/extensions/checkup.nix
+++ b/pkgs/tools/security/pass/extensions/checkup.nix
@@ -1,18 +1,22 @@
 { lib, stdenv, fetchFromGitHub
-, curl, findutils, gnugrep, gnused }:
+, curl, findutils, gnugrep, gnused, shellcheck }:
 
-stdenv.mkDerivation rec {
+let
   pname = "pass-checkup";
-  version = "0.2.0";
+  version = "0.2.1";
+in stdenv.mkDerivation {
+  inherit pname version;
 
   src = fetchFromGitHub {
     owner = "etu";
-    repo = "pass-checkup";
+    repo = pname;
     rev = version;
-    sha256 = "17fyf8zj535fg43yddjww1jhxfb3nbdkn622wjxaai2nf46jzh7y";
+    sha256 = "18b6rx59r7g0hvqs2affvw0g0jyifyzhanwgz2q2b8nhjgqgnar2";
   };
 
-  patchPhase = ''
+  nativeBuildInputs = [ shellcheck ];
+
+  postPatch = ''
     substituteInPlace checkup.bash \
       --replace curl ${curl}/bin/curl \
       --replace find ${findutils}/bin/find \
@@ -21,13 +25,17 @@ stdenv.mkDerivation rec {
   '';
 
   installPhase = ''
+    runHook preInstall
+
     install -D -m755 checkup.bash $out/lib/password-store/extensions/checkup.bash
+
+    runHook postInstall
   '';
 
   meta = with lib; {
     description = "A pass extension to check against the Have I been pwned API to see if your passwords are publicly leaked or not";
     homepage = "https://github.com/etu/pass-checkup";
-    license = licenses.gpl3;
+    license = licenses.gpl3Plus;
     maintainers = with maintainers; [ etu ];
     platforms = platforms.unix;
   };