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; };
|
||||
|
||||
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;
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user