tangled
alpha
login
or
join now
tsiry-sandratraina.com
/
vmlinux-builder
2
fork
atom
Simple script and config (type-safe) for building custom Linux kernels for Firecracker MicroVMs
2
fork
atom
overview
issues
pulls
pipelines
setup nix flakes
tsiry-sandratraina.com
7 months ago
32a97462
b922ad30
+60
2 changed files
expand all
collapse all
unified
split
flake.lock
flake.nix
+27
flake.lock
···
1
1
+
{
2
2
+
"nodes": {
3
3
+
"nixpkgs": {
4
4
+
"locked": {
5
5
+
"lastModified": 1753939845,
6
6
+
"narHash": "sha256-K2ViRJfdVGE8tpJejs8Qpvvejks1+A4GQej/lBk5y7I=",
7
7
+
"owner": "nixos",
8
8
+
"repo": "nixpkgs",
9
9
+
"rev": "94def634a20494ee057c76998843c015909d6311",
10
10
+
"type": "github"
11
11
+
},
12
12
+
"original": {
13
13
+
"owner": "nixos",
14
14
+
"ref": "nixos-unstable",
15
15
+
"repo": "nixpkgs",
16
16
+
"type": "github"
17
17
+
}
18
18
+
},
19
19
+
"root": {
20
20
+
"inputs": {
21
21
+
"nixpkgs": "nixpkgs"
22
22
+
}
23
23
+
}
24
24
+
},
25
25
+
"root": "root",
26
26
+
"version": 7
27
27
+
}
+33
flake.nix
···
1
1
+
{
2
2
+
description = "Dev environment with Linux build dependencies";
3
3
+
4
4
+
inputs = {
5
5
+
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
6
6
+
};
7
7
+
8
8
+
outputs = { self, nixpkgs, ... }:
9
9
+
10
10
+
let
11
11
+
system = "x86_64-linux";
12
12
+
pkgs = import nixpkgs {
13
13
+
inherit system;
14
14
+
};
15
15
+
in {
16
16
+
devShells.${system}.default = pkgs.mkShell {
17
17
+
buildInputs = with pkgs; [
18
18
+
curl
19
19
+
git
20
20
+
gcc
21
21
+
flex
22
22
+
bison
23
23
+
ncurses.dev
24
24
+
openssl.dev
25
25
+
bc
26
26
+
elfutils.dev
27
27
+
pahole
28
28
+
pkg-config
29
29
+
perl
30
30
+
];
31
31
+
};
32
32
+
};
33
33
+
}