-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
34 lines (32 loc) · 942 Bytes
/
flake.nix
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
{
description = "nixpkgs-less, Zig-based packages";
outputs = { self, }: let
version = "0.11.0-dev.174+d823680e1";
system = "linux-x86_64";
zig-boot = builtins.fetchTarball {
url = "https://ziglang.org/builds/zig-${system}-${version}.tar.xz";
sha256 = "1539xay1fkif0fgjbakxb4cwi8pbsanwhzbiv299kmlllr91cs3f";
};
in {
packages.x86_64-linux = {
mrsh-boot = derivation {
name = "mrsh-boot";
src = builtins.fetchGit {
url = "https://github.com/emersion/mrsh.git";
ref = "master";
rev = "a858396b79ba217760b0982dd6f45c91c5192c3b";
};
builder = "${zig-boot}/zig";
args = [
"build"
"-Dtarget=x86_64-linux-musl"
"--cache-dir" "/build/cache"
"--build-file" "${self}/mrsh/build.zig"
];
system = "x86_64-linux";
HOME="/build";
zig = zig-boot;
};
};
};
}