about summary refs log tree commit diff
path: root/pkgs/top-level
diff options
context:
space:
mode:
authorZak B. Elep <zakame@zakame.net>2023-10-21 16:45:22 +0800
committerZak B. Elep <zakame@zakame.net>2023-10-21 16:45:22 +0800
commite4ae0ebfbb91799a5d7c182708c52fd4cc95b05f (patch)
treea4a3b8f2efa2219bb31f9af219694d7d01f2eec2 /pkgs/top-level
parentb31b994ff43b07a4dc6ef94b5b329da7d1a506df (diff)
perlPackages.CryptHSXKPasswd: fix deps and shebang for Darwin
Diffstat (limited to 'pkgs/top-level')
-rw-r--r--pkgs/top-level/perl-packages.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix
index 425ece6b7beea..ea65b3a702688 100644
--- a/pkgs/top-level/perl-packages.nix
+++ b/pkgs/top-level/perl-packages.nix
@@ -4954,7 +4954,12 @@ with self; {
       url = "mirror://cpan/authors/id/B/BA/BARTB/Crypt-HSXKPasswd-v3.6.tar.gz";
       hash = "sha256-lZ3MX58BG/ALha0i31ZrerK/XqHTYrDeD7WuKfvEWLM=";
     };
-    buildInputs = [ Clone DateTime FileHomeDir FileShare FileShareDir GetoptLong JSON ListMoreUtils MathRound Readonly TextUnidecode TypeTiny ];
+    nativeBuildInputs = lib.optional stdenv.isDarwin shortenPerlShebang;
+    propagatedBuildInputs = [ Clone DateTime FileHomeDir FileShare FileShareDir GetoptLong JSON ListMoreUtils MathRound Readonly TextUnidecode TypeTiny ];
+    postInstall = lib.optionalString stdenv.isDarwin ''
+      shortenPerlShebang $out/bin/hsxkpasswd
+    '';
+
     meta = {
       description = "A secure memorable password generator";
       homepage = "http://www.bartb.ie/hsxkpasswd";