]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Nix stuff
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 25 Dec 2016 05:02:11 +0000 (16:02 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 25 Dec 2016 05:02:11 +0000 (16:02 +1100)
default.nix [new file with mode: 0644]

diff --git a/default.nix b/default.nix
new file mode 100644 (file)
index 0000000..945547f
--- /dev/null
@@ -0,0 +1,22 @@
+# nix-shell .
+# dst=.
+# cmake -GNinja -H. -B $dst && (cd $dst && cmake --build .)
+# nix-shell . --run './all compile'
+# nix-shell . --run 'LD_LIBRARY_PATH="$HOME/.nix-profile/lib:${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" LD_PRELOAD=/run/opengl-driver/lib/libGL.so.1 ./all run'
+with import <nixpkgs> {}; {
+       xonoticEnv = stdenv.mkDerivation {
+               name = "xonotic";
+               buildInputs = [
+                       alsaLib
+                       freetype
+                       libjpeg
+                       libpng
+                       mesa
+                       xorg.libX11
+                       xorg.libXext
+                       xorg.libXpm
+                       xorg.libXxf86vm
+                       zlib
+               ];
+       };
+}