Merge pull request #262492 from zakame/fixes/hsxkpasswd-deps-darwin

perlPackages.CryptHSXKPasswd: fix deps and shebang for Darwin
This commit is contained in:
Stig 2023-10-21 15:22:01 +02:00 committed by GitHub
commit 4a86fdcb23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";