From a4ff02011b6e548aa368fab4f3b90c484a45d279 Mon Sep 17 00:00:00 2001 From: TimePath Date: Sun, 25 Dec 2016 16:02:11 +1100 Subject: [PATCH] Nix stuff --- default.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 default.nix 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 + ]; + }; +} -- 2.39.2