summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2018-07-22 21:33:16 +0200
committerLluís Batlle i Rossell <viric@viric.name>2018-07-22 22:02:13 +0200
commit36701d4af71bea5d042128effa4f665d28ee403a (patch)
tree41dcef506cdb9b86272783dc6a33e60135e7d7ce /pkgs/tools/misc
parentbb3986a5fcb34f4ddb87fe88be44dea9a76283c0 (diff)
downloadnixlib-36701d4af71bea5d042128effa4f665d28ee403a.tar
nixlib-36701d4af71bea5d042128effa4f665d28ee403a.tar.gz
nixlib-36701d4af71bea5d042128effa4f665d28ee403a.tar.bz2
nixlib-36701d4af71bea5d042128effa4f665d28ee403a.tar.lz
nixlib-36701d4af71bea5d042128effa4f665d28ee403a.tar.xz
nixlib-36701d4af71bea5d042128effa4f665d28ee403a.tar.zst
nixlib-36701d4af71bea5d042128effa4f665d28ee403a.zip
Openssl in coreutils makes *sum programs much faster.
sha256sum, md5sum, etc.
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r--pkgs/tools/misc/coreutils/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/tools/misc/coreutils/default.nix b/pkgs/tools/misc/coreutils/default.nix
index 589c58d0acc0..d904cbcd449f 100644
--- a/pkgs/tools/misc/coreutils/default.nix
+++ b/pkgs/tools/misc/coreutils/default.nix
@@ -1,5 +1,6 @@
 { stdenv, lib, buildPackages
 , autoreconfHook, texinfo, fetchurl, perl, xz, libiconv, gmp ? null
+, openssl ? null
 , hostPlatform, buildPlatform
 , aclSupport ? false, acl ? null
 , attrSupport ? false, attr ? null
@@ -37,8 +38,8 @@ stdenv.mkDerivation rec {
   outputs = [ "out" "info" ];
 
   nativeBuildInputs = [ perl xz.bin ];
-  configureFlags =
-    optional (singleBinary != false)
+  configureFlags = optional (openssl != null) "--with-openssl"
+    ++ optional (singleBinary != false)
       ("--enable-single-binary" + optionalString (isString singleBinary) "=${singleBinary}")
     ++ optional hostPlatform.isSunOS "ac_cv_func_inotify_init=no"
     ++ optional withPrefix "--program-prefix=g"
@@ -49,7 +50,7 @@ stdenv.mkDerivation rec {
     ];
 
 
-  buildInputs = [ gmp ]
+  buildInputs = [ gmp openssl ]
     ++ optional aclSupport acl
     ++ optional attrSupport attr
     ++ optionals hostPlatform.isCygwin [ autoreconfHook texinfo ]   # due to patch
@@ -71,7 +72,7 @@ stdenv.mkDerivation rec {
 
   # Saw random failures like ‘help2man: can't get '--help' info from
   # man/sha512sum.td/sha512sum’.
-  enableParallelBuilding = false;
+  enableParallelBuilding = true;
 
   NIX_LDFLAGS = optionalString selinuxSupport "-lsepol";
   FORCE_UNSAFE_CONFIGURE = optionalString hostPlatform.isSunOS "1";