-
Notifications
You must be signed in to change notification settings - Fork 45
/
flake.nix
37 lines (35 loc) · 964 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
29
30
31
32
33
34
35
36
37
## The template this flake was based on can be found here:
## https://github.com/johnae/nix-flake-templates/devshell
{
description = "A simple devshell flake";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
devshell.url = "github:numtide/devshell";
nix-misc = {
url = "github:johnae/nix-misc";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, devshell, nix-misc, flake-utils }:
let
genPkgs = system: import nixpkgs {
inherit system;
overlays = [
devshell.overlay
nix-misc.overlay
];
};
forAllDefaultSystems = f: flake-utils.lib.eachDefaultSystem
(system: f system (genPkgs system));
in
forAllDefaultSystems (system: pkgs:
{
devShell = pkgs.devshell.mkShell {
imports = [
(pkgs.devshell.importTOML ./devshell.toml)
];
};
}
)
;
}