2015-11-26 03:35:12 +01:00
|
|
|
{ system ? builtins.currentSystem
|
2016-03-13 19:24:55 +01:00
|
|
|
, allPackages ? import ../../..
|
2015-11-26 03:35:12 +01:00
|
|
|
, platform ? null
|
|
|
|
, config ? {}
|
|
|
|
}:
|
|
|
|
|
|
|
|
rec {
|
2016-11-27 21:35:58 +01:00
|
|
|
inherit allPackages;
|
2015-11-26 03:35:12 +01:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|