]> git.xonotic.org Git - xonotic/xonotic.git/blob - default.nix
945547f3e4602101da123d0e6be7641020e45279
[xonotic/xonotic.git] / default.nix
1 # nix-shell .
2 # dst=.
3 # cmake -GNinja -H. -B $dst && (cd $dst && cmake --build .)
4 # nix-shell . --run './all compile'
5 # 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'
6 with import <nixpkgs> {}; {
7         xonoticEnv = stdenv.mkDerivation {
8                 name = "xonotic";
9                 buildInputs = [
10                         alsaLib
11                         freetype
12                         libjpeg
13                         libpng
14                         mesa
15                         xorg.libX11
16                         xorg.libXext
17                         xorg.libXpm
18                         xorg.libXxf86vm
19                         zlib
20                 ];
21         };
22 }