Added PostgreSQL job.

svn path=/nixpkgs/trunk/; revision=9831
This commit is contained in:
Michael Raskin 2007-12-03 04:48:44 +00:00
parent 70decf6b0e
commit c2c528b6fa
3 changed files with 58 additions and 0 deletions

View File

@ -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.
";
};
}

View File

@ -0,0 +1,15 @@
args: with args;
stdenv.mkDerivation {
name = "upstart-jobcontrol";
buildCommand = "
mkdir -p \$out/bin
echo '
file=/etc/event.d/\$1
shift
controlscript=\$(egrep exec\\|respawn \$file | tail | sed -e s/^\\\\s\\\\+//g | sed -e s/\\\\s\\\\+/\\ /g | cut -f 2 -d \\ )
echo Running \$controlscript \"\$@\"
\$controlscript \"\$@\"
' >\$out/bin/jobcontrol
chmod a+x \$out/bin/jobcontrol
";
}

View File

@ -3466,6 +3466,10 @@ rec {
inherit fetchurl stdenv;
};
upstartJobControl = import ../os-specific/linux/upstart/jobcontrol.nix {
inherit stdenv;
};
usbutils = import ../os-specific/linux/usbutils {
inherit fetchurl stdenv libusb;
};
@ -4471,6 +4475,16 @@ rec {
### GAMES
construoFun = lib.sumArgs (selectVersion ../games/construo) {
inherit stdenv fetchurl builderDefs
zlib;
inherit (xlibs) libX11 xproto;
};
construo = construoFun {
inherit mesa freeglut;
version = "0.2.2";
} null;
exult = import ../games/exult {
inherit fetchurl SDL SDL_mixer zlib libpng unzip;