3
0
Fork 0
forked from mirrors/nixpkgs

Make sure optionalAttrs are set before actually building a derivation.

This commit is contained in:
Danny Wilson 2015-11-07 05:03:28 +01:00
parent f9134ca9df
commit 340375f421

View file

@ -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;
}
})