unvendor
This commit is contained in:
Dawid Sobczak 2025-04-18 12:41:04 +01:00
parent 9a4b261179
commit 404aa8ebbb
139 changed files with 8091 additions and 1178 deletions

26
06/using-nix/1-stage1.nix Normal file
View file

@ -0,0 +1,26 @@
{ tcc-seed, protosrc, recipesStage1ExtrasPath, stage1cPath }:
derivation {
name = "bootstrap-1-stage1";
builder = "/bin/sh"; # purely to pass $vars, which is silly
args = [ "-c" ''
${tcc-seed} \
-nostdinc -nostdlib -Werror \
-I${recipesStage1ExtrasPath} \
-DINSIDE_NIX \
-DPROTOSRC='"'${protosrc}'"' \
-DTCC_SEED='"'${tcc-seed}'"' \
-DRECIPES_STAGE1='"'${recipesStage1ExtrasPath}'"' \
-DTMP_STAGE1='"'$TMPDIR/tmp'"' \
-DSTORE_PROTOBUSYBOX='"'$protobusybox/'"' \
-DSTORE_PROTOMUSL='"'$protomusl'"' \
-DSTORE_TINYCC='"'$tinycc'"' \
-run ${stage1cPath}
''];
outputs = [ "protobusybox" "protomusl" "tinycc" ];
allowedReferences = [ "protobusybox" "protomusl" "tinycc" ];
allowedRequisites = [ "protobusybox" "protomusl" "tinycc" ];
system = "x86_64-linux";
__contentAddressed = true;
outputHashAlgo = "sha256"; outputHashMode = "recursive";
}