cross stdenv: Forget allowedRequisites = nulll; on inline

This commit is contained in:
John Ericson 2018-07-25 03:55:09 -04:00
parent 5dabbf4273
commit 87357fc39c
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.