-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
53 lines (48 loc) · 1.24 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
43
44
45
46
47
48
49
50
51
52
53
{
outputs = {nixpkgs, ...}: let
systems = {
linux = "x86_64-linux";
darwin = "aarch64-darwin";
};
pkgs = system:
import nixpkgs {
inherit system;
config.allowUnfree = true;
};
inputs = sys:
with pkgs sys;
lib.optional stdenv.isLinux [
inotify-tools
gtk-engine-murrine
]
++ lib.optional stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreServices
darwin.apple_sdk.frameworks.CoreFoundation
];
name = "nexus";
in {
applications."${systems.linux}".pescarte = let
inherit (pkgs systems.linux) beam;
beamPackages = beam.packagesWith beam.interpreters.erlang;
in
beamPackages.buildMix {
inherit name;
version = "0.1.0";
src = ./.;
postBuild = "mix do deps.loadpaths --no-deps-check";
beamDeps = [];
};
devShells = {
"${systems.linux}".default = with pkgs systems.linux;
mkShell {
inherit name;
buildInputs = inputs systems.linux;
};
"${systems.darwin}".default = with pkgs systems.darwin;
mkShell {
inherit name;
buildInputs = inputs systems.darwin;
};
};
};
}