2016-11-30 23:51:13 +00:00
|
|
|
{ lib, allPackages
|
|
|
|
, system, platform, crossSystem, config
|
2015-11-26 02:35:12 +00:00
|
|
|
}:
|
|
|
|
|
2016-11-30 23:51:13 +00:00
|
|
|
assert crossSystem == null;
|
|
|
|
|
2015-11-26 02:35:12 +00:00
|
|
|
rec {
|
2016-11-27 20:35:58 +00:00
|
|
|
inherit allPackages;
|
2015-11-26 02:35:12 +00:00
|
|
|
|
|
|
|
bootstrapTools = derivation {
|
|
|
|
inherit system;
|
|
|
|
|
|
|
|
name = "trivial-bootstrap-tools";
|
2015-12-24 02:04:18 +00:00
|
|
|
builder = "/usr/local/bin/bash";
|
2015-11-26 02:35:12 +00:00
|
|
|
args = [ ./trivial-bootstrap.sh ];
|
|
|
|
|
|
|
|
mkdir = "/bin/mkdir";
|
|
|
|
ln = "/bin/ln";
|
|
|
|
};
|
|
|
|
|
2015-11-28 15:06:15 +00:00
|
|
|
fetchurl = import ../../build-support/fetchurl {
|
2015-11-26 02:35:12 +00:00
|
|
|
stdenv = import ../generic {
|
|
|
|
name = "stdenv-freebsd-boot-1";
|
|
|
|
inherit system config;
|
|
|
|
|
2015-12-24 02:04:18 +00:00
|
|
|
initialPath = [ "/" "/usr" ];
|
|
|
|
shell = "${bootstrapTools}/bin/bash";
|
2015-11-28 15:06:15 +00:00
|
|
|
fetchurlBoot = null;
|
|
|
|
cc = null;
|
2015-11-26 02:35:12 +00:00
|
|
|
};
|
2015-11-28 15:06:15 +00:00
|
|
|
curl = bootstrapTools;
|
2015-11-26 02:35:12 +00:00
|
|
|
};
|
|
|
|
|
2015-11-28 15:06:15 +00:00
|
|
|
stdenvFreeBSD = import ../generic {
|
2015-11-26 02:35:12 +00:00
|
|
|
name = "stdenv-freebsd-boot-3";
|
|
|
|
|
|
|
|
inherit system config;
|
|
|
|
|
2015-11-28 15:06:15 +00:00
|
|
|
initialPath = [ bootstrapTools ];
|
|
|
|
shell = "${bootstrapTools}/bin/bash";
|
|
|
|
fetchurlBoot = fetchurl;
|
2015-11-26 02:35:12 +00:00
|
|
|
|
|
|
|
cc = import ../../build-support/cc-wrapper {
|
2015-11-28 15:06:15 +00:00
|
|
|
nativeTools = true;
|
|
|
|
nativePrefix = "/usr";
|
|
|
|
nativeLibc = true;
|
|
|
|
stdenv = import ../generic {
|
|
|
|
inherit system config;
|
|
|
|
name = "stdenv-freebsd-boot-0";
|
|
|
|
initialPath = [ bootstrapTools ];
|
|
|
|
shell = stdenvFreeBSD.shell;
|
|
|
|
fetchurlBoot = fetchurl;
|
|
|
|
cc = null;
|
|
|
|
};
|
|
|
|
cc = {
|
|
|
|
name = "clang-9.9.9";
|
|
|
|
cc = "/usr";
|
|
|
|
outPath = "/usr";
|
|
|
|
};
|
|
|
|
isClang = true;
|
2015-11-26 02:35:12 +00:00
|
|
|
};
|
|
|
|
|
2015-11-28 15:06:15 +00:00
|
|
|
preHook = ''export NIX_NO_SELF_RPATH=1'';
|
2015-11-26 02:35:12 +00:00
|
|
|
};
|
|
|
|
}
|