Commit f6e67788 authored by Audrey Dutcher's avatar Audrey Dutcher
Browse files

perl: explicitly tell FreeBSD cross that crypt is available

parent 25426058
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -115,6 +115,11 @@ stdenv.mkDerivation (rec {
      "-Dprefix=${placeholder "out"}"
      "-Dman1dir=${placeholder "out"}/share/man/man1"
      "-Dman3dir=${placeholder "out"}/share/man/man3"
    ]
    ++ lib.optionals (stdenv.isFreeBSD && crossCompiling && enableCrypt) [
      # https://github.com/Perl/perl5/issues/22295
      # configure cannot figure out that we have crypt automatically, but we really do
      "-Dd_crypt"
    ];

  configureScript = lib.optionalString (!crossCompiling) "${stdenv.shell} ./Configure";