-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
62 lines (56 loc) · 1.44 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
54
55
56
57
58
59
60
61
62
{
description = "Robo Clock";
outputs =
{ self
, nixpkgs
, flake-utils
,
}:
flake-utils.lib.eachDefaultSystem
(
system:
let
pkgs = import nixpkgs {
inherit system;
};
# Set the Erlang version
erlangVersion = "erlangR25";
# Set the Elixir version
elixirVersion = "elixir_1_14";
erlang = pkgs.beam.interpreters.${erlangVersion};
elixir = pkgs.beam.packages.${erlangVersion}.${elixirVersion};
elixir-ls = pkgs.beam.packages.${erlangVersion}.elixir-ls;
fwup = pkgs.fwup;
squashfs = pkgs.squashfsTools;
coreutils = pkgs.coreutils;
pkg-config = pkgs.pkg-config;
autoconf = pkgs.autoconf;
automake = pkgs.automake;
curl = pkgs.curl;
gstat = pkgs.writeShellScriptBin "gstat" ''
#!/usr/bin/env bash
stat "$@"
'';
in
rec {
# TODO: Add your Elixir package
# packages = flake-utils.lib.flattenTree {
# } ;
devShells.default = pkgs.mkShell {
buildInputs = [
erlang
elixir
elixir-ls
fwup
squashfs
coreutils
pkg-config
autoconf
automake
curl
gstat
];
};
}
);
}