diff options
Diffstat (limited to 'nix')
| -rw-r--r-- | nix/flake.nix | 26 |
1 files changed, 18 insertions, 8 deletions
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 = '' |
