lol

perl: allow building without libcrypt

+2
+2
pkgs/development/interpreters/perl/default.nix
··· 1 { config, lib, stdenv, fetchurl, fetchFromGitHub, pkgs, buildPackages 2 , callPackage 3 , enableThreading ? true, coreutils, makeWrapper 4 , zlib 5 }: 6 ··· 82 ++ optionals ((builtins.match ''5\.[0-9]*[13579]\..+'' version) != null) [ "-Dusedevel" "-Uversiononly" ] 83 ++ optional stdenv.isSunOS "-Dcc=gcc" 84 ++ optional enableThreading "-Dusethreads" 85 ++ optional stdenv.hostPlatform.isStatic "--all-static" 86 ++ optionals (!crossCompiling) [ 87 "-Dprefix=${placeholder "out"}"
··· 1 { config, lib, stdenv, fetchurl, fetchFromGitHub, pkgs, buildPackages 2 , callPackage 3 , enableThreading ? true, coreutils, makeWrapper 4 + , enableCrypt ? true 5 , zlib 6 }: 7 ··· 83 ++ optionals ((builtins.match ''5\.[0-9]*[13579]\..+'' version) != null) [ "-Dusedevel" "-Uversiononly" ] 84 ++ optional stdenv.isSunOS "-Dcc=gcc" 85 ++ optional enableThreading "-Dusethreads" 86 + ++ optional (!enableCrypt) "-A clear:d_crypt_r" 87 ++ optional stdenv.hostPlatform.isStatic "--all-static" 88 ++ optionals (!crossCompiling) [ 89 "-Dprefix=${placeholder "out"}"