aboutsummaryrefslogtreecommitdiff
path: root/devShells/default.nix
blob: 02ecc1182b25da52a22e81d74badd11347eaa837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ nixpkgs, shellrc, system }:
let

  callDevelop = nixpkgs.lib.callPackageWith ({
      inherit system;
      inherit nixpkgs;
    } // shells);

  shells = {
    default = nixpkgs.legacyPackages.${system}.mkShell {
      inputsFrom = [ shellrc.packages.${system}.default ];
    };

    armv6 = callDevelop ./nuttx.nix { arch = "armv6s-m"; };
    armv7e = callDevelop ./nuttx.nix { arch = "armv7e-m"; fpu = "vfpv3-d16"; };
    espc = callDevelop ./nuttx.nix { arch = "rv32imc"; };
    c = callDevelop ./c.nix { };
    qt = callDevelop ./qt.nix { };
    riscv = callDevelop ./riscv.nix { };
  };

in shells