-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
68 lines (61 loc) · 1.41 KB
/
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
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
{
description = "Kernel, Zig dev";
inputs = {
pkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
zig = {
url = "github:mitchellh/zig-overlay";
inputs.nixpkgs.follows = "pkgs";
};
zls = {
url = "github:zigtools/zls";
inputs.zig-overlay.follows = "zig";
};
};
outputs = { self, pkgs, zig, zls }:
let
sys = "x86_64-linux";
in
with import pkgs { system = "${sys}"; config.allowUnfree = true; };
{
devShells.${sys}.default = mkShell {
buildInputs = [
zig.packages.${sys}.master
zls.packages.${sys}.zls
automake
autoconf
gnumake
linuxHeaders
bear
bc
bison
flex
gmp
libmpc
elfutils
openssl
zstd
zlib
mpfr
rustc
rust-bindgen
binutils
util-linux
perl
python311Full
python311Packages.gmpy2
pahole
ncurses
pkg-config
cpio
fuse3
llvmPackages_16.clang-unwrapped
llvmPackages_16.bintools-unwrapped
clang-tools_16
pwndbg
ropgadget
nsjail
(busybox.override { enableAppletSymlinks = false; })
];
};
};
}