Merge pull request #44081 from obsidiansystems/stdenv-cross-allowedRequisites

cross stdenv: Forget `allowedRequisites = nulll;` on inline
This commit is contained in:
John Ericson 2018-07-25 10:22:57 -04:00 committed by GitHub
commit f5364327e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,7 @@ in lib.init bootStages ++ [
# a different platform, and so are disabled.
overrides = _: _: {};
extraBuildInputs = [ ]; # Old ones run on wrong platform
allowedRequisites = null;
cc = if crossSystem.useiOSPrebuilt or false
then buildPackages.darwin.iosSdkPkgs.clang

View File

@ -34,7 +34,8 @@ with pkgs;
extraPackages = [];
inherit bintools;
};
allowedRequisites = stdenv.allowedRequisites ++ [ bintools ];
allowedRequisites =
lib.mapNullable (rs: rs ++ [ bintools ]) (stdenv.allowedRequisites or null);
};
# For convenience, allow callers to get the path to Nixpkgs.