From fe9594d471fd1ec9531d1adbbee4a407b76252b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 3 Mar 2023 20:34:08 +0100 Subject: devShells: add apo and tweak qt --- devShells/apo.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 devShells/apo.nix (limited to 'devShells/apo.nix') diff --git a/devShells/apo.nix b/devShells/apo.nix new file mode 100644 index 0000000..dd8b772 --- /dev/null +++ b/devShells/apo.nix @@ -0,0 +1,34 @@ +{ + system, + nixpkgs, + default, + c, +}: let + pkgs = nixpkgs.legacyPackages.${system}; + riscvPkgs = import nixpkgs.outPath { + localSystem = system; + crossSystem = { + config = "riscv32-none-elf"; + libc = "newlib-nano"; + gcc = { + arch = "rv32i"; + }; + }; + }; + mipsPkgs = import nixpkgs.outPath { + localSystem = system; + crossSystem = { + config = "mips-none-elf"; + libc = "newlib-nano"; + }; + }; +in + pkgs.buildPackages.mkShell { + packages = with pkgs; [ + qtrvsim + riscvPkgs.buildPackages.gcc + mipsPkgs.buildPackages.gcc + ]; + inputsFrom = [default c]; + meta.platforms = nixpkgs.lib.platforms.linux; + } -- cgit v1.2.3