Skip to content

Commit

Permalink
perlPackages.AuthenSimple: don't test the "crypt" algo
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Mar 22, 2023
1 parent 0537539 commit a973339
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkgs/top-level/perl-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1350,6 +1350,20 @@ let
url = "mirror://cpan/authors/id/C/CH/CHANSEN/Authen-Simple-0.5.tar.gz";
hash = "sha256-As3atH+L8aHL1Mm/jSWPbQURFJnDP4MV5yRIEvcmE6o=";
};
# Our C crypt() doesn't support this weak "crypt" algorithm anymore.
postPatch = ''
patch -p1 <<-EOF
--- a/t/09password.t
+++ b/t/09password.t
@@ -10 +10 @@
-use Test::More tests => 16;
+use Test::More tests => 14;
@@ -14 +13,0 @@
- [ 'crypt', 'lk9Mh5KHGjAaM', 'crypt' ],
@@ -18 +16,0 @@
- [ 'crypt', '{CRYPT}lk9Mh5KHGjAaM', '{CRYPT}' ],
EOF
'';
propagatedBuildInputs = [ ClassAccessor ClassDataInheritable CryptPasswdMD5 ParamsValidate ];
meta = {
description = "Simple Authentication";
Expand Down

0 comments on commit a973339

Please sign in to comment.