Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 50 lines 877 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 libX11, 6 libSM, 7 libXext, 8 SDL, 9 libGLU, 10 libGL, 11 expat, 12 SDL_ttf, 13 SDL_image, 14 zlib, 15 libXxf86misc, 16}: 17stdenv.mkDerivation rec { 18 pname = "xpilot-ng"; 19 version = "4.7.3"; 20 src = fetchurl { 21 url = "mirror://sourceforge/xpilot/xpilot_ng/${pname}-${version}/${pname}-${version}.tar.gz"; 22 sha256 = "02a7pnp88kh88fzda5q8mzlckk6y9r5fw47j00h26wbsfly0k1zj"; 23 }; 24 buildInputs = [ 25 libX11 26 libSM 27 libXext 28 SDL 29 SDL_ttf 30 SDL_image 31 libGLU 32 libGL 33 expat 34 zlib 35 libXxf86misc 36 ]; 37 38 patches = [ 39 ./xpilot-ng-gcc-14-fix.patch 40 ./xpilot-ng-sdl-window-fix.patch 41 ]; 42 43 meta = with lib; { 44 description = "Multiplayer X11 space combat game"; 45 homepage = "http://xpilot.sf.net/"; 46 license = licenses.gpl2Plus; 47 maintainers = [ maintainers.raskin ]; 48 platforms = platforms.linux; 49 }; 50}