lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 15.09-beta 29 lines 1.2 kB view raw
1{ stdenv, fetchurl, builderDefs, libX11, zlib, xproto, mesa ? null, freeglut ? null }: 2 3 let localDefs = builderDefs.passthru.function { 4 src = /* put a fetchurl here */ 5 fetchurl { 6 url = http://savannah.nongnu.org/download/construo/construo-0.2.2.tar.gz; 7 sha256 = "0c661rjasax4ykw77dgqj39jhb4qi48m0bhhdy42vd5a4rfdrcck"; 8 }; 9 10 buildInputs = [ libX11 zlib xproto ] 11 ++ stdenv.lib.optional (mesa != null) mesa 12 ++ stdenv.lib.optional (freeglut != null) freeglut; 13 preConfigure = builderDefs.stringsWithDeps.fullDepEntry ('' 14 sed -e 's/math[.]h/cmath/' -i vector.cxx 15 sed -e 's/games/bin/' -i Makefile.in 16 sed -e '1i\#include <stdlib.h>' -i construo_main.cxx -i command_line.cxx -i config.hxx 17 sed -e '1i\#include <string.h>' -i command_line.cxx -i lisp_reader.cxx -i unix_system.cxx \ 18 -i world.cxx construo_main.cxx 19 '') ["doUnpack" "minInit"]; 20 }; 21 in with localDefs; 22stdenv.mkDerivation rec { 23 name = "construo-0.2.2"; 24 builder = writeScript (name + "-builder") 25 (textClosure localDefs ["preConfigure" "doConfigure" "doMakeInstall" "doForceShare" "doPropagate"]); 26 meta = { 27 description = "Masses and springs simulation game"; 28 }; 29}