-
Notifications
You must be signed in to change notification settings - Fork 2
/
shell.nix
45 lines (39 loc) · 869 Bytes
/
shell.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
43
44
45
let
sources = import ./nix/sources.nix;
commands = import ./nix/commands.nix;
nixos = import sources.nixpkgs {};
darwin = import sources.darwin {};
unstable = import sources.unstable {};
pkgs = if darwin.stdenv.isDarwin then darwin else nixos;
tasks = commands {
inherit pkgs;
inherit unstable;
};
deps = {
common =
[ pkgs.niv
];
elixir =
[ unstable.elixir
];
platform =
if pkgs.stdenv.isDarwin then
[ unstable.darwin.apple_sdk.frameworks.CoreServices
unstable.darwin.apple_sdk.frameworks.Foundation
]
else if pkgs.stdenv.isLinux then
[ pkgs.inotify-tools
]
else
[];
};
in
pkgs.mkShell {
name = "Quark";
nativeBuildInputs = builtins.concatLists [
deps.common
deps.elixir
deps.platform
tasks
];
}