-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflake.nix
49 lines (42 loc) · 1.5 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
{
description = "Flamelex - an Alchemical laboratory.";
# https://baez.link/getting-started-using-nix-flakes-as-an-elixir-development-environment
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
# lib = nixpkgs.lib;
in
{
devShell = pkgs.mkShell {
pkgconf libglfw3 libglfw3-dev libglew2.0 libglew-dev
buildInputs = [
pkgs.beam.packages.erlang.elixir
#pkgs.glibcLocales
pkgs.git
pkgs.gcc
pkgs.glfw
pkgs.glew
pkgs.pkgconf
#pkgs.xorg.libXau
#pkgs.xorg.libXdmcp
#pkgs.xorg.libX11
#pkgs.xorg.libXcursor
#pkgs.xorg.libXrandr
#pkgs.xorg.libXinerama
];
shellHook = ''
echo "Running shellHook..."
export PATH="${pkgs.git}/bin:$PATH"
#export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:"${pkgs.xorg.libX11}/lib/pkgconfig:${pkgs.xorg.libXcursor}/lib/pkgconfig:${pkgs.xorg.libXrandr}/lib/pkgconfig:${pkgs.xorg.libXinerama}/lib/pkgconfig:${pkgs.xorg.libXdmcp}/lib/pkgconfig"
pkgconf libglfw3 libglfw3-dev libglew2.0 libglew-dev
export LIBRARY_PATH=$LIBRARY_PATH:"${pkgs.glfw}/lib:${pkgs.glew}/lib"
'';
};
}
);
}