-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflake.nix
28 lines (27 loc) · 822 Bytes
/
flake.nix
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
{
description = "Shell environments for development";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
stable.url = "github:nixos/nixpkgs/nixos-22.11";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = {
self,
nixpkgs,
stable,
rust-overlay,
...
} @ inputs:
let
inherit (self) outputs;
supportedSystems = [ "x86_64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
in rec {
devShells = forAllSystems (system: {
nodejs = import ./node/shell.nix { inherit nixpkgs system; };
haskell = import ./haskell/shell.nix { inherit nixpkgs system; };
elixir = import ./elixir/shell.nix { inherit nixpkgs system; };
rust = import ./rust/shell.nix { inherit nixpkgs system rust-overlay; };
});
};
}