perlPackages.AuthenModAuthPubTkt: fix build

-dss1 doesn't exist for dgst in openssl 1.1, -sha1 can also handle DSA keys now
This commit is contained in:
Robin Gloster 2019-07-30 00:16:49 +02:00
parent 9b750c2474
commit 32bef6d988
No known key found for this signature in database
GPG key ID: D5C458DF6DD97EDF

View file

@ -687,6 +687,8 @@ let
propagatedBuildInputs = [ pkgs.openssl IPCRun3 ];
patchPhase = ''
sed -i 's|my $openssl_bin = "openssl";|my $openssl_bin = "${pkgs.openssl}/bin/openssl";|' lib/Authen/ModAuthPubTkt.pm
# -dss1 doesn't exist for dgst in openssl 1.1, -sha1 can also handle DSA keys now
sed -i 's|-dss1|-sha1|' lib/Authen/ModAuthPubTkt.pm
'';
meta = {
description = "Generate Tickets (Signed HTTP Cookies) for mod_auth_pubtkt protected websites";