mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
907bb1aac6
* libdbi / libdbi-drivers: updated to 0.8.3, and make it compile with SQLite. * qemu-image: fix the URL. * gdmap: make it build again (requires an older GTK+). * rlwrap: updated to 0.37. * smbfs-fuse -> fusesmb to match the upstream name. * x11vnc: updated to 0.9.10. * clearlyU: fix the URL. * Various packages: follow the coding conventions. svn path=/nixpkgs/trunk/; revision=22814
29 lines
1.1 KiB
Nix
29 lines
1.1 KiB
Nix
{ stdenv, fetchurl, builderDefs, libX11, zlib, xproto, mesa ? null, freeglut ? null }:
|
|
|
|
let localDefs = builderDefs.passthru.function {
|
|
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 mesa freeglut];
|
|
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;
|
|
stdenv.mkDerivation rec {
|
|
name = "construo-0.2.2";
|
|
builder = writeScript (name + "-builder")
|
|
(textClosure localDefs ["preConfigure" "doConfigure" "doMakeInstall" "doForceShare" "doPropagate"]);
|
|
meta = {
|
|
description = "Construo masses and springs simulation";
|
|
inherit src;
|
|
};
|
|
}
|