forked from DockYard-Academy/curriculum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
30 lines (28 loc) · 857 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
{
description = "DockYard academy";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; in {
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
erlang
elixir
];
shellHook = ''
mkdir -p .nix_mix
mkdir -p .nix_hex
export MIX_HOME=$PWD/utils/.nix_mix
export HEX_HOME=$PWD/utils/.nix_hex
export PATH=$MIX_HOME/bin:$PATH
export PATH=$HEX_HOME/bin:$PATH
export PATH=$MIX_HOME/escripts:$PATH
export LIVEBOOK_HOME=$PWD
'';
};
}
);
}