Make sure optionalAttrs are set before actually building a derivation.
This commit is contained in:
parent
f9134ca9df
commit
340375f421
@ -11,7 +11,7 @@ assert selinuxSupport -> libselinux != null && libsepol != null;
|
|||||||
with { inherit (stdenv.lib) optional optionals optionalString optionalAttrs; };
|
with { inherit (stdenv.lib) optional optionals optionalString optionalAttrs; };
|
||||||
|
|
||||||
let
|
let
|
||||||
self = stdenv.mkDerivation rec {
|
self = rec {
|
||||||
name = "coreutils-8.24";
|
name = "coreutils-8.24";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
@ -102,7 +102,7 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
self
|
stdenv.mkDerivation (self
|
||||||
// stdenv.lib.optionalAttrs (stdenv.system == "armv7l-linux" || stdenv.isSunOS) {
|
// stdenv.lib.optionalAttrs (stdenv.system == "armv7l-linux" || stdenv.isSunOS) {
|
||||||
FORCE_UNSAFE_CONFIGURE = 1;
|
FORCE_UNSAFE_CONFIGURE = 1;
|
||||||
}
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user