diff options
author | Danny Wilson <danny@prime.vc> | 2015-11-07 05:03:28 +0100 |
---|---|---|
committer | Danny Wilson <danny@prime.vc> | 2015-11-16 17:20:15 +0100 |
commit | 340375f42111310a5401a644d12f987fe0a61252 (patch) | |
tree | f16853771aa720a405d61513484210d2901a61ea | |
parent | f9134ca9df7281765ec1fcefc7636632b9ef11fb (diff) | |
download | nixlib-340375f42111310a5401a644d12f987fe0a61252.tar nixlib-340375f42111310a5401a644d12f987fe0a61252.tar.gz nixlib-340375f42111310a5401a644d12f987fe0a61252.tar.bz2 nixlib-340375f42111310a5401a644d12f987fe0a61252.tar.lz nixlib-340375f42111310a5401a644d12f987fe0a61252.tar.xz nixlib-340375f42111310a5401a644d12f987fe0a61252.tar.zst nixlib-340375f42111310a5401a644d12f987fe0a61252.zip |
Make sure optionalAttrs are set before actually building a derivation.
-rw-r--r-- | pkgs/tools/misc/coreutils/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/tools/misc/coreutils/default.nix b/pkgs/tools/misc/coreutils/default.nix index 35e9e3828d93..bd0d1b928570 100644 --- a/pkgs/tools/misc/coreutils/default.nix +++ b/pkgs/tools/misc/coreutils/default.nix @@ -11,7 +11,7 @@ assert selinuxSupport -> libselinux != null && libsepol != null; with { inherit (stdenv.lib) optional optionals optionalString optionalAttrs; }; let - self = stdenv.mkDerivation rec { + self = rec { name = "coreutils-8.24"; src = fetchurl { @@ -102,7 +102,7 @@ let }; }; in - self + stdenv.mkDerivation (self // stdenv.lib.optionalAttrs (stdenv.system == "armv7l-linux" || stdenv.isSunOS) { FORCE_UNSAFE_CONFIGURE = 1; - } + }) |