Simple script and config (type-safe) for building custom Linux kernels for Firecracker MicroVMs
1{
2 description = "Dev environment with Linux build dependencies";
3
4 inputs = {
5 nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
6 };
7
8 outputs = { self, nixpkgs, ... }:
9
10 let
11 system = "x86_64-linux";
12 pkgs = import nixpkgs {
13 inherit system;
14 };
15 in {
16 devShells.${system}.default = pkgs.mkShell {
17 buildInputs = with pkgs; [
18 deno
19 curl
20 git
21 gcc
22 flex
23 bison
24 ncurses.dev
25 openssl.dev
26 bc
27 elfutils.dev
28 pahole
29 pkg-config
30 perl
31 ];
32 };
33 };
34}