-
-
Notifications
You must be signed in to change notification settings - Fork 381
Expand file tree
/
Copy pathbuild.zig.zon.nix
More file actions
167 lines (164 loc) · 6.04 KB
/
Copy pathbuild.zig.zon.nix
File metadata and controls
167 lines (164 loc) · 6.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# generated by zon2nix (https://github.com/Cloudef/zig2nix)
{
lib,
linkFarm,
runCommand,
zig,
name ? "zig-packages",
}:
let
fetchZig =
{
name,
url,
hash,
}:
runCommand "${name}.tar.gz"
{
src = url;
nativeBuildInputs = [ zig ];
outputHash = hash;
outputHashMode = "flat";
}
''
touch "$TMPDIR/build.zig" # workaround <https://codeberg.org/ziglang/zig/issues/31866>
mkdir -p "$TMPDIR/tmp" # zig 0.16 writes the downloaded .zip to <cache>/tmp before extracting; it does not create this dir itself
hash="$(cd "$TMPDIR" && zig fetch --global-cache-dir "$TMPDIR" "${url}")"
mv "$TMPDIR/p/$hash.tar.gz" "$out"
'';
# `zig build --system <dir>` looks packages up by their bare hash and expects
# each to be an extracted directory, not a tarball. fetchZig produces the
# canonical `<hash>.tar.gz` (which contains a single `<hash>/` top-level dir),
# so strip the suffix from the name and unpack into a directory.
unpackZig =
entry:
{
name = lib.removeSuffix ".tar.gz" entry.name;
path = runCommand (lib.removeSuffix ".tar.gz" entry.name) { } ''
mkdir -p "$out"
tar -xf "${entry.path}" -C "$out" --strip-components=1
'';
};
in
linkFarm name (map unpackZig [
{
name = "afl_kit-0.1.0-NdJ3csgfAABGuiQ4P99kFuaVSy4DHMilISiGF_VKX3xl.tar.gz";
path = fetchZig {
name = "afl_kit";
url = "git+https://github.com/bhansconnect/zig-afl-kit.git#c1f7353e006cf326ffab0a35b6e454cb5d8a5d7b";
hash = "sha256-sVnskL0JQgqPWEZxj3XyZSj+0iMK7LY4+CV2ppv0O4U=";
};
}
{
name = "AFLplusplus-4.21.0-aA1y4ZlxAAAHcA1GykLz0bBAGR5RbAZqUvr3SJ38JaZX.tar.gz";
path = fetchZig {
name = "AFLplusplus";
url = "https://github.com/bhansconnect/AFLplusplus/archive/106e7b61a85b0ee4b226a73c7a6fa0e9361a1664.tar.gz";
hash = "sha256-12dlYYCRjDMUd7fuD5BNEl9CNtXcIhgPf0OEhYwdQQc=";
};
}
{
name = "N-V-__8AAKE4uAAJZgEcPdaXnWqoj-IwYf3G2h9YSm-x92gg.tar.gz";
path = fetchZig {
name = "AFLplusplus";
url = "https://github.com/AFLplusplus/AFLplusplus/archive/v4.21c.tar.gz";
hash = "sha256-XVa9UhZXYzUrD78Xm1epNqiRaqOM+Gfpf88LYU23DHg=";
};
}
{
name = "N-V-__8AAEvEEA9B1q8qGkm3rJW_bkae4wn1SvyrfDa0w1lp.tar.gz";
path = fetchZig {
name = "roc_deps_aarch64_macos_none";
url = "https://github.com/roc-lang/roc-bootstrap/releases/download/zig-0.16.0/aarch64-macos-none.tar.xz";
hash = "sha256-MiACPvTNxHcXnI2q45kRlpldDm21t270ng1z9ewnhfc=";
};
}
{
name = "N-V-__8AAHPjwBNV6lTtxPO6DYe4lg2Gx5Qakmeg1PO7N5k7.tar.gz";
path = fetchZig {
name = "roc_deps_aarch64_linux_musl";
url = "https://github.com/roc-lang/roc-bootstrap/releases/download/zig-0.16.0/aarch64-linux-musl.tar.xz";
hash = "sha256-f3U0foiuXE+9p/cg9WEb7fCMEXBAE+Cae745eRQJLJY=";
};
}
{
name = "N-V-__8AAI4OFxV11RN1xAhLXxLTyaxZh3Wbi4U1Dza1OESo.tar.gz";
path = fetchZig {
name = "roc_deps_aarch64_windows_gnu";
url = "https://github.com/roc-lang/roc-bootstrap/releases/download/zig-0.16.0/aarch64-windows-gnu.zip";
hash = "sha256-UAZPFs8MfyoOP3NFBWMwbugpMqq18NSN3ztuh773os0=";
};
}
{
name = "N-V-__8AAHU1FhRO-2yZIDQWw5rkVVuUYn5purRT9mAqykzw.tar.gz";
path = fetchZig {
name = "roc_deps_arm_linux_musleabihf";
url = "https://github.com/roc-lang/roc-bootstrap/releases/download/zig-0.16.0/arm-linux-musleabihf.tar.xz";
hash = "sha256-oSxJwhRlKIzYLUm21JZSoySaf7pxWjO5/87D8HxlJSU=";
};
}
{
name = "N-V-__8AACNk7BFESU37UNPvVOXf2dGyPMjtDSsji-VYqvmz.tar.gz";
path = fetchZig {
name = "roc_deps_x86_linux_musl";
url = "https://github.com/roc-lang/roc-bootstrap/releases/download/zig-0.16.0/x86-linux-musl.tar.xz";
hash = "sha256-wliAwsrhsON2/GNf5gqnnXPs53B0YBYMGaaJQJ93I2w=";
};
}
{
name = "N-V-__8AAJmm4xTmXSEZeLYLtOlZWKI_Kitjx2TOzm9vhCWM.tar.gz";
path = fetchZig {
name = "roc_deps_x86_64_linux_musl";
url = "https://github.com/roc-lang/roc-bootstrap/releases/download/zig-0.16.0/x86_64-linux-musl.tar.xz";
hash = "sha256-LjMD6jfUOP1UKvPYSYKlTN01Q5iHYBA0bS4hnFADJdo=";
};
}
{
name = "N-V-__8AAJGgsQ-GR2yR2tLFM4OM0z7ClQ0Rx7SjviQbx8Ks.tar.gz";
path = fetchZig {
name = "roc_deps_x86_64_macos_none";
url = "https://github.com/roc-lang/roc-bootstrap/releases/download/zig-0.16.0/x86_64-macos-none.tar.xz";
hash = "sha256-2Bqk1Xg+1niHcKzxpNl3Cr+ThXeSD5xE1lTzRkrpuDM=";
};
}
{
name = "N-V-__8AAJAOJxiRcaWQZpXytjyF8_Q7Mj9g7xXQWtegD-6C.tar.gz";
path = fetchZig {
name = "roc_deps_x86_64_windows_gnu";
url = "https://github.com/roc-lang/roc-bootstrap/releases/download/zig-0.16.0/x86_64-windows-gnu.zip";
hash = "sha256-8jPIAh01og2FZ8DUAor0hHZ3EDWWIhbXa0X1+CvQG0s=";
};
}
{
name = "stable_array-0.1.0-3ihgvd9eAAA5ozV4aOQZ6GI3d_gTyiR9tS6mwav2w18o.tar.gz";
path = fetchZig {
name = "zig-stable-array";
url = "git+https://github.com/lukewilliamboswell/zig-stable-array#b193182314f2ca65d97e391f0725707e36c0b56d";
hash = "sha256-n/NV3r5ji4+fW+c/I8AzjnLsGU4nUSzmJtdAI6+TcRk=";
};
}
{
name = "zstd-1.5.7-1-KEItkAMwAAD6OKY3m0OOmXG7aL-aLUfrDqbP5J5oYapU.tar.gz";
path = fetchZig {
name = "zstd";
url = "git+https://github.com/allyourcodebase/zstd?ref=1.5.7-1#e1a501be57f42c541e8a5597e4b59a074dfd09a3";
hash = "sha256-Za7i8doQDlzwjScm8GGqxwaO7qBVz23+KqhXkyHBti8=";
};
}
{
name = "N-V-__8AAGxifwAAGwXwvsnl_aOXFGLZTeYCu0WBhuEXr96u.tar.gz";
path = fetchZig {
name = "zstd";
url = "git+https://github.com/facebook/zstd.git?ref=v1.5.7#f8745da6ff1ad1e7bab384bd1f9d742439278e99";
hash = "sha256-h35u+KqPsc9xZQ7xJu15M4etPnBIM33NUVG4NKzMZHw=";
};
}
{
name = "kcov-42.0.1-EuAG4XacCwBu0G8YHvv6sFHfbMPZuwyBuZGqcRMi8IXq.tar.gz";
path = fetchZig {
name = "kcov";
url = "git+https://github.com/roc-lang/zig-kcov.git?ref=zig-0.16.0#5e1954e53ce775a6ecf65abd03ae67deee64ac3c";
hash = "sha256-vFZLwp2H04EnMCPOxZYuQoVv84WBzknpmoXURbfmpR0=";
};
}
])