From: TimePath Date: Sun, 25 Dec 2016 05:02:11 +0000 (+1100) Subject: Nix stuff X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a4ff02011b6e548aa368fab4f3b90c484a45d279;p=xonotic%2Fxonotic.git Nix stuff --- diff --git a/default.nix b/default.nix new file mode 100644 index 00000000..945547f3 --- /dev/null +++ b/default.nix @@ -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 {}; { + xonoticEnv = stdenv.mkDerivation { + name = "xonotic"; + buildInputs = [ + alsaLib + freetype + libjpeg + libpng + mesa + xorg.libX11 + xorg.libXext + xorg.libXpm + xorg.libXxf86vm + zlib + ]; + }; +}