summary refs log tree commit diff
path: root/pkgs/games/construo
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2009-05-12 16:00:58 +0000
committerMichael Raskin <7c6f434c@mail.ru>2009-05-12 16:00:58 +0000
commitd59710a58c103d367845311dd56f1bc874c7aa1a (patch)
tree789661a08e45a040aeeca1cc11f3e28a224af5db /pkgs/games/construo
parent852603e4df04f8ffe2b5671ce3ac0308290184b3 (diff)
downloadnixpkgs-d59710a58c103d367845311dd56f1bc874c7aa1a.tar
nixpkgs-d59710a58c103d367845311dd56f1bc874c7aa1a.tar.gz
nixpkgs-d59710a58c103d367845311dd56f1bc874c7aa1a.tar.bz2
nixpkgs-d59710a58c103d367845311dd56f1bc874c7aa1a.tar.lz
nixpkgs-d59710a58c103d367845311dd56f1bc874c7aa1a.tar.xz
nixpkgs-d59710a58c103d367845311dd56f1bc874c7aa1a.tar.zst
nixpkgs-d59710a58c103d367845311dd56f1bc874c7aa1a.zip
Fix construo build
svn path=/nixpkgs/trunk/; revision=15573
Diffstat (limited to 'pkgs/games/construo')
-rw-r--r--pkgs/games/construo/0.2.2.nix18
1 files changed, 8 insertions, 10 deletions
diff --git a/pkgs/games/construo/0.2.2.nix b/pkgs/games/construo/0.2.2.nix
index 9d929afc7c9..2080bb344ea 100644
--- a/pkgs/games/construo/0.2.2.nix
+++ b/pkgs/games/construo/0.2.2.nix
@@ -10,21 +10,19 @@ args : with args;
 		++ (if args ? mesa then [args.mesa args.freeglut] else [])
 		;
 		configureFlags = [""];
+		preConfigure = builderDefs.stringsWithDeps.FullDepEntry (''
+		  sed -e 's/math[.]h/cmath/' -i vector.cxx
+		  sed -e 's/games/bin/' -i Makefile.in
+		  sed -e '1i\#include <stdlib.h>' -i construo_main.cxx -i command_line.cxx -i config.hxx
+		  sed -e '1i\#include <string.h>' -i command_line.cxx -i lisp_reader.cxx -i unix_system.cxx \
+		      -i world.cxx construo_main.cxx
+		'') ["doUnpack" "minInit"];
 	};
 	in with localDefs;
-let 
-preConfigure = FullDepEntry (''
-  sed -e 's/math[.]h/cmath/' -i vector.cxx
-  sed -e 's/games/bin/' -i Makefile.in
-  sed -e '1i\#include <stdlib.h>' -i construo_main.cxx -i command_line.cxx -i config.hxx
-  sed -e '1i\#include <string.h>' -i command_line.cxx -i lisp_reader.cxx -i unix_system.cxx \
-      -i world.cxx construo_main.cxx
-'') [doUnpack minInit];
-in
 stdenv.mkDerivation rec {
 	name = "construo-"+version;
 	builder = writeScript (name + "-builder")
-		(textClosure localDefs [preConfigure doConfigure doMakeInstall doForceShare doPropagate]);
+		(textClosure localDefs ["preConfigure" "doConfigure" "doMakeInstall" "doForceShare" "doPropagate"]);
 	meta = {
 		description = "Construo masses and springs simulation";
 		inherit src;