diff options
| author | Natasha Moongrave <natasha@256phi.eu> | 2026-02-17 12:46:05 +0100 |
|---|---|---|
| committer | Natasha Moongrave <natasha@256phi.eu> | 2026-02-17 12:46:05 +0100 |
| commit | 62ffbcfe0bc41f82a5c951b9eb62fc8d09371b09 (patch) | |
| tree | 1d72f9675a5c6a1ce7519d462f65c6b970e2875b | |
Initial commit
| -rw-r--r-- | flake.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..f154f20 --- /dev/null +++ b/flake.nix @@ -0,0 +1,50 @@ +{ + description = "Dev shell for kernel/build environment"; + + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + + outputs = { self, nixpkgs }: + let + system = "x86_64-linux"; + pkgs = import nixpkgs { inherit system; }; + in { + devShells.${system}.default = pkgs.mkShell { + packages = with pkgs; [ + # base-devel equivalent + gcc + gnumake + binutils + pkg-config + autoconf + automake + libtool + patch + file + which + + # explicit packages from your list + bc + coreutils + cpio + gettext + kmod + elfutils + ncurses + pahole + perl + python3 + rsync + gnutar + gnupg + xz + qemu + + # kernel build dependencies + flex + bison + ]; + + }; + }; +} + |
