aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix50
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
+ ];
+
+ };
+ };
+}
+