3
0
Fork 0
forked from mirrors/nixpkgs

perl: allow building without libcrypt

This commit is contained in:
Martin Weinelt 2022-07-20 02:01:28 +02:00
parent 7c29dcb80b
commit a369108233
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -1,6 +1,7 @@
{ config, lib, stdenv, fetchurl, fetchFromGitHub, pkgs, buildPackages
, callPackage
, enableThreading ? true, coreutils, makeWrapper
, enableCrypt ? true
, zlib
}:
@ -82,6 +83,7 @@ let
++ optionals ((builtins.match ''5\.[0-9]*[13579]\..+'' version) != null) [ "-Dusedevel" "-Uversiononly" ]
++ optional stdenv.isSunOS "-Dcc=gcc"
++ optional enableThreading "-Dusethreads"
++ optional (!enableCrypt) "-A clear:d_crypt_r"
++ optional stdenv.hostPlatform.isStatic "--all-static"
++ optionals (!crossCompiling) [
"-Dprefix=${placeholder "out"}"