forked from numtide/devshell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
37 lines (36 loc) · 1023 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
{
description = "devshell";
# To update all inputs:
# $ nix flake update --recreate-lock-file
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = inputs:
inputs.flake-utils.lib.eachSystem [
"aarch64-darwin"
"aarch64-linux"
"i686-linux"
"x86_64-darwin"
"x86_64-linux"
] (system:
let
pkgs = import inputs.self {
inherit system;
inputs = null;
nixpkgs = inputs.nixpkgs.legacyPackages.${system};
};
in
{
defaultPackage = pkgs.cli;
legacyPackages = pkgs;
devShell = pkgs.fromTOML ./devshell.toml;
}
) // {
defaultTemplate.path = ./template;
defaultTemplate.description = "nix flake new 'github:numtide/devshell'";
# Import this overlay into your instance of nixpkgs
overlay = import ./overlay.nix;
lib = {
importTOML = import ./nix/importTOML.nix;
};
};
}