Various fixes and updates to build that all.

svn path=/nixpkgs/branches/stdenv-updates/; revision=10568
This commit is contained in:
Michael Raskin 2008-02-10 16:44:43 +00:00
parent c264b316b1
commit 4df190c703
13 changed files with 187 additions and 12 deletions

View File

@ -3,8 +3,8 @@ stdenv.mkDerivation (rec {
name = "ImageMagick-6.3.8-2";
src = fetchurl {
url = "ftp://ftp.imagemagick.org/pub/ImageMagick/${name}.tar.bz2";
sha256 = "05bp10dzpw691w8hdw0n2xr65194xgslpqhzf4xbxla7gz8clnmg";
url = ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.3.8-5.tar.bz2;
sha256 = "0lsvi2z5b5zam6yvjzsyjpa36rg1c0kczifz73k9b4v8zz9a9vfl";
};
configureFlags = " --with-dots --with-gs-font-dir="+ ghostscript +

View File

@ -6,4 +6,5 @@ stdenv.mkDerivation {
url = http://nix.cs.uu.nl/dist/tarballs/elfutils-0.127.tar.gz;
sha256 = "12n3h5r3c24a6l2wxz0w2dqq072bvgms0dzckivrwp5vdn22lpdv";
};
preBuild = "sed -e 's/-Werror//' -i */Makefile ";
}

View File

@ -1,5 +1,10 @@
args : with args;
let localDefs = builderDefs {
args : with args; let
patch = fetchurl {
url = ftp://ftp.debian.org/debian/pool/main/l/ltrace/ltrace_0.5-3.diff.gz;
sha256 = "0rin25si7117wld5bc7vf3d73c5k9ph3zach7cbg9h9vvz376c26";
};
localDefs = with (builderDefs {src="";} null);
builderDefs {
src = /* put a fetchurl here */
fetchurl {
url = ftp://ftp.debian.org/debian/pool/main/l/ltrace/ltrace_0.5.orig.tar.gz;
@ -11,6 +16,10 @@ args : with args;
goSrcDir = "
cd ltrace-*;
";
preBuild = FullDepEntry (''
gunzip < ${patch} | patch -Np1
sed -e s@-Werror@@ -i Makefile.in
'')["minInit" "doUnpack"];
} null; /* null is a terminator for sumArgs */
in with localDefs;
let
@ -21,7 +30,7 @@ in
stdenv.mkDerivation rec {
name = "ltrace-0.5";
builder = writeScript (name + "-builder")
(textClosure localDefs [preConfigure doConfigure doMakeInstall doForceShare]);
(textClosure localDefs [preBuild preConfigure doConfigure doMakeInstall doForceShare]);
meta = {
description = "
Library call tracer.

View File

@ -176,6 +176,10 @@ rec {
# (e.g. `++ optional (system == "i686-linux") flashplayer').
optional = cond: elem: if cond then [elem] else [];
# Return a list or an empty list, dependening on a boolean value.
optionals = cond: elems: if cond then elems else [];
# Return a list of integers from `first' up to and including `last'.
range = first: last:

View File

@ -13,13 +13,14 @@ args : with args;
in with localDefs;
let
preBuild = FullDepEntry ("
sed -e '1i#define INT_MAX __INT_MAX__' -i *.c *.cpp
sed -e 's@/usr/local@'\$out'@g' -i Makefile.m4 Makefile
") [minInit doUnpack];
in
stdenv.mkDerivation rec {
name = "dvd+rw-tools-"+version;
builder = writeScript (name + "-builder")
(textClosure localDefs [preBuild doMakeInstall doForceShare doPropagate]);
(textClosure localDefs [preBuild addInputs (doDump "0") doMakeInstall doForceShare doPropagate]);
meta = {
description = "
DVD+RW tools.

View File

@ -3,7 +3,7 @@ buildInputs="$expat $erlang $zlib $openssl"
source $stdenv/setup
tar xfvz $src
cd $name/src
cd ejabberd-*/src
./configure --prefix=$out
make
make install

View File

@ -1,11 +1,11 @@
{stdenv, fetchurl, expat, erlang, zlib, openssl}:
stdenv.mkDerivation {
name = "ejabberd-1.1.4";
name = "ejabberd-2.0.0-rc1";
builder = ./builder.sh;
src = fetchurl {
url = http://www.process-one.net/downloads/ejabberd/1.1.4/ejabberd-1.1.4.tar.gz;
md5 = "65e9cd346f11a28afbacfe1d7be3a33b";
url = http://www.process-one.net/downloads/ejabberd/2.0.0-rc1/ejabberd-2.0.0-rc1.tar.gz;
sha256 = "02ldssvsy0rkvxm96018fpk5lc3iqgkrira9cw1ym2snas0k8nzy";
};
inherit expat erlang zlib openssl;
}

View File

@ -0,0 +1,18 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "lzma-4.32.5";
src = fetchurl {
url = http://tukaani.org/lzma/lzma-4.32.5.tar.gz;
sha256 = "1mqy1biy46gqky6n3gyr2l395hwckh0xyi96waz5p5x8mgp372ch";
};
CFLAGS = "-O3";
CXXFLAGS = "-O3";
meta = {
homepage = http://tukaani.org/lzma/;
description = "The LZMA compression program";
};
}

View File

@ -0,0 +1,33 @@
args : with args; with builderDefs {src="";} null;
let patch =
fetchurl {
url = http://ftp.de.debian.org/debian/pool/main/d/dosfstools/dosfstools_2.11-2.3.diff.gz;
sha256 = "0bzjhpgg4ih6c76ax8byis9vxgkr2c7bbbshqrkfq8j7ar48n5ld";
};
localDefs = builderDefs (rec {
src = /* put a fetchurl here */
fetchurl {
url = http://ftp.de.debian.org/debian/pool/main/d/dosfstools/dosfstools_2.11.orig.tar.gz;
sha256 = "1154k0y04npblgac81p4pcmglilk1ldrqll4hvbrwgcb7096vb0f";
};
preBuild = FullDepEntry (''
gunzip < ${patch} | patch -Np1
'')["minInit" "doUnpack"];
buildInputs = [];
configureFlags = [];
makeFlags = " PREFIX=$out ";
}) null; /* null is a terminator for sumArgs */
in with localDefs;
stdenv.mkDerivation rec {
name = "dosfstools-"+version;
builder = writeScript (name + "-builder")
(textClosure localDefs
[preBuild "doMakeInstall" doForceShare doPropagate]);
meta = {
description = "
Dosfstools - utilities for vfat file system.
";
homepage = "http://sixpak.org/dosfstools/dosfstools-2.8vb2.tar.gz";
};
}

View File

@ -0,0 +1,25 @@
args : with args; with builderDefs {src="";} null;
let localDefs = builderDefs (rec {
src = /* put a fetchurl here */
fetchurl {
url = ftp://ftp.deepspace6.net/pub/ds6/sources/nc6/nc6-1.0.tar.bz2;
sha256 = "01l28zv1yal58ilfnz6albdzqqxzsx3a58vmc14r9gv0bahffdgb";
};
buildInputs = [];
configureFlags = [];
}) null; /* null is a terminator for sumArgs */
in with localDefs;
stdenv.mkDerivation rec {
name = "nc6-"+version;
builder = writeScript (name + "-builder")
(textClosure localDefs
[doConfigure doMakeInstall doForceShare doPropagate]);
meta = {
description = "
nc6 - one more netcat, IPv6 support included.
";
homepage = "http://www.deepspace6.net/projects/netcat6.html";
};
}

View File

@ -0,0 +1,34 @@
args : with args; with builderDefs {src="";} null;
let localDefs = builderDefs (rec {
src = /* put a fetchurl here */
fetchurl {
url = http://www.dest-unreach.org/socat/download/socat-1.6.0.0.tar.bz2;
sha256 = "1j01iazwfr63q71cfcfzrdz8digqlg3ldhlbb72yl5mn9awr0w0m";
};
patches = [
(fetchurl {
url = http://www.dest-unreach.org/socat/contrib/socat-servicenames.patch;
sha256 = "1r8zd6mk257n01i34i5syxl2k6fr35nlr7bqs9sfc79irjl62z66";
})
(fetchurl {
url = http://www.dest-unreach.org/socat/contrib/socat-maxfds.patch.gz;
sha256 = "0fsn0k0qsrdbjbhj09a6kxfsxb7yhxs4cad26znd9naginsj7pxa";
})
];
buildInputs = [openssl];
configureFlags = [];
}) null; /* null is a terminator for sumArgs */
in with localDefs;
stdenv.mkDerivation rec {
name = "socat-"+version;
builder = writeScript (name + "-builder")
(textClosure localDefs
[doPatch doConfigure doMakeInstall doForceShare doPropagate]);
meta = {
description = "
Socat, one more analogue of netcat, but not mimicking it.
'netcat++' (extended design, new implementation)
";
homepage = "http://www.dest-unreach.org/socat/";
};
}

View File

@ -0,0 +1,25 @@
args : with args; with builderDefs {src="";} null;
let localDefs = builderDefs (rec {
src = /* put a fetchurl here */
fetchurl {
url = http://www.dest-unreach.org/socat/download/socat-2.0.0-b1.tar.bz2;
sha256 = "0ybd5fw22icl10r33k987rskh9gvysm1jph90a1pfdjj57cy44fk";
};
buildInputs = [openssl];
configureFlags = [];
}) null; /* null is a terminator for sumArgs */
in with localDefs;
stdenv.mkDerivation rec {
name = "socat-"+version;
builder = writeScript (name + "-builder")
(textClosure localDefs
[doPatch doConfigure doMakeInstall doForceShare doPropagate]);
meta = {
description = "
Socat, one more analogue of netcat, but not mimicking it.
'netcat++' (extended design, new implementation)
";
homepage = "http://www.dest-unreach.org/socat/";
};
}

View File

@ -417,6 +417,13 @@ rec {
inherit fetchurl stdenv coreutils;
});
dosfstoolsFun = lib.sumArgs (selectVersion ../tools/misc/dosfstools "2.11deb")
{
inherit builderDefs;
};
dosfstools = dosfstoolsFun null;
ed = import ../tools/text/ed {
inherit fetchurl stdenv;
};
@ -612,6 +619,10 @@ rec {
inherit fetchurl stdenv ghc tetex polytable;
};
lzma = import ../tools/compression/lzma {
inherit fetchurl stdenv;
};
man = import ../tools/misc/man {
inherit fetchurl stdenv db4 groff;
};
@ -639,6 +650,12 @@ rec {
inherit fetchurl stdenv gettext;
};
nc6Fun = lib.sumArgs (selectVersion ../tools/networking/nc6 "1.0") {
inherit builderDefs;
};
nc6 = nc6Fun null;
ncat = import ../tools/networking/ncat {
inherit fetchurl stdenv openssl;
};
@ -763,6 +780,12 @@ rec {
smbfsFuse = smbfsFuseFun null;
socatFun = lib.sumArgs (selectVersion ../tools/networking/socat "1.6.0.0") {
inherit builderDefs openssl;
};
socat = socatFun null;
sudo = import ../tools/security/sudo {
inherit fetchurl stdenv coreutils pam;
};
@ -1588,11 +1611,13 @@ rec {
inherit fetchurl stdenv;
};
ltrace = import ../development/tools/misc/ltrace {
ltraceFun = lib.sumArgs (selectVersion ../development/tools/misc/ltrace "0.5-3deb") {
inherit fetchurl stdenv builderDefs stringsWithDeps lib;
elfutils = elfutilsFun {version = "0.127";} null;
};
ltrace = ltraceFun null;
mk = import ../development/tools/build-managers/mk {
inherit fetchurl stdenv;
};
@ -4228,7 +4253,7 @@ rec {
inherit (xlibs) libX11 libXft libXext libXinerama libXrandr;
};
imagemagickFun = lib.sumArgs (import ../applications/graphics/ImageMagick) {
imagemagickFun = lib.sumArgs (selectVersion ../applications/graphics/ImageMagick "6.3.8-5" ) {
inherit stdenv fetchurl libtool;
};