lang-bootstrap/06/using-nix/0-prebuilt.nix
2025-04-19 08:57:21 +01:00

28 lines
882 B
Nix

# This is to prefetch protosrc/tinycc from github, see comment in 0.nix
let
fetchTarball = { name, url, sha256 }: derivation {
inherit name url;
urls = [ url ];
unpack = true;
builder = "builtin:fetchurl";
system = "builtin";
outputHashMode = "recursive"; outputHashAlgo = "sha256";
preferLocalBuild = true;
outputHash = sha256;
};
in
{
protosrc = fetchTarball {
name = "protosrc";
url = "https://github.com/ZilchOS/bootstrap-from-tcc/releases/download/seeding-files-r004/protosrc.nar";
sha256 = "sha256-upUZTTumJgBY16waF6L8ZeWbflSuQL9TMmwLw0YEDqM=";
};
tinycc = fetchTarball {
name = "tinycc-liberated";
url = "https://github.com/ZilchOS/bootstrap-from-tcc/releases/download/seeding-files-r004/tinycc-liberated.nar";
sha256 = "sha256-oqeOU6SFYDwpdIj8MjcQ+bMuU63CHyoV9NYdyPLFxEQ=";
};
}