From 62ffbcfe0bc41f82a5c951b9eb62fc8d09371b09 Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Tue, 17 Feb 2026 12:46:05 +0100 Subject: Initial commit --- flake.nix | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 flake.nix 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 + ]; + + }; + }; +} + -- cgit v1.2.3