-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
42 lines (40 loc) · 1.01 KB
/
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
38
39
40
41
42
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default";
nuenv.url = "github:DeterminateSystems/nuenv";
};
outputs =
{ self
, nixpkgs
, systems
, nuenv
}:
let
mkPkgs = localSystem: import nixpkgs { inherit localSystem; overlays = [ nuenv.overlays.default ]; };
eachSystem = callback: nixpkgs.lib.genAttrs (import systems) (system: callback (mkPkgs system));
in
{
packages = eachSystem (pkgs: {
select_world = pkgs.nuenv.writeShellApplication {
name = "select_world";
runtimeInputs = with pkgs; [ fzf ];
text = builtins.readFile ./scripts/select_world.nu;
};
});
devShells = eachSystem (pkgs: {
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
findutils
fzf
dialog
git
gnumake
gnused
jq
zip
];
};
});
};
}