Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 42 lines 852 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 libX11, 6 zlib, 7 xorgproto, 8 libGL ? null, 9 libGLU ? null, 10 libglut ? null, 11}: 12 13stdenv.mkDerivation rec { 14 pname = "construo"; 15 version = "0.2.3"; 16 17 src = fetchurl { 18 url = "https://github.com/Construo/construo/releases/download/v${version}/${pname}-${version}.tar.gz"; 19 sha256 = "1wmj527hbj1qv44cdsj6ahfjrnrjwg2dp8gdick8nd07vm062qxa"; 20 }; 21 22 buildInputs = [ 23 libX11 24 zlib 25 xorgproto 26 ] 27 ++ lib.optional (libGL != null) libGL 28 ++ lib.optional (libGLU != null) libGLU 29 ++ lib.optional (libglut != null) libglut; 30 31 preConfigure = '' 32 substituteInPlace src/Makefile.in \ 33 --replace games bin 34 ''; 35 36 meta = { 37 description = "Masses and springs simulation game"; 38 mainProgram = "construo.x11"; 39 homepage = "http://fs.fsf.org/construo/"; 40 license = lib.licenses.gpl3; 41 }; 42}