From 9376ea817efa120f6225a4724a2fe5b25b160457 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Tue, 25 Oct 2022 12:26:33 -0600 Subject: Add missing nativeBuildInputs to flake.nix --- nix/flake.nix | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'nix') diff --git a/nix/flake.nix b/nix/flake.nix index f4e1616..9e309a8 100644 --- a/nix/flake.nix +++ b/nix/flake.nix @@ -1,14 +1,24 @@ { outputs = { self, nixpkgs }: let - pkgs = nixpkgs.legacyPackages."x86_64-linux"; + system = "x86_64-linux"; + pkgs = import nixpkgs { inherit system; config.allowUnfree = true; }; in { - devShells."x86_64-linux".default = pkgs.mkShell { - buildInputs = [ pkgs.SDL2 ]; - nativeBuildInputs = [ - pkgs.gcc-arm-embedded - pkgs.gdb - pkgs.pkg-config - (pkgs.python39.withPackages (py: [ py.numpy py.pillow ])) + devShells."${system}".default = pkgs.mkShell { + buildInputs = with pkgs; [ + SDL2 + ]; + + nativeBuildInputs = with pkgs; [ + binutils + gcc + gcc-arm-embedded + gdb + gnumake + gtkwave + pkg-config + (python39.withPackages (py: [ py.numpy py.pillow ])) + (quartus-prime-lite.override { supportedDevices = [ "Cyclone V" ]; }) + verilator ]; shellHook = '' -- cgit v1.2.3