Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 48 lines 925 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 cmake, 6 boost, 7 eigen2, 8 lua, 9 luabind, 10 libGLU, 11 libGL, 12 SDL, 13}: 14 15stdenv.mkDerivation rec { 16 pname = "soi"; 17 version = "0.1.2"; 18 19 src = fetchurl { 20 url = "mirror://sourceforge/project/soi/Spheres%20of%20Influence-${version}-Source.tar.bz2"; 21 name = "${pname}-${version}.tar.bz2"; 22 sha256 = "03c3wnvhd42qh8mi68lybf8nv6wzlm1nx16d6pdcn2jzgx1j2lzd"; 23 }; 24 25 nativeBuildInputs = [ cmake ]; 26 buildInputs = [ 27 boost 28 lua 29 luabind 30 libGLU 31 libGL 32 SDL 33 ]; 34 35 cmakeFlags = [ 36 "-DEIGEN_INCLUDE_DIR=${eigen2}/include/eigen2" 37 "-DLUABIND_LIBRARY=${luabind}/lib/libluabind09.a" 38 ]; 39 40 meta = with lib; { 41 description = "Physics-based puzzle game"; 42 mainProgram = "soi"; 43 maintainers = with maintainers; [ raskin ]; 44 platforms = platforms.linux; 45 license = licenses.free; 46 downloadPage = "https://sourceforge.net/projects/soi/files/"; 47 }; 48}