about summary refs log tree commit diff
path: root/pkgs/games/construo
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2007-12-03 04:48:44 +0000
committerMichael Raskin <7c6f434c@mail.ru>2007-12-03 04:48:44 +0000
commitc2c528b6fa8e534f2c565dfe5ccf9adf7bb2a401 (patch)
tree6266fec8dfc20c4c7d55b93fd562de6b755d4dbf /pkgs/games/construo
parent70decf6b0e9574e991f65ce59d993aff2bb43ec3 (diff)
Added PostgreSQL job.
svn path=/nixpkgs/trunk/; revision=9831
Diffstat (limited to 'pkgs/games/construo')
-rw-r--r--pkgs/games/construo/0.2.2.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/games/construo/0.2.2.nix b/pkgs/games/construo/0.2.2.nix
new file mode 100644
index 0000000000000..964b0e3898e6f
--- /dev/null
+++ b/pkgs/games/construo/0.2.2.nix
@@ -0,0 +1,29 @@
+args : with args;
+	with builderDefs {
+		src = /* put a fetchurl here */
+		fetchurl {
+			url = http://savannah.nongnu.org/download/construo/construo-0.2.2.tar.gz;
+			sha256 = "0c661rjasax4ykw77dgqj39jhb4qi48m0bhhdy42vd5a4rfdrcck";
+		};
+
+		buildInputs = [libX11 zlib xproto]
+		++ (if args ? mesa then [mesa freeglut] else [])
+		;
+		configureFlags = [""];
+	} null; /* null is a terminator for sumArgs */
+let 
+preConfigure = FullDepEntry ("
+  sed -e 's/math[.]h/cmath/' -i vector.cxx
+  sed -e 's/games/bin/' -i Makefile.in
+") [doUnpack minInit];
+in
+stdenv.mkDerivation rec {
+	name = "construo-"+version;
+	builder = writeScript (name + "-builder")
+		(textClosure [preConfigure doConfigure doMakeInstall doForceShare doPropagate]);
+	meta = {
+		description = "
+	Construo masses and springs simulation.
+";
+	};
+}