aboutsummaryrefslogtreecommitdiff
path: root/devShells/default.nix
blob: b0a17280d11ae813bbdac3090a97da9c66e2e5fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  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 {};
    python = callDevelop ./python.nix {};
    apo = callDevelop ./apo.nix {};
  };
in
  shells