2015-11-26 03:35:12 +01:00
|
|
|
{ system ? builtins.currentSystem
|
|
|
|
, allPackages ? import ../../top-level/all-packages.nix
|
|
|
|
, platform ? null
|
|
|
|
, config ? {}
|
|
|
|
}:
|
|
|
|
|
|
|
|
rec {
|
|
|
|
allPackages = import ../../top-level/all-packages.nix;
|
|
|
|
|
|
|
|
bootstrapTools = derivation {
|
|
|
|
inherit system;
|
|
|
|
|
|
|
|
name = "trivial-bootstrap-tools";
|
2015-12-24 03:04:18 +01:00
|
|
|
builder = "/usr/local/bin/bash";
|
2015-11-26 03:35:12 +01:00
|
|
|
args = [ ./trivial-bootstrap.sh ];
|
|
|
|
|
|
|
|
mkdir = "/bin/mkdir";
|
|
|
|
ln = "/bin/ln";
|
|
|
|
};
|
|
|
|
|
2015-11-28 16:06:15 +01:00
|
|
|
fetchurl = import ../../build-support/fetchurl {
|
2015-11-26 03:35:12 +01:00
|
|
|
stdenv = import ../generic {
|
|
|
|
name = "stdenv-freebsd-boot-1";
|
|
|
|
inherit system config;
|
|
|
|
|
2015-12-24 03:04:18 +01:00
|
|
|
initialPath = [ "/" "/usr" ];
|
|
|
|
shell = "${bootstrapTools}/bin/bash";
|
2015-11-28 16:06:15 +01:00
|
|
|
fetchurlBoot = null;
|
|
|
|
cc = null;
|
2015-11-26 03:35:12 +01:00
|
|
|
};
|
2015-11-28 16:06:15 +01:00
|
|
|
curl = bootstrapTools;
|
2015-11-26 03:35:12 +01:00
|
|
|
};
|
|
|
|
|
2015-11-28 16:06:15 +01:00
|
|
|
stdenvFreeBSD = import ../generic {
|
2015-11-26 03:35:12 +01:00
|
|
|
name = "stdenv-freebsd-boot-3";
|
|
|
|
|
|
|
|
inherit system config;
|
|
|
|
|
2015-11-28 16:06:15 +01:00
|
|
|
initialPath = [ bootstrapTools ];
|
|
|
|
shell = "${bootstrapTools}/bin/bash";
|
|
|
|
fetchurlBoot = fetchurl;
|
2015-11-26 03:35:12 +01:00
|
|
|
|
|
|
|
cc = import ../../build-support/cc-wrapper {
|
2015-11-28 16:06:15 +01: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 03:35:12 +01:00
|
|
|
};
|
|
|
|
|
2015-11-28 16:06:15 +01:00
|
|
|
preHook = ''export NIX_NO_SELF_RPATH=1'';
|
2015-11-26 03:35:12 +01:00
|
|
|
};
|
|
|
|
}
|