2016-12-16 13:22:02 +00:00
|
|
|
{ lib
|
2016-12-24 18:55:11 +00:00
|
|
|
, localSystem, crossSystem, config, overlays
|
2015-11-26 02:35:12 +00:00
|
|
|
}:
|
|
|
|
|
2016-11-30 23:51:13 +00:00
|
|
|
assert crossSystem == null;
|
2016-12-24 18:55:11 +00:00
|
|
|
let inherit (localSystem) system; in
|
2016-11-30 23:51:13 +00:00
|
|
|
|
2015-11-26 02:35:12 +00:00
|
|
|
|
2016-12-16 13:22:02 +00:00
|
|
|
[
|
2015-11-26 02:35:12 +00:00
|
|
|
|
2016-12-16 13:22:02 +00:00
|
|
|
({}: {
|
|
|
|
__raw = true;
|
2015-11-26 02:35:12 +00:00
|
|
|
|
2016-12-16 13:22:02 +00:00
|
|
|
bootstrapTools = derivation {
|
|
|
|
inherit system;
|
|
|
|
|
|
|
|
name = "trivial-bootstrap-tools";
|
|
|
|
builder = "/usr/local/bin/bash";
|
|
|
|
args = [ ./trivial-bootstrap.sh ];
|
|
|
|
|
|
|
|
mkdir = "/bin/mkdir";
|
|
|
|
ln = "/bin/ln";
|
|
|
|
};
|
|
|
|
})
|
|
|
|
|
|
|
|
({ bootstrapTools, ... }: rec {
|
|
|
|
__raw = true;
|
|
|
|
|
|
|
|
inherit bootstrapTools;
|
|
|
|
|
|
|
|
fetchurl = import ../../build-support/fetchurl {
|
|
|
|
inherit stdenv;
|
|
|
|
curl = bootstrapTools;
|
|
|
|
};
|
2015-11-26 02:35:12 +00:00
|
|
|
|
|
|
|
stdenv = import ../generic {
|
|
|
|
name = "stdenv-freebsd-boot-1";
|
2017-07-06 01:47:48 +00:00
|
|
|
buildPlatform = localSystem;
|
|
|
|
hostPlatform = localSystem;
|
|
|
|
targetPlatform = localSystem;
|
2017-05-22 01:37:16 +00:00
|
|
|
inherit config;
|
2016-12-16 13:22:02 +00:00
|
|
|
initialPath = [ "/" "/usr" ];
|
2017-05-22 01:37:16 +00:00
|
|
|
hostPlatform = localSystem;
|
|
|
|
targetPlatform = localSystem;
|
2016-12-16 13:22:02 +00:00
|
|
|
shell = "${bootstrapTools}/bin/bash";
|
2015-11-28 15:06:15 +00:00
|
|
|
fetchurlBoot = null;
|
|
|
|
cc = null;
|
2016-12-16 13:22:02 +00:00
|
|
|
overrides = self: super: {
|
2015-11-28 15:06:15 +00:00
|
|
|
};
|
2016-12-16 13:22:02 +00:00
|
|
|
};
|
|
|
|
})
|
|
|
|
|
|
|
|
(prevStage: {
|
|
|
|
__raw = true;
|
|
|
|
|
|
|
|
stdenv = import ../generic {
|
|
|
|
name = "stdenv-freebsd-boot-0";
|
2017-07-06 01:47:48 +00:00
|
|
|
buildPlatform = localSystem;
|
|
|
|
hostPlatform = localSystem;
|
|
|
|
targetPlatform = localSystem;
|
2017-05-22 01:37:16 +00:00
|
|
|
inherit config;
|
2016-12-16 13:22:02 +00:00
|
|
|
initialPath = [ prevStage.bootstrapTools ];
|
2017-05-22 01:37:16 +00:00
|
|
|
inherit (prevStage.stdenv)
|
|
|
|
hostPlatform targetPlatform shell;
|
2016-12-16 13:22:02 +00:00
|
|
|
fetchurlBoot = prevStage.fetchurl;
|
|
|
|
cc = null;
|
|
|
|
};
|
|
|
|
})
|
|
|
|
|
|
|
|
(prevStage: {
|
2016-12-24 18:55:11 +00:00
|
|
|
inherit config overlays;
|
2016-12-16 13:22:02 +00:00
|
|
|
stdenv = import ../generic {
|
|
|
|
name = "stdenv-freebsd-boot-3";
|
2017-07-06 01:47:48 +00:00
|
|
|
buildPlatform = localSystem;
|
|
|
|
hostPlatform = localSystem;
|
|
|
|
targetPlatform = localSystem;
|
2017-05-22 01:37:16 +00:00
|
|
|
inherit config;
|
2016-12-16 13:22:02 +00:00
|
|
|
|
|
|
|
inherit (prevStage.stdenv)
|
2017-05-22 01:37:16 +00:00
|
|
|
hostPlatform targetPlatform initialPath shell fetchurlBoot;
|
2016-12-16 13:22:02 +00:00
|
|
|
|
|
|
|
cc = import ../../build-support/cc-wrapper {
|
|
|
|
nativeTools = true;
|
|
|
|
nativePrefix = "/usr";
|
|
|
|
nativeLibc = true;
|
|
|
|
inherit (prevStage) stdenv;
|
|
|
|
cc = {
|
|
|
|
name = "clang-9.9.9";
|
|
|
|
cc = "/usr";
|
|
|
|
outPath = "/usr";
|
|
|
|
};
|
|
|
|
isClang = true;
|
2015-11-28 15:06:15 +00:00
|
|
|
};
|
2016-12-16 13:22:02 +00:00
|
|
|
|
|
|
|
preHook = ''export NIX_NO_SELF_RPATH=1'';
|
2015-11-26 02:35:12 +00:00
|
|
|
};
|
2016-12-16 13:22:02 +00:00
|
|
|
})
|
2015-11-26 02:35:12 +00:00
|
|
|
|
2016-12-16 13:22:02 +00:00
|
|
|
]
|