From ec03b8aab73fa3a291788d357a443824c74a72c0 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Thu, 7 Nov 2024 22:55:49 +0100 Subject: [PATCH] Add development shell for menuconfig --- flake.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/flake.nix b/flake.nix index 0b0cf24..f9440d0 100644 --- a/flake.nix +++ b/flake.nix @@ -39,6 +39,15 @@ }; }; + devShells = lib.genAttrs [ "riscv64-linux" "aarch64-linux" "x86_64-linux" ] (system: { + default = let + pkgs = nixpkgs.legacyPackages.${system}; + in pkgs.mkShell { + packages = with pkgs; [ pkg-config ncurses.dev bison ]; + inputsFrom = [ self.packages.${system}.default ]; + }; + }); + hydraJobs = self.packages |> lib.foldlAttrs (jobs: system: packages: lib.recursiveUpdate jobs (lib.mapAttrs (name: package: { ${system} = package; }) packages)) { }; };