Skip to content

Commit 282fa03

Browse files
authored
Add Nix shell configuration for compiling using Nix (#760)
* Add Nix shell configuration for compiling using Nix This adds a Nix development shell configuration for using the Nix package manager. Please see the pull request with this commit attached for more information on how exactly it works. * Add name attribute to shell
1 parent 3dbb226 commit 282fa03

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

shell.nix

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{ }:
2+
let
3+
pkgs = import (builtins.fetchTarball {
4+
url = "https://github.com/NixOS/nixpkgs/archive/c407032be28ca2236f45c49cfb2b8b3885294f7f.tar.gz";
5+
}) { };
6+
7+
libs =
8+
with pkgs;
9+
[
10+
SDL2
11+
pkg-config
12+
openal
13+
alsa-lib
14+
libvlc
15+
libpulseaudio
16+
libGL
17+
]
18+
++ (with xorg; [
19+
libX11
20+
libXext
21+
libXinerama
22+
libXi
23+
libXrandr
24+
]);
25+
in
26+
pkgs.mkShell {
27+
name = "CodenameEngine";
28+
29+
packages = with pkgs; [
30+
haxe
31+
neko
32+
libsForQt5.qttools
33+
];
34+
35+
buildInputs = libs;
36+
37+
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath libs;
38+
39+
shellHook = ''
40+
source update.sh
41+
'';
42+
}

0 commit comments

Comments
 (0)