* Sync with the trunk.

svn path=/nixpkgs/branches/stdenv-updates/; revision=14557
This commit is contained in:
Eelco Dolstra
2009-03-16 12:45:27 +00:00
339 changed files with 4943 additions and 2370 deletions

View File

@@ -1,17 +1,16 @@
args: with args;
stdenv.mkDerivation {
name = "fpc-2.0.4-binary";
name = "fpc-2.2.2-binary";
src = fetchurl {
url = ftp://ftp.chg.ru/pub/lang/pascal/fpc/dist/i386-linux-2.0.4/fpc-2.0.4.i386-linux.tar;
sha256 = "0b2szv2anbf58h4i5mlph93afv9qdx6i0jqggba04d3anjbl9gfy";
};
url = ftp://ftp.chg.ru/pub/lang/pascal/fpc/dist/i386-linux-2.2.2/fpc-2.2.2.i386-linux.tar;
sha256 = "8c18f63b36a76eee673f96ca254c49c5a42bcf3e36279abe8774f961792449a5";
};
builder = ./binary-builder.sh;
meta = {
description = "
Free Pascal Compiler from a binary distribution.
";
description = "Free Pascal Compiler from a binary distribution";
};
}

View File

@@ -1,29 +1,37 @@
args:
if ((args ? startFPC) && (args.startFPC != null))
then
if args ? startFPC && args.startFPC != null then
with args;
stdenv.mkDerivation {
name = "fpc-2.2.0";
name = "fpc-2.2.2";
src = fetchurl {
url = ftp://freepascal.stack.nl/pub/fpc/dist/source-2.2.0/fpcbuild-2.2.0.tar.gz;
sha256 = "0pvsdmimknkgy8jgdz9kd7w5bs9fy5ynrgswpk0ib6x0y26zxijm";
};
url = ftp://freepascal.stack.nl/pub/fpc/dist/source-2.2.2/fpcbuild-2.2.2.tar.gz;
sha256 = "0d73b119e029382052fc6615034c4b5ee3ec66fa6cc45648f1f07cfb2c1058f1";
};
buildInputs = [startFPC gawk];
preConfigure = (if system == "i686-linux" || system == "x86_64-linux" then ''
sed -e "s@'/lib/ld-linux[^']*'@'''@" -i fpcsrc/compiler/systems/t_linux.pas
'' else "");
preConfigure =
if system == "i686-linux" || system == "x86_64-linux" then ''
sed -e "s@'/lib/ld-linux[^']*'@'''@" -i fpcsrc/compiler/systems/t_linux.pas
'' else "";
makeFlags = "NOGDB=1";
installFlags = "INSTALL_PREFIX=\${out}";
postInstall = "ln -fs $out/lib/fpc/*/ppc386 $out/bin;
mkdir -p $out/lib/fpc/etc/ ;
$out/lib/fpc/*/samplecfg $out/lib/fpc/2.2.0 $out/lib/fpc/etc/;";
postInstall = ''
ln -fs $out/lib/fpc/*/ppc386 $out/bin
mkdir -p $out/lib/fpc/etc/
$out/lib/fpc/*/samplecfg $out/lib/fpc/2.2.0 $out/lib/fpc/etc/
'';
meta = {
description = "
Free Pascal Compiler from a source distribution.
";
description = "Free Pascal Compiler from a source distribution";
};
} else (import ./default.nix (args // {startFPC = (import ./binary.nix args);}))
}
else (import ./default.nix (args // {startFPC = (import ./binary.nix args);}))

View File

@@ -1,8 +1,8 @@
args : with args;
rec {
src = fetchurl {
url = http://downloads.sourceforge.net/lazarus/lazarus-0.9.24-0.tar.gz;
sha256 = "0kkj1yycdbyrsw6c34gm5ya7q3256p8ph8j5a23x3qy86gbch827";
url = http://downloads.sourceforge.net/lazarus/lazarus-0.9.26-0.tgz;
sha256 = "1pb6h35axdmg552pvazgi7jclkx93vssy08cbpa4jw3rij7drhnl";
};
buildInputs = [fpc gtk glib libXi inputproto
@@ -31,7 +31,7 @@ rec {
wrapProgram $out/bin/startlazarus --prefix NIX_LDFLAGS ' ' "'$NIX_LDFLAGS'"
'') ["doMakeInstall" "minInit" "defEnsureDir"];
name = "lazarus-0.9.24-0";
name = "lazarus-0.9.26-0";
meta = {
description = "Lazarus graphical IDE for FreePascal language";
homepage = http://www.lazarus.freepascal.org ;

View File

@@ -52,8 +52,10 @@ stdenv.mkDerivation {
meta = {
homepage = http://www.intrepid.com/upc.html;
license = "GPL/LGPL";
description = ''A GCC-based compiler for the Unified Parallel C (UPC)
language, a distributed shared memory aware variant of
C (see http://upc.gwu.edu/).'';
longDscription = ''
A GCC-based compiler for the Unified Parallel C (UPC) language,
a distributed shared memory aware variant of C (see
http://upc.gwu.edu/).
'';
};
}

View File

@@ -173,7 +173,7 @@ rec {
};
};
derivations = with lib; builtins.listToAttrs (lib.concatLists ( lib.mapRecordFlatten
( n : attrs : let d = (toDerivation attrs); in [ (nv n d) (nv attrs.name d) ] ) pkgs ) );
( n : attrs : let d = (toDerivation attrs); in [ (nameValuePair n d) (nameValuePair attrs.name d) ] ) pkgs ) );
}.derivations;
});

View File

@@ -0,0 +1,57 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "gprolog-1.3.1";
src = fetchurl {
urls = [
"mirror://gnu/gprolog/${name}.tar.gz"
"http://www.gprolog.org/${name}.tar.gz"
];
sha256 = "05n3k0yynzvpc1ir1nw5bwm6m3ail0a0r1vqdsh4fii3kndiacrw";
};
configurePhase = "cd src ;"
+ "./configure --prefix=$out "
+ "--with-install-dir=$out/share/${name} "
+ "--with-examples-dir=$out/share/doc/${name}/examples "
+ "--with-doc-dir=$out/share/doc/${name}";
doCheck = true;
postInstall = ''
ln -vs "$out/share/${name}/include" "$out/include"
'';
meta = {
homepage = http://www.gnu.org/software/gprolog/;
description = "GNU Prolog, a free Prolog compiler with constraint solving over finite domains";
longDescription = ''
GNU Prolog is a free Prolog compiler with constraint solving
over finite domains developed by Daniel Diaz.
GNU Prolog accepts Prolog+constraint programs and produces
native binaries (like gcc does from a C source). The obtained
executable is then stand-alone. The size of this executable can
be quite small since GNU Prolog can avoid to link the code of
most unused built-in predicates. The performances of GNU Prolog
are very encouraging (comparable to commercial systems).
Beside the native-code compilation, GNU Prolog offers a
classical interactive interpreter (top-level) with a debugger.
The Prolog part conforms to the ISO standard for Prolog with
many extensions very useful in practice (global variables, OS
interface, sockets,...).
GNU Prolog also includes an efficient constraint solver over
Finite Domains (FD). This opens contraint logic programming to
the user combining the power of constraint programming to the
declarativity of logic programming.
'';
license = "GPLv2+";
};
}

View File

@@ -1,56 +1,54 @@
args: with args;
let edf = composableDerivation.edf;
wwf = composableDerivation.wwf; in
composableDerivation.composableDerivation {
initial = {
composableDerivation.composableDerivation {} {
name="hugs98";
name="hugs98";
src = fetchurl {
url = http://cvs.haskell.org/Hugs/downloads/2006-09/hugs98-Sep2006.tar.gz;
sha256 = "3cf4d27673564cffe691bd14032369f646233f14daf2bc37c6c6df9f062b46b6";
};
#encode all character I/O using the byte encoding
#determined by the locale in effect at that time. To
#require that the UTF-8 encoding is always used, give
#the --enable-char-encoding=utf8 option.
#[default=autodetect]
postUnpack = ''
find -type f | xargs sed -i 's@/bin/cp@cp@';
'';
configurePhase="./configure --prefix=\$out --enable-char-encoding=utf8 $configureFlags";
flags =
edf { name = "pathCanonicalization"; feat="path-canonicalization"; }
// edf { name="timer"; } # enable evaluation timing (for benchmarking Hugs)
// edf { name="profiling"; }# enable heap profiler
// edf { name="stackDumps"; feat="stack-dummps"; } # enable stack dump on stack overflow
// edf { name="largeBanner"; feat="large-banner"; } # disable multiline startup banner
// edf { name="internal-prims"; } # experimental primitives to access Hugs's innards
// edf { name="debug"; } # include C debugging information (for debugging Hugs)
// edf { name="tag"; } # runtime tag checking (for debugging Hugs)
// edf { name="lint"; } # enable "lint" flags (for debugging Hugs)
// edf { name="only98"; } # build Hugs to understand Haskell 98 only
// edf { name="ffi"; }
#--with-nmake produce a Makefile compatible with nmake
#--with-gui build Hugs for Windows GUI (Borland C++ only)
// wwf { name="pthreads"; } # build Hugs using POSIX threads C library
;
cfg = {
largeBannerSupport = true; # seems to be default
char = { cfgOption = "--enable-char-encoding"; blocks = "utf8"; };
utf8 = { cfgOption = "--enable-char-encoding=utf8"; blocks="char"; };
src = fetchurl {
url = http://cvs.haskell.org/Hugs/downloads/2006-09/hugs98-Sep2006.tar.gz;
sha256 = "3cf4d27673564cffe691bd14032369f646233f14daf2bc37c6c6df9f062b46b6";
};
#encode all character I/O using the byte encoding
#determined by the locale in effect at that time. To
#require that the UTF-8 encoding is always used, give
#the --enable-char-encoding=utf8 option.
#[default=autodetect]
postUnpack = ''
find -type f | xargs sed -i 's@/bin/cp@cp@';
'';
configurePhase="./configure --prefix=\$out --enable-char-encoding=utf8 $configureFlags";
flags =
edf { name = "pathCanonicalization"; feat="path-canonicalization"; }
// edf { name="timer"; } # enable evaluation timing (for benchmarking Hugs)
// edf { name="profiling"; }# enable heap profiler
// edf { name="stackDumps"; feat="stack-dummps"; } # enable stack dump on stack overflow
// edf { name="largeBanner"; feat="large-banner"; } # disable multiline startup banner
// edf { name="internal-prims"; } # experimental primitives to access Hugs's innards
// edf { name="debug"; } # include C debugging information (for debugging Hugs)
// edf { name="tag"; } # runtime tag checking (for debugging Hugs)
// edf { name="lint"; } # enable "lint" flags (for debugging Hugs)
// edf { name="only98"; } # build Hugs to understand Haskell 98 only
// edf { name="ffi"; }
#--with-nmake produce a Makefile compatible with nmake
#--with-gui build Hugs for Windows GUI (Borland C++ only)
// wwf { name="pthreads"; } # build Hugs using POSIX threads C library
;
cfg = {
largeBannerSupport = true; # seems to be default
char = { cfgOption = "--enable-char-encoding"; blocks = "utf8"; };
utf8 = { cfgOption = "--enable-char-encoding=utf8"; blocks="char"; };
};
meta = {
license = "as-is"; # gentoo is calling it this way..
description = "The HUGS98 Haskell <interpreter";
homepage = http://www.haskell.org/hugs;
};
meta = {
license = "as-is"; # gentoo is calling it this way..
description = "The HUGS98 Haskell <interpreter";
homepage = http://www.haskell.org/hugs;
};
}

View File

@@ -31,9 +31,7 @@ stdenv.mkDerivation rec {
builder = writeScript (name + "-builder")
(textClosure localDefs [allBuild doForceShare doPropagate]);
meta = {
description = "
Qi - next generation on top of Common Lisp.
";
description = "Qi - next generation on top of Common Lisp";
inherit src;
};
}

View File

@@ -1,38 +1,36 @@
args: with args;
let edf = composableDerivation.edf; in
composableDerivation.composableDerivation {
initial = {
name = "roadsend-2.9.3";
buildInputs = [bigloo curl];
flags = edf { name = "pcre"; }
// edf { name = "fcgi"; enable = { inherit fcgi; }; }
// edf { name = "xml"; enable = { buildInputs = [ libxml2 ]; }; }
// edf { name = "mysql"; enable = { buildInputs = [ mysql ]; }; }
// edf { name = "odbc"; };
# // edf { name = "gtk"} }
# // edf { name = "gtk2", enable = { buildInputs = [ mysql ]; } }
cfg = {
pcreSupport = true;
fcgiSupport = true;
xmlSupport = true;
mysqlSupport = true;
};
src = args.fetchurl {
url = "http://code.roadsend.com/snaps/roadsend-php-20081210.tar.bz2";
sha256 = "0yhpiik0dyayd964wvn2k0cq7b1gihx1k3qx343r2l7lla4mapsx";
};
composableDerivation.composableDerivation {} {
name = "roadsend-2.9.3";
buildInputs = [bigloo curl];
flags = edf { name = "pcre"; }
// edf { name = "fcgi"; enable = { inherit fcgi; }; }
// edf { name = "xml"; enable = { buildInputs = [ libxml2 ]; }; }
// edf { name = "mysql"; enable = { buildInputs = [ mysql ]; }; }
// edf { name = "odbc"; };
# // edf { name = "gtk"} }
# // edf { name = "gtk2", enable = { buildInputs = [ mysql ]; } }
cfg = {
pcreSupport = true;
fcgiSupport = true;
xmlSupport = true;
mysqlSupport = true;
};
src = args.fetchurl {
url = "http://code.roadsend.com/snaps/roadsend-php-20081210.tar.bz2";
sha256 = "0yhpiik0dyayd964wvn2k0cq7b1gihx1k3qx343r2l7lla4mapsx";
};
# http://code.roadsend.com/snaps/roadsend-php-testsuite-2.9.7.tar.bz2";
# sha256 = "0rf0g9r0prla7daq3aif24d7dx0j01i35hcm8h5bbg3gvpfim463";
# tell pcc where to find the fastcgi library
postInstall = " sed -e \"s=(ldflags fastcgi.*=(ldflags -l fastcgi -L \$fcgi)=\" -i \$out/etc/pcc.conf ";
meta = {
description = "roadsend PHP -> C compiler";
homepage = http://www.roadsend.com;
# you can choose one of the following licenses:
# Runtime license is LPGL 2.1
license = ["GPL2"];
};
# tell pcc where to find the fastcgi library
postInstall = " sed -e \"s=(ldflags fastcgi.*=(ldflags -l fastcgi -L \$fcgi)=\" -i \$out/etc/pcc.conf ";
meta = {
description = "roadsend PHP -> C compiler";
homepage = http://www.roadsend.com;
# you can choose one of the following licenses:
# Runtime license is LPGL 2.1
license = ["GPL2"];
};
}

View File

@@ -24,8 +24,7 @@ stdenv.mkDerivation rec {
doCheck = true;
meta = {
description = ''Guile-Library, a collection of useful Guile
Scheme modules'';
description = "Guile-Library, a collection of useful Guile Scheme modules";
homepage = http://home.gna.org/guile-lib/;
license = "GPL";
};

View File

@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
};
fullMaude = fetchurl {
url = "http://maude.cs.uiuc.edu/download/current/FM2.4/full-maude24.maude";
sha256 = "0fwpnp5a8vw7q3iczwlra9074is95a1087ikx0a0idy8p4drnl61";
sha256 = "9e4ebdc717dc968d0b6c1179f360e60b3a39ea8cecc1a7fa49f2105bbddc48c4";
};
docs = fetchurl {
url = "http://mirror.switch.ch/mirror/gentoo/distfiles/maude-2.3.0-extras.tar.bz2";

View File

@@ -4,177 +4,174 @@ args: with args;
let inherit (args.composableDerivation) composableDerivation edf wwf; in
composableDerivation {
initial = fixed : {
composableDerivation {} ( fixed : {
name = "php_configurable-${version}";
name = "php_configurable-${version}";
buildInputs = ["flex" "bison" "pkgconfig"];
buildInputs = ["flex" "bison" "pkgconfig"];
flags = {
flags = {
# much left to do here...
# SAPI modules:
apxs2 = {
configureFlags = ["--with-apxs2=${apacheHttpd}/bin/apxs"];
buildInputs = [apacheHttpd];
};
# Extensions
curl = {
configureFlags = ["--with-curl=${args.curl}" "--with-curlwrappers"];
buildInputs = [curl];
};
zlib = {
configureFlags = ["--with-zlib=${args.zlib}"];
buildInputs = [zlib];
};
libxml2 = {
configureFlags = ["--with-libxml-dir=${libxml2}"];
buildInputs = [ libxml2 ];
};
postgresql = {
configureFlags = ["--with-pgsql=${postgresql}"];
buildInputs = [ postgresql ];
};
mysql = {
configureFlags = ["--with-mysql=${mysql}"];
buildInputs = [ mysql ];
};
mysqli = {
configureFlags = ["--with-mysqli=${mysql}/bin/mysql_config"];
buildInputs = [ mysql];
};
mysqli_embedded = {
configureFlags = ["--enable-embedded-mysqli"];
depends = "mysqli";
assertion = fixed.mysqliSupport;
};
pdo_mysql = {
configureFlags = ["--with-pdo-mysql=${mysql}"];
buildInputs = [ mysql ];
};
bcmath = {
configureFlags = ["--enable-bcmath"];
};
gd = {
configureFlags = ["--with-gd=${args.gd}"];
buildInputs = [gd];
};
sockets = {
configureFlags = ["--enable-sockets"];
};
openssl = {
configureFlags = ["--with-openssl=${args.openssl}"];
buildInputs = ["openssl"];
};
mbstring = {
configureFlags = ["--enable-mbstring"];
};
/*
Building xdebug withing php to be able to add the parameters to the ini file.. Ther should be a better way
meta = {
description = "debugging support for PHP";
homepage = http://xdebug.org;
license = "based on the PHP license - as is";
};
*/
xdebug = {
buildInputs = [ automake autoconf ];
xdebug_src = args.fetchurl {
name = "xdebug-2.0.2.tar.gz";
url = "http://xdebug.org/link.php?url=xdebug202";
sha256 = "1h0bxvf8krr203fmk1k7izrrr81gz537xmd3pqh4vslwdlbhrvic";
};
};
# SAPI modules:
apxs2 = {
configureFlags = ["--with-apxs2=${apacheHttpd}/bin/apxs"];
buildInputs = [apacheHttpd];
};
cfg = {
mysqlSupport = true;
mysqliSupport = true;
pdo_mysqlSupport = true;
libxml2Support = true;
apxs2Support = true;
bcmathSupport = true;
socketsSupport = true;
curlSupport = true;
gettextSupport = true;
postgresqlSupport = true;
zlibSupport = true;
opnesslSupport = true;
xdebugSupport = true;
mbstringSupport = true;
gdSupport = true;
# Extensions
curl = {
configureFlags = ["--with-curl=${args.curl}" "--with-curlwrappers"];
buildInputs = [curl];
};
zlib = {
configureFlags = ["--with-zlib=${args.zlib}"];
buildInputs = [zlib];
};
libxml2 = {
configureFlags = ["--with-libxml-dir=${libxml2}"];
buildInputs = [ libxml2 ];
};
postgresql = {
configureFlags = ["--with-pgsql=${postgresql}"];
buildInputs = [ postgresql ];
};
mysql = {
configureFlags = ["--with-mysql=${mysql}"];
buildInputs = [ mysql ];
};
mysqli = {
configureFlags = ["--with-mysqli=${mysql}/bin/mysql_config"];
buildInputs = [ mysql];
};
mysqli_embedded = {
configureFlags = ["--enable-embedded-mysqli"];
depends = "mysqli";
assertion = fixed.mysqliSupport;
};
pdo_mysql = {
configureFlags = ["--with-pdo-mysql=${mysql}"];
buildInputs = [ mysql ];
};
bcmath = {
configureFlags = ["--enable-bcmath"];
};
gd = {
configureFlags = ["--with-gd=${args.gd}"];
buildInputs = [gd];
};
sockets = {
configureFlags = ["--enable-sockets"];
};
openssl = {
configureFlags = ["--with-openssl=${args.openssl}"];
buildInputs = ["openssl"];
};
mbstring = {
configureFlags = ["--enable-mbstring"];
};
/*
Building xdebug withing php to be able to add the parameters to the ini file.. Ther should be a better way
meta = {
description = "debugging support for PHP";
homepage = http://xdebug.org;
license = "based on the PHP license - as is";
};
*/
xdebug = {
buildInputs = [ automake autoconf ];
xdebug_src = args.fetchurl {
name = "xdebug-2.0.2.tar.gz";
url = "http://xdebug.org/link.php?url=xdebug202";
sha256 = "1h0bxvf8krr203fmk1k7izrrr81gz537xmd3pqh4vslwdlbhrvic";
};
};
};
configurePhase = ''
iniFile=$out/etc/$name.ini
[[ -z "$libxml2" ]] || export PATH=$PATH:$libxml2/bin
./configure --with-config-file-scan-dir=/etc --with-config-file-path=$out/etc --prefix=$out $configureFlags
echo configurePhase end
'';
installPhase = ''
unset installPhase; installPhase;
cp php.ini-recommended $iniFile
# Now Let's build xdebug if flag has been given
# TODO I think there are better paths than the given below
if [ -n $flag_set_xdebug ]; then
PATH=$PATH:$out/bin
tar xfz $xdebug_src;
cd xdebug*
phpize
./configure --prefix=$out
make
ensureDir $out/lib; cp modules/xdebug.so $out/lib
cat >> $out/etc/php.ini << EOF
zend_extension="$out/lib/xdebug.so"
zend_extension_ts="$out/lib/xdebug.so"
zend_extension_debug="$out/lib/xdebug.so"
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=0
xdebug.profiler_output_dir="/tmp/xdebug"
xdebug.remote_mode=req
max_execution_time = 300
date.timezone = UTC
EOF
fi
'';
src = args.fetchurl {
url = "http://nl.php.net/get/php-${version}.tar.bz2/from/this/mirror";
md5 = "7380ffecebd95c6edb317ef861229ebd";
name = "php-${version}.tar.bz2";
};
meta = {
description = "The PHP language runtime engine";
homepage = http://www.php.net/;
license = "PHP-3";
};
patches = [./fix.patch];
cfg = {
mysqlSupport = true;
mysqliSupport = true;
pdo_mysqlSupport = true;
libxml2Support = true;
apxs2Support = true;
bcmathSupport = true;
socketsSupport = true;
curlSupport = true;
gettextSupport = true;
postgresqlSupport = true;
zlibSupport = true;
opnesslSupport = true;
xdebugSupport = true;
mbstringSupport = true;
gdSupport = true;
};
}
configurePhase = ''
iniFile=$out/etc/$name.ini
[[ -z "$libxml2" ]] || export PATH=$PATH:$libxml2/bin
./configure --with-config-file-scan-dir=/etc --with-config-file-path=$out/etc --prefix=$out $configureFlags
echo configurePhase end
'';
installPhase = ''
unset installPhase; installPhase;
cp php.ini-recommended $iniFile
# Now Let's build xdebug if flag has been given
# TODO I think there are better paths than the given below
if [ -n $flag_set_xdebug ]; then
PATH=$PATH:$out/bin
tar xfz $xdebug_src;
cd xdebug*
phpize
./configure --prefix=$out
make
ensureDir $out/lib; cp modules/xdebug.so $out/lib
cat >> $out/etc/php.ini << EOF
zend_extension="$out/lib/xdebug.so"
zend_extension_ts="$out/lib/xdebug.so"
zend_extension_debug="$out/lib/xdebug.so"
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=0
xdebug.profiler_output_dir="/tmp/xdebug"
xdebug.remote_mode=req
max_execution_time = 300
date.timezone = UTC
EOF
fi
'';
src = args.fetchurl {
url = "http://nl.php.net/get/php-${version}.tar.bz2/from/this/mirror";
md5 = "7380ffecebd95c6edb317ef861229ebd";
name = "php-${version}.tar.bz2";
};
meta = {
description = "The PHP language runtime engine";
homepage = http://www.php.net/;
license = "PHP-3";
};
patches = [./fix.patch];
})

View File

@@ -33,7 +33,7 @@ in
# python wiht all features enabled.
# if you really need a stripped version we should add __overides
# so that you can replace it the way it's done in all-packages.nix
pythonFull = t.pythonMinimal.passthru.fun {
pythonFull = t.pythonMinimal.merge {
name = "python-${t.version}-full";
cfg = {
zlibSupport = true;
@@ -79,48 +79,46 @@ in
# lib to verify it works
# You can define { python25 { debugCmd = "DISPLAY=:0.0 pathtoxterm"; }
# in your config for easier debugging..
pythonLibStub = composableDerivation {
initial = {
propagatedBuildInputs = [ t.pythonFull ]; # see [1]
postPhases = ["postAll"]; # using new name so that you dno't override this phase by accident
prePhases = ["defineValidatingEval"];
# ensure phases are run or a non zero exit status is caused (if there are any syntax errors such as eval "while")
defineValidatingEval = ''
eval(){
e="$(type eval | { read; while read line; do echo $line; done })"
unset eval;
local evalSucc="failure"
eval "evalSucc=ok;""$1"
eval "$e"
[ $evalSucc = "failure" ] && { echo "eval failed, snippet:"; echo "$1"; return 1; }
}
'';
postAll = ''
ensureDir $out/nix-support
echo "export NIX_PYTHON_SITES=\"$out:\$NIX_PYTHON_SITES\"" >> $out/nix-support/setup-hook
# run check
if [ -n "$pyCheck" ]; then
( . $out/nix-support/setup-hook
mkdir $TMP/new-test; cd $TMP/new-test
echo PYTHONPATH=$PYTHONPATH
echo NIX_PYTHON_SITES=$NIX_PYTHON_SITES
script="$(echo -e "import sys\nprint sys.path\npyCheck\nprint \"check ok\"")"
script="''${script/pyCheck/$pyCheck}"
echo "check script is"; echo "$script"
echo "$script" | python || { ${ getConfig [t.versionAttr "debugCmd"] ":"} ; echo "pycheck failed"; exit 1; }
)
fi'';
passthru = {
libPython = t.version; # used to find all python libraries fitting this version (-> see name all below)
};
mergeAttrBy = {
pyCheck = x : y : "${x}\n${y}";
};
};
pythonLibStub = composableDerivation {} {
propagatedBuildInputs = [ t.pythonFull ]; # see [1]
postPhases = ["postAll"]; # using new name so that you dno't override this phase by accident
prePhases = ["defineValidatingEval"];
# ensure phases are run or a non zero exit status is caused (if there are any syntax errors such as eval "while")
defineValidatingEval = ''
eval(){
e="$(type eval | { read; while read line; do echo $line; done })"
unset eval;
local evalSucc="failure"
eval "evalSucc=ok;""$1"
eval "$e"
[ $evalSucc = "failure" ] && { echo "eval failed, snippet:"; echo "$1"; return 1; }
}
'';
postAll = ''
ensureDir $out/nix-support
echo "export NIX_PYTHON_SITES=\"$out:\$NIX_PYTHON_SITES\"" >> $out/nix-support/setup-hook
# run check
if [ -n "$pyCheck" ]; then
( . $out/nix-support/setup-hook
mkdir $TMP/new-test; cd $TMP/new-test
echo PYTHONPATH=$PYTHONPATH
echo NIX_PYTHON_SITES=$NIX_PYTHON_SITES
script="$(echo -e "import sys\nprint sys.path\npyCheck\nprint \"check ok\"")"
script="''${script/pyCheck/$pyCheck}"
echo "check script is"; echo "$script"
echo "$script" | python || { ${ getConfig [t.versionAttr "debugCmd"] ":"} ; echo "pycheck failed"; exit 1; }
)
fi'';
passthru = {
libPython = t.version; # used to find all python libraries fitting this version (-> see name all below)
};
mergeAttrBy = {
pyCheck = x : y : "${x}\n${y}";
};
};
# same as pythonLibStub, but runs default python setup.py actions
pythonLibSetup = t.pythonLibStub.passthru.fun {
pythonLibSetup = t.pythonLibStub.merge {
buildPhase = ''python setup.py $setupFlags build'';
installPhase = ''python setup.py $setupFlags install --prefix=$out'';
mergeAttrBy = {
@@ -130,8 +128,8 @@ in
### python libraries:
wxPythonBaseFun = (t.pythonLibSetup.passthru.funMerge (a :
let inherit (a.fixed) wxGTK version; in
wxPythonBaseFun = (t.pythonLibSetup.merge (a :
let inherit (a.fixed.passthru) wxGTK; inherit (a.fixed) version; in
{
buildInputs = [p.pkgconfig wxGTK (wxGTK.gtk)];
setupFlags=["WXPORT=gtk2 NO_HEADERS=1 BUILD_GLCANVAS=0 BUILD_OGL=0 UNICODE=1"];
@@ -144,7 +142,7 @@ in
license="wxWinLL-3";
};
}
)).passthru.fun;
)).merge;
wxPython26 = t.wxPythonBaseFun {
version = "2.6.3.3";
@@ -166,7 +164,7 @@ in
#};
# couldn't download source
#foursuite = pythonLibSetup.passthru.fun {
#foursuite = pythonLibSetup.merge {
# version = "1.0.2";
# name = "4suite-${version}";
# src = fetchurl {
@@ -175,7 +173,7 @@ in
# };
#};
#bsddb3 = t.pythonLibSetup.passthru.fun {
#bsddb3 = t.pythonLibSetup.merge {
# version = "1.0.2";
# name = "bsddb3-4.5.0";
# setupFlags = ["--berkeley-db=${p.db4}"];
@@ -197,8 +195,8 @@ in
# patching pygtk to another */gtk2.0 directory to sys.path for each NIX_PYTHON_SITES.
# If you install dozens of python packages this might be bloat.
# So I think the overhead of installing these packages into the same store path should be prefered.
pygtkBaseFun = (t.pythonLibStub.passthru.funMerge (a :
let inherit (a.fixed) glib gtk; in lib.mergeAttrsByFuncDefaults [
pygtkBaseFun = (t.pythonLibStub.merge (a :
let inherit (a.fixed.passthru) glib gtk; in lib.mergeAttrsByFuncDefaults [
{
unpackPhase = "true";
configurePhase = "true";
@@ -312,9 +310,9 @@ in
# '';
#};
pygtk212 = t.pygtkBaseFun.passthru.funMerge (a : {
pygtk212 = t.pygtkBaseFun.merge (a : {
version = "2.12.1";
name = "pygobject-${a.fixed.pygobjectVersion}-and-pygtk-${a.fixed.version}";
name = "pygobject-${a.fixed.passthru.pygobjectVersion}-and-pygtk-${a.fixed.version}";
pygtkSrc = fetchurl {
url = http://ftp.acc.umu.se/pub/GNOME/sources/pygtk/2.12/pygtk-2.12.1.tar.bz2;
sha256 = "0gg13xgr7y9sppw8bdys042928nc66czn74g60333c4my95ys021";
@@ -326,7 +324,7 @@ in
'';
});
pycairo = t.pythonLibStub.passthru.fun {
pycairo = t.pythonLibStub.merge {
name = "pycairo-1.8.0";
buildInputs = [ p.pkgconfig p.cairo p.x11 ];
src = fetchurl {
@@ -336,7 +334,7 @@ in
pyCheck = "import cairo";
};
gstPython = t.pythonLibStub.passthru.fun {
gstPython = t.pythonLibStub.merge {
name = "gst-python-0.10.13";
src = fetchurl {
url = http://gstreamer.freedesktop.org/src/gst-python/gst-python-0.10.13.tar.gz;
@@ -377,7 +375,7 @@ in
};
};
pygoocanvas = t.pythonLibStub.passthru.fun {
pygoocanvas = t.pythonLibStub.merge {
src = p.fetchurl {
url = http://download.berlios.de/pygoocanvas/pygoocanvas-0.10.0.tar.gz;
sha256 = "0pxznzdscbhvn8102vrqy3r1g6ss4sgs8wwy6y4c5g26rrp7l55d";
@@ -393,7 +391,7 @@ in
};
};
# zope = t.pythonLibStub.passthru.fun rec {
# zope = t.pythonLibStub.merge rec {
#[> version = "3.3.1";
# version = "svn";
# name = "zope-${version}";
@@ -409,7 +407,7 @@ in
# pyCheck = "";
# };
setuptools = t.pythonLibSetup.passthru.fun {
setuptools = t.pythonLibSetup.merge {
name = "setuptools-0.6c9";
postUnpack = ''
ensureDir $out/lib/python2.5/site-packages
@@ -429,7 +427,7 @@ in
};
};
zopeInterface = t.pythonLibSetup.passthru.fun rec {
zopeInterface = t.pythonLibSetup.merge rec {
version = "3.3.0";
name = "zope.interface-${version}";
buildInputs = [ t.setuptools ];
@@ -440,7 +438,7 @@ in
pyCheck = "from zope.interface import Interface, Attribute";
};
dbusPython = t.pythonLibStub.passthru.fun rec {
dbusPython = t.pythonLibStub.merge rec {
version = "0.83.0";
name = "dbus-python-0.83.0";
buildInputs = [ p.pkgconfig ];
@@ -457,7 +455,7 @@ in
};
};
pythonXlib = t.pythonLibSetup.passthru.fun {
pythonXlib = t.pythonLibSetup.merge {
name = "python-xlib-0.14";
src = fetchurl {
url = http://puzzle.dl.sourceforge.net/sourceforge/python-xlib/python-xlib-0.14.tar.gz;
@@ -470,26 +468,52 @@ in
};
};
### python applications
mechanize = t.pythonLibSetup.merge {
name = "mechanize-0.1.11";
buildInputs = [ t.setuptools ];
src = fetchurl {
url = http://wwwsearch.sourceforge.net/mechanize/src/mechanize-0.1.11.tar.gz;
sha256 = "1h62mwy4iz09jqz17nrb9j8y0djd500zdfqwrz9xmdwqzqwixkj2";
};
meta = {
description = "Stateful programmatic web browsing in Python, after Andy Lester's Perl module WWW::Mechanize";
homepage = http://wwwsearch.sourceforge.net/mechanize/;
license = ["BSD" "ZPL 2.1"];
};
pyCheck = "from mechanize import Browser";
};
pythonExStub = composableDerivation {
initial = {
buildInputs = [p.makeWrapper];
postPhases = ["wrapExecutables"];
propagatedBuildInputs = [ t.pythonFull ]; # see [1]
# adding $out to NIX_PYTHON_SITES because some of those executables seem to come with extra libs
wrapExecutables = ''
for prog in $out/bin/*; do
wrapProgram "$prog" \
--set NIX_PYTHON_SITES "$NIX_PYTHON_SITES:$out" \
--set PYTHONPATH "\$PYTHONPATH:$out"
done
'';
pexpect = t.pythonLibSetup.merge {
name = "pexpect-2.3";
src = fetchurl {
url = mirror://sourceforge/pexpect/pexpect-2.3.tar.gz;
sha256 = "0x8bfjjqygriry1iyygm5048ykl5qpbpzqfp6i8dhkslm3ryf5fk";
};
meta = {
description = "tcl expect as python library";
homepage = http://www.noah.org/wiki/Pexpect;
license = "MIT";
};
};
pitivi = t.pythonExStub.passthru.fun {
### python applications
pythonExStub = composableDerivation {} {
buildInputs = [p.makeWrapper];
postPhases = ["wrapExecutables"];
propagatedBuildInputs = [ t.pythonFull ]; # see [1]
# adding $out to NIX_PYTHON_SITES because some of those executables seem to come with extra libs
wrapExecutables = ''
for prog in $out/bin/*; do
wrapProgram "$prog" \
--set NIX_PYTHON_SITES "$NIX_PYTHON_SITES:$out" \
--set PYTHONPATH "\$PYTHONPATH:$out"
done
'';
};
pitivi = t.pythonExStub.merge {
name = "pitivi-0.11.2";
src = fetchurl {
url = http://ftp.gnome.org/pub/GNOME/sources/pitivi/0.11/pitivi-0.11.2.tar.bz2;
@@ -509,7 +533,7 @@ in
'';
};
istanbul = t.pythonExStub.passthru.fun {
istanbul = t.pythonExStub.merge {
name = "istanbul-0.2.2";
buildInputs = [ t.pygtk212 t.gstPython /*t.gnomePython (contained in gtk) t.gnomePythonExtras */ t.pythonXlib
p.perl p.perlXMLParser p.gettext];

View File

@@ -2,11 +2,11 @@ args: with args;
let inherit (lib) optional prepareDerivationArgs concatStringsSep fix; in
composableDerivation {
f = args: let attr = lib.prepareDerivationArgs args; in stdenv.mkDerivation ( attr // {
mkDerivation = attr : stdenv.mkDerivation ( attr // {
C_INCLUDE_PATH = concatStringsSep ":" (map (p: "${p}/include") attr.buildInputs);
LIBRARY_PATH = concatStringsSep ":" (map (p: "${p}/lib") attr.buildInputs);
});
initial = {
} {
postPhases = ["runCheck"];
@@ -65,5 +65,4 @@ composableDerivation {
rm -rf $out/lib/python2.5/test
";
};
}
}

View File

@@ -0,0 +1,10 @@
{stdenv, fetchurl, pkgconfig, dbus_glib, zlib, glib, libX11}:
stdenv.mkDerivation {
name = "ConsoleKit-0.3.0";
src = fetchurl {
url = http://people.freedesktop.org/~mccann/dist/ConsoleKit-0.3.0.tar.bz2;
md5 = "43b02a52212330b54cfb34c4044d9ce0";
};
buildInputs = [ pkgconfig dbus_glib zlib glib libX11 ];
}

View File

@@ -1,5 +1,6 @@
args: with args;
stdenv.mkDerivation (rec {
stdenv.mkDerivation rec {
pname = "SDL_image";
version = "1.2.6";
@@ -12,11 +13,9 @@ stdenv.mkDerivation (rec {
buildInputs = [SDL libpng libjpeg libtiff libungif libXpm];
postInstall = "ln -s \${out}/include/SDL/SDL_image.h \${out}/include/";
postInstall = "ln -s $out/include/SDL/SDL_image.h $out/include/";
meta = {
description = "
SDL image library.
";
description = "SDL image library";
};
})
}

View File

@@ -1,5 +1,6 @@
args: with args;
stdenv.mkDerivation (rec {
stdenv.mkDerivation rec {
pname = "SDL_mixer";
version = "1.2.8";
@@ -14,11 +15,9 @@ stdenv.mkDerivation (rec {
configureFlags = "--disable-music-ogg-shared";
postInstall = "ln -s \${out}/include/SDL/SDL_mixer.h \${out}/include/";
postInstall = "ln -s $out/include/SDL/SDL_mixer.h $out/include/";
meta = {
description = "
SDL multi-channel audio mixer library.
";
description = "SDL multi-channel audio mixer library";
};
})
}

View File

@@ -1,5 +1,6 @@
args: with args;
stdenv.mkDerivation (rec {
stdenv.mkDerivation rec {
pname = "SDL_net";
version = "1.2.7";
@@ -12,11 +13,9 @@ stdenv.mkDerivation (rec {
buildInputs = [SDL];
postInstall = "ln -s \${out}/include/SDL/SDL_net.h \${out}/include/";
postInstall = "ln -s $out/include/SDL/SDL_net.h $out/include/";
meta = {
description = "
SDL networking library.
";
description = "SDL networking library";
};
})
}

View File

@@ -1,19 +1,18 @@
args: with args;
stdenv.mkDerivation {
name = "SDL_image-1.2.6";
name = "SDL_ttf-2.0.9";
src = fetchurl {
url = http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.9.tar.gz;
sha256 = "0ls6anmlmwrmy21p3y9nfyl6fkwz4jpgh74kw7xd0hwbg5v8h95l";
};
url = http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.9.tar.gz;
sha256 = "0ls6anmlmwrmy21p3y9nfyl6fkwz4jpgh74kw7xd0hwbg5v8h95l";
};
buildInputs = [SDL freetype];
postInstall = "ln -s \${out}/include/SDL/SDL_ttf.h \${out}/include/";
postInstall = "ln -s $out/include/SDL/SDL_ttf.h $out/include/";
meta = {
description = "
SDL image library.
";
description = "SDL TrueType library";
};
}

View File

@@ -1,16 +1,16 @@
args: with args;
{stdenv, fetchurl}:
stdenv.mkDerivation rec {
name = "chmlib-0.39";
src = fetchurl {
url = "${meta.homepage}/${name}.tar.bz2";
sha256 = "0hgzw121ffmk79wbpkd0394y5ah99c3i85z6scp958mmkr25sc6j";
sha256 = "0hgzw121ffmk79wbpkd0394y5ah99c3i85z6scp958mmkr25sc6j";
};
meta = {
homepage = http://www.jedrea.com/chmlib;
license = "LGPL";
description = "CHLIB is a library for dealing with Microsoft ITSS/CHM
format files";
homepage = http://www.jedrea.com/chmlib;
license = "LGPL";
description = "A library for dealing with Microsoft ITSS/CHM format files";
};
}

View File

@@ -1,19 +1,18 @@
args:
args.stdenv.mkDerivation {
name = "faad2-2.6.1";
{stdenv, fetchurl}:
src = args.fetchurl {
url = http://downloads.sourceforge.net/faac/faad2-2.6.1.tar.gz;
sha256 = "0p1870qfpaadphdfphbcfalf6d25r30k3y1f7sa7ly4vq3hc5lla";
stdenv.mkDerivation {
name = "faad2-2.7";
src = fetchurl {
url = mirror://sourceforge/faac/faad2-2.7.tar.bz2;
sha256 = "1db37ydb6mxhshbayvirm5vz6j361bjim4nkpwjyhmy4ddfinmhl";
};
preConfigure = "./bootstrap";
buildInputs =(with args; [autoconf automake libtool]);
configureFlags = "--disable-static";
meta = {
description="AAC audio decoding library";
homepage = http://www.audiocoding.com/faad2.html;
license = "GPLv2";
description = "An open source MPEG-4 and MPEG-2 AAC decoder";
homepage = http://www.audiocoding.com/faad2.html;
license = "GPLv2";
};
}

View File

@@ -1,11 +1,31 @@
{stdenv, fetchurl}:
{stdenv, fetchurl, faad2}:
stdenv.mkDerivation {
name = "ffmpeg-20051126";
name = "ffmpeg-0.5";
src = fetchurl {
url = http://downloads.videolan.org/pub/videolan/vlc/0.8.4a/contrib/ffmpeg-20051126.tar.bz2;
md5 = "f9e50bf9ee1dd248a276bf9bd4d606e0";
url = http://www.ffmpeg.org/releases/ffmpeg-0.5.tar.bz2;
sha1 = "f930971bc0ac3d11a4ffbb1af439425c24f6f5b1";
};
# `--enable-gpl' (as well as the `postproc' and `swscale') mean that
# the resulting library is GPL'ed, so it can only be used in GPL'ed
# applications.
configureFlags = ''
--enable-shared
--disable-static
--enable-gpl
--enable-postproc
--enable-swscale
--disable-ffserver
--disable-ffplay
--enable-libfaad
'';
buildInputs = [faad2];
meta = {
homepage = http://www.ffmpeg.org/;
description = "A complete, cross-platform solution to record, convert and stream audio and video";
};
# !!! Hm, what are the legal consequences of --enable-gpl?
configureFlags = "--enable-shared --enable-pp --enable-shared-pp --enable-gpl --disable-ffserver --disable-ffplay";
}

View File

@@ -1,11 +0,0 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "ffmpeg-svn-pre-r11901";
src = fetchurl {
url = http://nixos.org/tarballs/ffmpeg-svn-r11901.tar.bz2;
sha256 = "0l5207gnfaz57pvlxpxyjphyz0mp9plnxzd0aghy0nz3hmqh4rs7";
};
# !!! Hm, what are the legal consequences of --enable-gpl?
configureFlags = "--enable-shared --enable-pp --enable-gpl --disable-ffserver --disable-ffplay";
}

View File

@@ -17,9 +17,7 @@ stdenv.mkDerivation {
builder = writeScript "fftw-3.1.2-builder"
(textClosure localDefs [doConfigure doMakeInstall doForceShare]);
meta = {
description = "
Fastest Fourier Transform in the West library.
";
description = "Fastest Fourier Transform in the West library";
inherit src;
};
}

View File

@@ -1,47 +1,45 @@
args: with args;
let inherit (args.composableDerivation) composableDerivation edf; in
composableDerivation {
initial = {
composableDerivation {} {
name = "fltk-2.0.x-r6483";
name = "fltk-2.0.x-r6483";
src = args.fetchurl {
url = ftp://ftp.easysw.com/pub/fltk/snapshots/fltk-2.0.x-r6483.tar.bz2;
sha256 = "1n8b53r5p0zb4sbvr6pj8aasls4zjwksv1sdc3r3pzb20fikp5jb";
};
src = args.fetchurl {
url = ftp://ftp.easysw.com/pub/fltk/snapshots/fltk-2.0.x-r6483.tar.bz2;
sha256 = "1n8b53r5p0zb4sbvr6pj8aasls4zjwksv1sdc3r3pzb20fikp5jb";
};
propagatedBuildInputs=[x11 inputproto libXi freeglut];
propagatedBuildInputs=[x11 inputproto libXi freeglut];
buildInputs = [ args.pkgconfig ];
buildInputs = [ args.pkgconfig ];
flags =
# this could be tidied up (?).. eg why does it require freeglut without glSupport?
edf { name = "cygwin"; } # use the CygWin libraries default=no
// edf { name = "debug"; } # turn on debugging default=no
// edf { name = "gl"; enable = { buildInputs = [ mesa ]; }; } # turn on OpenGL support default=yes
// edf { name = "shared"; } # turn on shared libraries default=no
// edf { name = "threads"; } # enable multi-threading support
// edf { name = "quartz"; enable = { buildInputs = "quartz"; }; } # don't konw yet what quartz is # use Quartz instead of Quickdraw (default=no)
// edf { name = "largefile"; } # omit support for large files
// edf { name = "localjpeg"; disable = { buildInputs = [libjpeg]; }; } # use local JPEG library, default=auto
// edf { name = "localzlib"; disable = { buildInputs = [zlib]; }; } # use local ZLIB library, default=auto
// edf { name = "localpng"; disable = { buildInputs = [libpng]; }; } # use local PNG library, default=auto
// edf { name = "xinerama"; enable = { buildInputs = [libXinerama]; }; } # turn on Xinerama support default=no
// edf { name = "xft"; enable = { buildInputs=[libXft]; }; } # turn on Xft support default=no
// edf { name = "xdbe"; }; # turn on Xdbe support default=no
cfg = {
largefileSupport = true; # is default
glSupport = true; # doesn't build without it. Why?
localjpegSupport = false;
localzlibSupport = false;
localpngSupport = false;
sharedSupport = true;
threadsSupport = true;
};
flags =
# this could be tidied up (?).. eg why does it require freeglut without glSupport?
edf { name = "cygwin"; } # use the CygWin libraries default=no
// edf { name = "debug"; } # turn on debugging default=no
// edf { name = "gl"; enable = { buildInputs = [ mesa ]; }; } # turn on OpenGL support default=yes
// edf { name = "shared"; } # turn on shared libraries default=no
// edf { name = "threads"; } # enable multi-threading support
// edf { name = "quartz"; enable = { buildInputs = "quartz"; }; } # don't konw yet what quartz is # use Quartz instead of Quickdraw (default=no)
// edf { name = "largefile"; } # omit support for large files
// edf { name = "localjpeg"; disable = { buildInputs = [libjpeg]; }; } # use local JPEG library, default=auto
// edf { name = "localzlib"; disable = { buildInputs = [zlib]; }; } # use local ZLIB library, default=auto
// edf { name = "localpng"; disable = { buildInputs = [libpng]; }; } # use local PNG library, default=auto
// edf { name = "xinerama"; enable = { buildInputs = [libXinerama]; }; } # turn on Xinerama support default=no
// edf { name = "xft"; enable = { buildInputs=[libXft]; }; } # turn on Xft support default=no
// edf { name = "xdbe"; }; # turn on Xdbe support default=no
cfg = {
largefileSupport = true; # is default
glSupport = true; # doesn't build without it. Why?
localjpegSupport = false;
localzlibSupport = false;
localpngSupport = false;
sharedSupport = true;
threadsSupport = true;
};
meta = {
description = "a C++ cross platform lightweight gui library binding";
homepage = http://www.fltk.org;
};
meta = {
description = "a C++ cross platform lightweight gui library binding";
homepage = http://www.fltk.org;
};
}

View File

@@ -0,0 +1,28 @@
{stdenv, fetchurl }:
stdenv.mkDerivation {
name = "fmod-42204";
src = if (stdenv.system == "i686-linux") then
fetchurl {
url = http://www.fmod.org/index.php/release/version/fmodapi42204linux.tar.gz;
sha256 = "64eedc5b37c597eb925de446106d75cab0b5a79697d5ec048d34702812c08563";
} else if (stdenv.system == "x86_64-linux") then
fetchurl {
url = http://www.fmod.org/index.php/release/version/fmodapi42204linux64.tar.gz;
sha256 = "3f2eec8265838a1005febe07c4971660e85010e4622911890642dc438746edf3";
} else throw "unsupported platform ${stdenv.system} (only i686-linux and x86_64 linux supported yet)";
preInstall = ''
sed -e /ldconfig/d -i Makefile
sed -e s@/usr/local@$out@ -i Makefile
sed -e s@/include/fmodex@/include@ -i Makefile
mkdir -p $out/lib
mkdir -p $out/include
'';
meta = {
homepage = http://www.fmod.org/;
description = "Programming library and toolkit for the creation and playback of interactive audio";
license = "unfree";
};
}

View File

@@ -1,9 +1,15 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "fribidi-0.10.7";
name = "fribidi-0.10.9";
src = fetchurl {
url = http://fribidi.org/download/fribidi-0.10.7.tar.gz;
md5 = "0f602ed32869dbc551dc6bc83d8a3d28";
url = http://fribidi.org/download/fribidi-0.10.9.tar.gz;
sha256 = "1d479wbygqmxcsyg3g7d6nmzlaa3wngy21ci5qcc5nhbyn97bz5q";
};
meta = {
homepage = http://fribidi.org/;
description = "GNU implementation of the Unicode Bidirectional Algorithm (bidi)";
};
}

View File

@@ -1,38 +1,35 @@
args: with args;
let inherit (args.composableDerivation) composableDerivation edf; in
composableDerivation {
composableDerivation {} {
initial = {
buildInputs = [ "which" ]; # which is needed for the autogen.sh
buildInputs = [ "which" ]; # which is needed for the autogen.sh
flags =
# python and ruby untested
edf { name = "python"; enable = { buildInputs = [ python ]; }; };
# (if args.use_svn then ["libtool" "autoconf" "automake" "swig"] else [])
# // edf { name = "ruby"; enable = { buildInputs = [ ruby ]; };}
flags =
# python and ruby untested
edf { name = "python"; enable = { buildInputs = [ python ]; }; };
# (if args.use_svn then ["libtool" "autoconf" "automake" "swig"] else [])
# // edf { name = "ruby"; enable = { buildInputs = [ ruby ]; };}
name = "geos-3.0.3";
name = "geos-3.0.3";
src = fetchurl {
url = http://download.osgeo.org/geos/geos-3.0.3.tar.bz2;
sha256 = "1pxk20jcbyidp3bvip1vdf8wfw2wvh8pcn810qkf1y3zfnki0c7k";
};
src = fetchurl {
url = http://download.osgeo.org/geos/geos-3.0.3.tar.bz2;
sha256 = "1pxk20jcbyidp3bvip1vdf8wfw2wvh8pcn810qkf1y3zfnki0c7k";
};
# for development version. can be removed ?
#configurePhase = "
# [ -f configure ] || \\
# LIBTOOLIZE=libtoolize ./autogen.sh
# [>{ automake --add-missing; autoconf; }
# unset configurePhase; configurePhase
#";
# for development version. can be removed ?
#configurePhase = "
# [ -f configure ] || \\
# LIBTOOLIZE=libtoolize ./autogen.sh
# [>{ automake --add-missing; autoconf; }
# unset configurePhase; configurePhase
#";
meta = {
description = "C++ port of the Java Topology Suite (JTS)"
+ "- all the OpenGIS \"Simple Features for SQL\" spatial predicate functions and spatial operators,"
+ " as well as specific JTS topology functions such as IsValid";
homepage = http://geos.refractions.net/;
license = "GPL";
};
meta = {
description = "C++ port of the Java Topology Suite (JTS)"
+ "- all the OpenGIS \"Simple Features for SQL\" spatial predicate functions and spatial operators,"
+ " as well as specific JTS topology functions such as IsValid";
homepage = http://geos.refractions.net/;
license = "GPL";
};
}

View File

@@ -1,10 +1,16 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "lcms-1.14";
name = "lcms-1.17";
src = fetchurl {
url = http://nixos.org/tarballs/lcms-1.14.tar.gz;
md5 = "5a803460aeb10e762d97e11a37462a69";
url = http://www.littlecms.com/lcms-1.17.tar.gz;
sha256 = "10s5s6b6r5mhf0g6l431l6fwymhjzqrvm7g214h7fmh9ngdb9wsy";
};
meta = {
description = "Color management engine";
homepage = http://www.littlecms.com/;
license = "MIT";
};
}

View File

@@ -10,9 +10,11 @@ stdenv.mkDerivation {
buildInputs = [pkgconfig];
meta = {
description = ''Libao is Xiph.org's cross-platform audio
library that allows programs to output audio
using a simple API on a wide variety of platforms.'';
longDescription = ''
Libao is Xiph.org's cross-platform audio library that allows
programs to output audio using a simple API on a wide variety of
platforms.
'';
homepage = http://xiph.org/ao/;
license = "GPL";
};

View File

@@ -26,7 +26,7 @@ rec {
ln -s $out/include/opencv/* $out/include
'') ["doMakeInstall" "minInit"];
name = "libcv-" + version;
name = "libcv-0.9.7";
meta = {
description = "libcv - computer vision library";
};

View File

@@ -29,13 +29,11 @@ args : with args;
};
in with localDefs;
stdenv.mkDerivation rec {
name = "libdbi"+version;
name = "libdbi-"+version;
builder = writeScript (name + "-builder")
(textClosure localDefs [doConfigure doMakeInstall doForceShare doPropagate]);
meta = {
description = "
DB independent interface to DB; DB drivers (mysql only for now).
";
description = "DB independent interface to DB; DB drivers (mysql only for now)";
inherit src;
};
}

View File

@@ -11,13 +11,11 @@ args : with args;
};
in with localDefs;
stdenv.mkDerivation rec {
name = "libdbi"+version;
name = "libdbi-"+version;
builder = writeScript (name + "-builder")
(textClosure localDefs [doConfigure doMakeInstall doForceShare doPropagate]);
meta = {
description = "
DB independent interface to DB.
";
description = "DB independent interface to DB";
inherit src;
};
}

View File

@@ -1,29 +1,28 @@
args: with args;
let inherit (args.composableDerivation) composableDerivation edf; in
composableDerivation {
initial = {
flags = { }
# TODO! implement flags
# I want to get kino and cinelerra working. That's why I don't spend more time on this now
// edf { name = "libtool_lock"; } #avoid locking (might break parallel builds)
// edf { name ="asm"; } #disable use of architecture specific assembly code
// edf { name ="sdl"; } #enable use of SDL for display
// edf { name ="gtk"; } #disable use of gtk for display
// edf { name ="xv"; } #disable use of XVideo extension for display
// edf { name ="gprof"; }; #enable compiler options for gprof profiling
composableDerivation {} {
name = "libdv-1.0.0";
flags = { }
# TODO! implement flags
# I want to get kino and cinelerra working. That's why I don't spend more time on this now
// edf { name = "libtool_lock"; } #avoid locking (might break parallel builds)
// edf { name ="asm"; } #disable use of architecture specific assembly code
// edf { name ="sdl"; } #enable use of SDL for display
// edf { name ="gtk"; } #disable use of gtk for display
// edf { name ="xv"; } #disable use of XVideo extension for display
// edf { name ="gprof"; }; #enable compiler options for gprof profiling
src = args.fetchurl {
url = mirror://sourceforge/libdv/libdv-1.0.0.tar.gz;
sha256 = "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3";
};
name = "libdv-1.0.0";
meta = {
description = "software decoder for DV format video, as defined by the IEC 61834 and SMPTE 314M standards";
homepage = http://sourceforge.net/projects/libdv/;
# you can choose one of the following licenses:
license = [];
};
src = args.fetchurl {
url = mirror://sourceforge/libdv/libdv-1.0.0.tar.gz;
sha256 = "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3";
};
meta = {
description = "software decoder for DV format video, as defined by the IEC 61834 and SMPTE 314M standards";
homepage = http://sourceforge.net/projects/libdv/;
# you can choose one of the following licenses:
license = [];
};
}

View File

@@ -1,9 +1,15 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "libdvdcss-1.2.9";
name = "libdvdcss-1.2.10";
src = fetchurl {
url = http://download.videolan.org/pub/libdvdcss/1.2.9/libdvdcss-1.2.9.tar.bz2;
md5 = "553383d898826c285afb2ee453b07868";
url = http://download.videolan.org/pub/libdvdcss/1.2.10/libdvdcss-1.2.10.tar.bz2;
sha256 = "0812zxg4b6yjkckzwdzfzb4jnffykr9567f9v29barmb2d8ag513";
};
meta = {
homepage = http://www.videolan.org/developers/libdvdcss.html;
description = "A library for decrypting DVDs";
};
}

View File

@@ -1,9 +1,25 @@
{stdenv, fetchurl}:
{stdenv, fetchurl, libdvdread}:
stdenv.mkDerivation {
name = "libdvdnav-20050211";
name = "libdvdnav-4.1.3";
src = fetchurl {
url = http://downloads.videolan.org/pub/videolan/vlc/0.8.4a/contrib/libdvdnav-20050211.tar.bz2;
md5 = "e1b1d45c8fdaf6a2dce3078bd3d7047d";
url = http://www2.mplayerhq.hu/MPlayer/releases/dvdnav/libdvdnav-4.1.3.tar.bz2;
sha1 = "d1b95eb8a7caee1fa7580a1abad84d6cb3cad046";
};
buildInputs = [libdvdread];
configureScript = "./configure2"; # wtf?
preConfigure = ''
ensureDir $out
'';
meta = {
homepage = http://www.mplayerhq.hu/;
description = "A library that implements DVD navigation features such as DVD menus";
};
passthru = { inherit libdvdread; };
}

View File

@@ -1,11 +1,29 @@
{stdenv, fetchurl, libdvdcss}:
stdenv.mkDerivation {
name = "libdvdread-0.9.6";
name = "libdvdread-4.1.3";
src = fetchurl {
url = http://www.dtek.chalmers.se/groups/dvd/dist/libdvdread-0.9.6.tar.gz;
md5 = "329401b84ad0b00aaccaad58f2fc393c";
url = http://www.mplayerhq.hu/MPlayer/releases/dvdnav/libdvdread-4.1.3.tar.bz2;
sha1 = "fc4c7ba3e49929191e057b435bc4f867583ea8d5";
};
buildInputs = [libdvdcss];
NIX_LDFLAGS = "-ldvdcss";
configureScript = "./configure2"; # wtf?
preConfigure = ''
ensureDir $out
'';
postInstall = ''
ln -s dvdread $out/include/libdvdread
'';
meta = {
homepage = http://www.mplayerhq.hu/;
description = "A library for reading DVDs";
};
configureFlags = "--with-libdvdcss=${libdvdcss}";
inherit libdvdcss;
}

View File

@@ -11,13 +11,11 @@ args : with args;
};
in with localDefs;
stdenv.mkDerivation rec {
name = "libextractor"+version;
name = "libextractor-"+version;
builder = writeScript (name + "-builder")
(textClosure localDefs [doConfigure doMakeInstall doForceShare doPropagate]);
meta = {
description = "
Libextractor - extracts metadata from files.
";
description = "A tool to extract metadata from files";
inherit src;
};
}

View File

@@ -0,0 +1,10 @@
{stdenv, fetchurl, perl}:
stdenv.mkDerivation {
name = "libical-0.43";
src = fetchurl {
url = http://superb-east.dl.sourceforge.net/sourceforge/freeassociation/libical-0.43.tar.gz;
md5 = "5f0a1feb60894d0be537aefea5647474";
};
buildInputs = [ perl ];
}

View File

@@ -1,15 +1,37 @@
args: with args;
{ fetchurl, stdenv }:
stdenv.mkDerivation {
name = "libidn-1.2";
src = fetchurl {
url = mirror://gnu/libidn/libidn-1.2.tar.gz;
sha256 = "0cip97xskrsfp6v1v966jb921srl1s65a5d8s0l73s85yww55n73";
};
stdenv.mkDerivation rec {
name = "libidn-1.13";
meta = {
homepage = http://www.gnu.org/software/libidn;
description = "GNU Libidn library for internationalized domain names";
license = "LGPL";
};
src = fetchurl {
url = "mirror://gnu/libidn/${name}.tar.gz";
sha256 = "07p7cnmfnq7ds8a56iqmxps46bzznn92xxpdlnnp3n6pwcnidmn7";
};
configureFlags = "--disable-static";
doCheck = true;
meta = {
homepage = http://www.gnu.org/software/libidn/;
description = "GNU Libidn library for internationalized domain names";
longDescription = ''
GNU Libidn is a fully documented implementation of the
Stringprep, Punycode and IDNA specifications. Libidn's purpose
is to encode and decode internationalized domain names. The
native C, C\# and Java libraries are available under the GNU
Lesser General Public License version 2.1 or later.
The library contains a generic Stringprep implementation.
Profiles for Nameprep, iSCSI, SASL, XMPP and Kerberos V5 are
included. Punycode and ASCII Compatible Encoding (ACE) via IDNA
are supported. A mechanism to define Top-Level Domain (TLD)
specific validation tables, and to compare strings against those
tables, is included. Default tables for some TLDs are also
included.
'';
license = "LGPLv2+";
};
}

View File

@@ -14,7 +14,13 @@ stdenv.mkDerivation {
cp -r lib \$out
";
src = fetchurl {
url = http://www.suckless.org/download/libixp-0.4.tar.gz;
url = http://code.suckless.org/dl/libs/libixp-0.4.tar.gz;
sha256 = "0b44p9wvmzxpyf2xd86rxyr49bmfh9cd5hj3d234gkvynvgph60p";
};
meta = {
homepage = http://libs.suckless.org/libixp;
description = "stand-alone client/server 9P library";
license = "MIT / LPL";
};
}

View File

@@ -1,19 +1,19 @@
args: with args;
stdenv.mkDerivation rec {
name = "libksba-1.0.2";
name = "libksba-1.0.2";
src = fetchurl {
url = "ftp://ftp.gnupg.org/gcrypt/libksba/${name}.tar.bz2";
sha256 = "1jkjh1daaykkrfq0s4vv8ddf0w8agdvspg9qm0ghjidlrfnsfiwh";
};
src = fetchurl {
url = "ftp://ftp.gnupg.org/gcrypt/libksba/${name}.tar.bz2";
sha256 = "1jkjh1daaykkrfq0s4vv8ddf0w8agdvspg9qm0ghjidlrfnsfiwh";
};
propagatedBuildInputs = [libgpgerror];
propagatedBuildInputs = [libgpgerror];
configureFlags = "--enable-shared --disable-static";
configureFlags = "--enable-shared --disable-static";
meta = {
homepage = http://www.gnupg.org;
description = "Libksba is a CMS and X.509 access library under
development";
};
meta = {
homepage = http://www.gnupg.org;
description = "Libksba is a CMS and X.509 access library under development";
};
}

View File

@@ -15,6 +15,6 @@ stdenv.mkDerivation {
meta = {
homepage = http://sourceforge.net/projects/mad/;
description = "MAD, a high-quality, fixed-point, MPEG audio decoder supporting MPEG-1 and MPEG-2.";
description = "A high-quality, fixed-point MPEG audio decoder supporting MPEG-1 and MPEG-2";
};
}

View File

@@ -0,0 +1,10 @@
{stdenv, fetchurl, cmake, openssl}:
stdenv.mkDerivation {
name = "libmsn-4.0beta4";
src = fetchurl {
url = mirror://sourceforge/libmsn/libmsn-4.0-beta4.tar.bz2;
md5 = "b0155f01443644d7c4a60269e44d8dac";
};
buildInputs = [ cmake openssl ];
}

View File

@@ -14,7 +14,6 @@ stdenv.mkDerivation rec {
meta = {
homepage = http://liboil.freedesktop.org;
description = "Liboil is a library of simple functions that are optimized
for various CPUs.";
description = "A library of simple functions that are optimized for various CPUs";
};
}

View File

@@ -14,7 +14,6 @@ stdenv.mkDerivation rec {
meta = {
homepage = http://liboil.freedesktop.org;
description = "Liboil is a library of simple functions that are optimized
for various CPUs.";
description = "A library of simple functions that are optimized for various CPUs";
};
}

View File

@@ -1,18 +1,16 @@
args: with args;
stdenv.mkDerivation {
name = "libwmf-0.2.8.4";
src = fetchurl {
url = mirror://sourceforge/wvware/libwmf-0.2.8.4.tar.gz;
sha256 = "1y3wba4q8pl7kr51212jwrsz1x6nslsx1gsjml1x0i8549lmqd2v";
};
url = mirror://sourceforge/wvware/libwmf-0.2.8.4.tar.gz;
sha256 = "1y3wba4q8pl7kr51212jwrsz1x6nslsx1gsjml1x0i8549lmqd2v";
};
buildInputs = [zlib imagemagick libpng
pkgconfig glib freetype libjpeg libxml2];
buildInputs = [zlib imagemagick libpng pkgconfig glib freetype libjpeg libxml2];
meta = {
description = "
WMF library from wvWare.
";
description = "WMF library from wvWare";
};
}

View File

@@ -1,14 +1,17 @@
args: with args;
{stdenv, fetchurl}:
stdenv.mkDerivation rec {
name = "lzo-2.02";
src = fetchurl {
url = "${meta.homepage}/download/${name}.tar.gz";
sha256 = "1i9g9bdrmyn6546rnck3kkh8nssfaw75m2rxir4sn7bwvnsfryx2";
};
configureFlags = "--enable-shared --disable-static";
meta = {
description = "LZO is a data compresion library which is suitable for
data de-/compression in real-time";
homepage = http://www.oberhumer.com/opensource/lzo;
};
name = "lzo-2.02";
src = fetchurl {
url = "${meta.homepage}/download/${name}.tar.gz";
sha256 = "1i9g9bdrmyn6546rnck3kkh8nssfaw75m2rxir4sn7bwvnsfryx2";
};
configureFlags = "--enable-shared --disable-static";
meta = {
description = "A data compresion library suitable for real-time data de-/compression";
homepage = http://www.oberhumer.com/opensource/lzo;
};
}

View File

@@ -2,18 +2,20 @@
stdenv.mkDerivation rec {
name = "mpich2-1.0.6p1";
src = fetchurl {
url = "http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/"
+ name + ".tar.gz";
url = "http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/${name}.tar.gz";
sha256 = "1k0za8951j5fn89ww6bsy9b4yi989zz7bnd8a6acfr8r0yb8z01q";
};
buildInputs = [ python ];
meta = {
description = ''MPICH2 is a free high-performance and portable
implementation of the Message Passing Interface
(MPI) standard, both version 1 and version 2.'';
longDescription = ''
MPICH2 is a free high-performance and portable implementation of
the Message Passing Interface (MPI) standard, both version 1 and
version 2.
'';
homepage = http://www.mcs.anl.gov/mpi/mpich2/;
license = "free, see http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=license";
};

View File

@@ -1,13 +1,14 @@
args: with args;
{stdenv, fetchurl, zlib, libxml2}:
stdenv.mkDerivation {
name = "openbabel-2.1.1";
src = fetchurl {
url = mirror://sf/openbabel/openbabel-2.1.1.tar.gz;
sha256 = "1rgvci796a7bmc49ih26ma7c248d32w6drs3cwljpjk0dllsqdif";
};
name = "openbabel-2.2.1";
src = fetchurl {
url = mirror://sf/openbabel/openbabel-2.2.1.tar.gz;
sha256 = "822345d70778de1d2d9afe65a659f1719b8ca300066fb1fa2f473bc97c457e80";
};
# TODO : perl & python bindings;
# TODO : wxGTK: I have no time to compile
# TODO : separate lib and apps
buildInputs = [zlib libxml2];
configureFlags = "--enable-shared --disable-static";
buildInputs = [ zlib libxml2 ];
configureFlags = "--enable-shared --disable-static";
}

View File

@@ -5,34 +5,36 @@
assert qt4Support -> (qt4 != null);
stdenv.mkDerivation rec {
name = "poppler-0.8.4";
name = "poppler-0.10.4";
src = fetchurl {
url = "http://poppler.freedesktop.org/${name}.tar.gz";
sha256 = "0yi590vgqwjqmqspflxycbnfxjdcwa1fx9ark3diav3yn105gga5";
};
src = fetchurl {
url = "http://poppler.freedesktop.org/${name}.tar.gz";
sha256 = "15c53cn8ljhas0fbirp9s8sbgmaxpzg697c48zsdnz8zwm797gs1";
};
buildInputs = [pkgconfig zlib glib cairo freetype fontconfig libjpeg gtk]
buildInputs = [pkgconfig zlib glib cairo freetype fontconfig libjpeg gtk]
++ (if qt4Support then [qt4] else []);
configureFlags = "--enable-shared --disable-static --enable-exceptions
--enable-cairo --enable-splash --enable-poppler-glib --enable-zlib "
+ (if qt4Support then "--enable-qt-poppler" else "--disable-qt-poppler");
configureFlags = "--enable-shared --disable-static --enable-exceptions
--enable-cairo --enable-splash --enable-poppler-glib --enable-zlib "
+ (if qt4Support then "--enable-qt-poppler" else "--disable-qt-poppler");
patches = [ ./GDir-const.patch
patches = [ ./GDir-const.patch ./use_exceptions.patch ];
# XXX: This patch no longer applies, what was the point of it?
# ./datadir_env.patch
preConfigure = "sed -e '/jpeg_incdirs/s@/usr@${libjpeg}@' -i configure";
./use_exceptions.patch ];
preConfigure = "sed -e '/jpeg_incdirs/s@/usr@${libjpeg}@' -i configure";
doCheck = true;
# XXX: The Poppler/Qt4 test suite refers to non-existent PDF files
# such as `../../../test/unittestcases/UseNone.pdf'.
doCheck = !qt4Support;
meta = {
homepage = http://poppler.freedesktop.org/;
description = "Poppler, a PDF rendering library";
longDescription = ''
Poppler is a PDF rendering library based on the xpdf-3.0 code base.
'';
license = "GPLv2";
};
}

View File

@@ -60,7 +60,7 @@ stdenv.mkDerivation {
# than half of the installed size. Ideally we should put this in a
# separate package (as well as the Qt Designer).
postInstall = ''
rm -rf $out/share/doc
rm -rf $out/doc
'';
meta = {

View File

@@ -1,17 +1,23 @@
{stdenv, fetchurl, readline}:
stdenv.mkDerivation {
name = "sqlite-3.6.3";
stdenv.mkDerivation rec {
name = "sqlite-3.6.10";
# Note: don't use the "amalgamation" source release, since it
# doesn't install sqlite3.pc.
src = fetchurl {
url = http://www.sqlite.org/sqlite-3.6.3.tar.gz;
sha256 = "0kd9dpbrjp05159qsqwrm00h6a2cqjxqwpi33b6i5q8mr1bzkz1i";
url = "http://www.sqlite.org/${name}.tar.gz";
sha256 = "00dabyjg0530ng52b8lq6hwb6h181wl27ix5l7ayib0am8sdnmr1";
};
buildInputs = [readline];
configureFlags = "--disable-static --with-readline-inc=-I${readline}/include";
postInstall = ''
gcc -L$out/lib -I$out/include tool/genfkey.c -lsqlite3 -o $out/bin/genfkey
'';
meta = {
homepage = http://www.sqlite.org/;
description = "A self-contained, serverless, zero-configuration, transactional SQL database engine";

View File

@@ -1,16 +1,10 @@
args: with args;
let rev = "2066"; in
stdenv.mkDerivation {
name = "tapioca-qt-r${rev}";
src = fetchsvn {
url = "https://tapioca-voip.svn.sourceforge.net/svnroot/tapioca-voip/trunk/tapioca-qt";
inherit rev;
sha256 = "0r2qzlm56yizdi64xga6v2sdhdcgl3cvlsd7g9ynh95813nky88z";
};
{stdenv, fetchurl, cmake, qt4, telepathy_qt}:
buildInputs = [cmake];
propagatedBuildInputs = [telepathy_qt stdenv.gcc.libc];
meta = {
description = "Qt Tapioca binding library";
};
stdenv.mkDerivation {
name = "tapioca-qt-0.14.1";
src = fetchurl {
url = mirror://sourceforge/tapioca-voip/tapioca-qt-0.14.1.tar.gz;
md5 = "169318705af6386057b537c5317d520d";
};
buildInputs = [ cmake qt4 telepathy_qt ];
}

View File

@@ -1,16 +1,10 @@
args: with args;
let rev = "2031"; in
stdenv.mkDerivation {
name = "telepathy-qt-r${rev}";
src = fetchsvn {
url = "https://tapioca-voip.svn.sourceforge.net/svnroot/tapioca-voip/trunk/telepathy-qt";
inherit rev;
sha256 = "0d7psgc8nr5bryrjgfg92622hbilp0qwx0pya3836bz2l6x3msnb";
};
{stdenv, fetchurl, cmake, qt4}:
buildInputs = [cmake];
propagatedBuildInputs = [qt stdenv.gcc.libc];
meta = {
description = "Qt bindings for telepathy";
};
stdenv.mkDerivation {
name = "telepathy-qt-0.14.1";
src = fetchurl {
url = mirror://sourceforge/tapioca-voip/telepathy-qt-0.14.1.tar.gz;
md5 = "476e3fbd68b3eaf5354559be7de99333";
};
buildInputs = [ cmake qt4 ];
}

View File

@@ -9,6 +9,12 @@ stdenv.mkDerivation {
buildInputs = [ cmake unzip libtiff expat zlib libpng libjpeg ];
cmakeFlags = if (stdenv.system == "x86_64-linux") then
"-DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_C_FLAGS=-fPIC"
else
"";
meta = {
description = "C++ Libraries for Computer Vision Research and Implementation";
homepage = http://vxl.sourceforge.net/;

View File

@@ -34,7 +34,10 @@ stdenv.mkDerivation {
SEARCH_INCLUDE =
"${libXinerama}/include ${libSM}/include ${libXxf86vm}/include";
SEARCH_LIB = "${mesa}/lib";
SEARCH_LIB = if (stdenv.system == "x86_64-linux") then
"${mesa}/lib64"
else
"${mesa}/lib";
# Work around a bug in configure.
NIX_CFLAGS_COMPILE = "-DHAVE_X11_XLIB_H=1";

View File

@@ -0,0 +1,74 @@
args:
args.stdenv.mkDerivation {
name = "avr-gcc-libc";
srcBinutils = args.fetchurl {
url = ftp://ftp.gnu.org/gnu/binutils/binutils-2.17.tar.bz2;
sha256 = "0pm20n2l9ddgdpgzk3zhnbb8nbyb4rb2kvcw21pkd6iwybk3rhz2";
};
srcGCC = args.fetchurl {
url = ftp://ftp.gnu.org/gnu/gcc/gcc-4.1.2/gcc-core-4.1.2.tar.bz2;
sha256 = "07binc1hqlr0g387zrg5sp57i12yzd5ja2lgjb83bbh0h3gwbsbv";
};
srcAVRLibc = args.fetchurl {
url = http://www.very-clever.com/download/nongnu/avr-libc/avr-libc-1.4.5.tar.bz2;
sha256 = "058iv3vs6syy01pfkd5894xap9zakjx8ki1bpjdnihn6vk6fr80l";
};
buildInputs =(with args; []);
phases = "doAll";
# don't call any wired $buildInputs/nix-support/* scripts or such. This makes the build fail
builder = args.writeTextFile {
name = "avrbinutilsgccavrlibc-builder-script";
text = ''
PATH=${args.coreutils}/bin:${args.gnumake}/bin:${args.gcc}/bin:${args.gnutar}/bin:${args.bzip2}/bin:${args.gnugrep}/bin:${args.gnused}/bin:${args.gawk}/bin
# that's all a bit too hacky...!
for i in `cat ${args.gcc}/nix-support/propagated-user-env-packages`; do
echo adding $i
PATH=$PATH:$i/bin
done
mkdir -p "$out"
export > env-vars
# important, without this gcc won't find the binutils executables
PATH=$PATH:$out/bin
prefix=$out
tar jxf $srcBinutils
cd binutils-*/
mkdir obj-avr
cd obj-avr
../configure --target=avr --prefix="$prefix" --disable-nls --prefix=$prefix
make $MAKE_FLAGS
make install
cd $TMP
tar jxf $srcGCC
cd gcc-*
mkdir obj-avr
cd obj-avr
../configure --target=avr --prefix="$prefix" --disable-nls --enable-languages=c --disable-libssp
make $MAKE_FLAGS
make install
cd $TMP
tar jxf $srcAVRLibc
cd avr-libc-*
./configure --prefix="$prefix" --build=`./config.guess` --host=avr
make $MAKE_FLAGS
make install
'';
};
meta = {
description = "avr gcc developement environment including binutils, avr-gcc and avr-libc";
# I've tried compiling the packages separately.. too much hassle. This just works. Fine.
license = ["GPL" "LGPL"]; # see single packages ..
homepage = []; # dito
};
}

View File

@@ -0,0 +1,32 @@
args:
args.stdenv.mkDerivation {
name = "avr8-burn-omat-2.0.1";
src = args.fetchurl {
url = http://avr8-burn-o-mat.brischalle.de/AVR8_Burn-O-Mat_2_0_1.zip;
sha256 = "0nqlrbsx7z5r3b9y9wb6b7wawa3yxwx07zn7l4g4s59scxah2skk";
};
buildInputs =(with args; [unzip]);
phases = "unpackPhase installPhase";
# move to nix-support to not create that many symlinks..
# TODO burnomat tries to read /usr/local/etc/avrdude.conf (but you can edit it within the settings dialog)
installPhase = ''
ensureDir $out/{nix-support,bin}
mv *.jar license_gpl-3.0.txt lib *.xml *.png $out/nix-support
cat >> $out/bin/avr8-burn-omat << EOF
#!/bin/sh
cd $out/nix-support; exec java -jar AVR8_Burn_O_Mat.jar
EOF
chmod +x $out/bin/avr8-burn-omat
'';
meta = {
description = "gui tool for avrdude (nice to set fuse bits)";
homepage = http://avr8-burn-o-mat.brischalle.de/avr8_burn_o_mat_avrdude_gui_en.html;
license = "GPLv3";
};
}

View File

@@ -23,7 +23,7 @@ args:
then localTarGZ else fetchinfo;
repos =
let kde4support = builtins.listToAttrs (map (n: lib.nv ("kdesupport_"+n) { type = "svn"; url = "svn://anonsvn.kde.org/home/kde/trunk/kdesupport/${n}"; groups="kdesupport"; })
let kde4support = builtins.listToAttrs (map (n: lib.nameValuePair ("kdesupport_"+n) { type = "svn"; url = "svn://anonsvn.kde.org/home/kde/trunk/kdesupport/${n}"; groups="kdesupport"; })
[ "akode" "eigen" "gmm" "qca" "qimageblitz" "soprano" "strigi" "taglib"
"automoc" "akonadi" "cpptoxml" "decibel" "emerge" "phonon" "tapioca_qt" "telepathy_qt"]); in
# in trunk but not yet supported by nix: akonadi/ automoc/ cpptoxml/ decibel/ emerge/ kdewin-installer/ kdewin32/ phonon/ tapioca-qt/ telepathy-qt/

View File

@@ -0,0 +1,15 @@
{fetchurl, buildPerlPackage, bzip2}:
buildPerlPackage rec {
name = "Compress-Raw-Bzip2-2.015";
src = fetchurl {
url = "mirror://cpan/authors/id/P/PM/PMQS/${name}.tar.gz";
sha256 = "0rc49w7i552j89ws85h7s1bzvs17m065lgy3mj23h0gplkbjnwkp";
};
# Don't build a private copy of bzip2.
BUILD_BZIP2 = false;
BZIP2_LIB = "${bzip2}/lib";
BZIP2_INCLUDE = "${bzip2}/include";
}

View File

@@ -0,0 +1,23 @@
diff -rc Catalyst-Engine-HTTP-Prefork-0.50-orig/lib/Catalyst/Engine/HTTP/Prefork/Handler.pm Catalyst-Engine-HTTP-Prefork-0.50/lib/Catalyst/Engine/HTTP/Prefork/Handler.pm
*** Catalyst-Engine-HTTP-Prefork-0.50-orig/lib/Catalyst/Engine/HTTP/Prefork/Handler.pm 2008-03-14 18:23:47.000000000 +0100
--- Catalyst-Engine-HTTP-Prefork-0.50/lib/Catalyst/Engine/HTTP/Prefork/Handler.pm 2009-03-11 14:18:40.000000000 +0100
***************
*** 199,206 ****
if ( $self->{_chunked_res} ) {
if ( !$self->{_chunked_done} ) {
! # Write the final '0' chunk
! syswrite STDOUT, "0$CRLF";
}
delete $self->{_chunked_res};
--- 199,207 ----
if ( $self->{_chunked_res} ) {
if ( !$self->{_chunked_done} ) {
! # Write the final '0' chunk and the CRLF that terminates
! # the chunked body.
! syswrite STDOUT, "0$CRLF$CRLF";
}
delete $self->{_chunked_res};

View File

@@ -0,0 +1,11 @@
{stdenv, fetchurl, python, cups}:
stdenv.mkDerivation {
name = "pycups-1.9.45";
src = fetchurl {
url = http://cyberelk.net/tim/data/pycups/pycups-1.9.45.tar.bz2;
md5 = "ff634a6751f8a859ed26751bf03abef0";
};
installPhase = "python ./setup.py install --prefix $out";
buildInputs = [ python cups ];
}

View File

@@ -41,8 +41,6 @@ stdenv.mkDerivation {
installPhase = "yes Y | python setup.py install --prefix=\${out} ";
meta = {
description = "
Python library for games.
";
description = "Python library for games";
};
}

View File

@@ -0,0 +1,11 @@
{stdenv, fetchurl, python, sip, qt4}:
stdenv.mkDerivation {
name = "pyqt-x11-gpl-4.4.4";
src = fetchurl {
url = http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-x11-gpl-4.4.4.tar.gz;
md5 = "4bd346d56d10452e47ac71e2cbe04229";
};
configurePhase = "python ./configure.py --confirm-license -b $out/bin -d $out/lib/python2.5/site-packages -v $out/share/sip -p $out/plugins";
buildInputs = [ python sip qt4 ];
}

View File

@@ -0,0 +1,11 @@
{stdenv, fetchurl, python}:
stdenv.mkDerivation {
name = "sip-4.7.9";
src = fetchurl {
url = http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.7.9.tar.gz;
md5 = "597d7ff7edb42a18421c806ffd18a136";
};
configurePhase = "python ./configure.py -d $out/lib/python2.5/site-packages -b $out/bin -e $out/include";
buildInputs = [ python ];
}

View File

@@ -22,8 +22,7 @@ stdenv.mkDerivation rec {
'';
meta = {
description = ''The PyXML package is a collection of libraries to process
XML with Python.'';
description = "A collection of libraries to process XML with Python";
homepage = http://pyxml.sourceforge.net/;
};
}

View File

@@ -0,0 +1,12 @@
source $stdenv/setup
rpm2cpio $src | cpio -idv
tar xfvj rhpl-*.tar.bz2
rm rhpl-*.tar.bz2
cd rhpl-*
sed -i -e "s@/usr/include/\$(PYTHON)@$python/include/python2.5@" \
-e "s@PYTHONLIBDIR = /usr/\$(LIBDIR)/\$(PYTHON)/site-packages@PYTHONLIBDIR = $out/lib/python2.5/site-packages@" Makefile.inc
sed -i -e "s@/usr/bin/install@install@g" \
-e "s@\$(DESTDIR)/usr/share/locale@$out/share/locale@" po/Makefile
make PREFIX=$out
make PREFIX=$out install

View File

@@ -0,0 +1,12 @@
{stdenv, fetchurl, rpm, cpio, python, wirelesstools, gettext}:
stdenv.mkDerivation {
name = "rhpl-0.218";
src = fetchurl {
url = http://ftp.stw-bonn.de/pub/fedora/linux/releases/10/Everything/source/SRPMS/rhpl-0.218-1.src.rpm;
md5 = "a72c6b66df782ca1d4950959d2aad292";
};
inherit python;
builder = ./builder.sh;
buildInputs = [ rpm cpio python wirelesstools gettext ];
}

View File

@@ -0,0 +1,17 @@
{stdenv, fetchurl, python, antlr}:
stdenv.mkDerivation rec {
name = "PyStringTemplate-${version}";
version = "3.2b1";
meta = {
homepage = "http://www.stringtemplate.org/";
description = "Text Templating Library";
};
src = fetchurl {
url = "http://www.stringtemplate.org/download/${name}.tar.gz";
sha256 = "0lbib0l8c1q7i1j610rwcdagymr1idahrql4dkgnm5rzyg2vk3ml";
};
propagatedBuildInputs = [python antlr];
buildPhase = "true";
installPhase = "python setup.py install --prefix=$out --install-lib=$(toPythonPath $out) -O1";
}

View File

@@ -1,11 +1,11 @@
{ stdenv, fetchurl, perl, gdb }:
stdenv.mkDerivation {
name = "valgrind-3.4.0";
stdenv.mkDerivation rec {
name = "valgrind-3.4.1";
src = fetchurl {
url = http://valgrind.org/downloads/valgrind-3.4.0.tar.bz2;
sha256 = "0x4zbwk9ml3kbjzwh887ahw0pdxcm5h9159qg9kwm7zgn7jlmsnm";
url = "http://valgrind.org/downloads/${name}.tar.bz2";
sha256 = "1ac465lh0b61q46xjrvs9ld1x4fk6nzdgdjr0590bad3p2mfg7k6";
};
# Perl is needed for `cg_annotate'.

View File

@@ -0,0 +1,31 @@
{fetchurl, stdenv, replace, ncurses}:
stdenv.mkDerivation rec {
name = "cmake-2.6.3-RC-15";
# We look for cmake modules in .../share/cmake-${majorVersion}/Modules.
majorVersion = "2.6";
setupHook = ./setup-hook.sh;
meta = {
homepage = http://www.cmake.org/;
description = "Cross-Platform Makefile Generator";
};
src = fetchurl {
url = "http://www.cmake.org/files/v2.6/${name}.tar.gz";
sha256 = "476b6daca63c39bc46955f99f2566735d51159c43ccc716fa689ba2a2fa7e432";
};
postUnpack = ''
dontUseCmakeConfigure=1
source $setupHook
fixCmakeFiles $sourceRoot
echo 'SET (CMAKE_SYSTEM_PREFIX_PATH "'${ncurses}'" CACHE FILEPATH "Root for libs for cmake" FORCE)' > $sourceRoot/cmakeInit.txt
'';
configureFlags= [ " --init=cmakeInit.txt " ];
postInstall = "fixCmakeFiles $out/share";
}

View File

@@ -2,20 +2,30 @@
stdenv.mkDerivation rec {
name = "cmake-2.6.2";
# We look for cmake modules in .../share/cmake-${majorVersion}/Modules.
majorVersion = "2.6";
setupHook = ./setup-hook.sh;
meta = {
homepage = http://www.cmake.org/;
description = "Cross-Platform Makefile Generator";
};
src = fetchurl {
url = "http://www.cmake.org/files/v2.6/${name}.tar.gz";
sha256 = "b3f5a9dfa97fb82cb1b7d78a62d949f93c8d4317af36674f337d27066fa6b7e9";
};
inherit ncurses;
propagatedBuildInputs = [replace];
postUnpack = "
source \${setupHook}; fixCmakeFiles \${sourceRoot};
echo 'SET (CMAKE_SYSTEM_PREFIX_PATH \"'\${ncurses}'\" CACHE FILEPATH \"Root for libs for cmake\" FORCE)' > \${sourceRoot}/cmakeInit.txt
";
postUnpack = ''
dontUseCmakeConfigure=1
source $setupHook
fixCmakeFiles $sourceRoot
echo 'SET (CMAKE_SYSTEM_PREFIX_PATH "'${ncurses}'" CACHE FILEPATH "Root for libs for cmake" FORCE)' > $sourceRoot/cmakeInit.txt
'';
configureFlags= [ " --init=cmakeInit.txt " ];
postInstall="fixCmakeFiles \$out/share";
postInstall = "fixCmakeFiles $out/share";
}

View File

@@ -1,49 +1,46 @@
addCMakeParamsInclude()
addCMakeParams()
{
addToSearchPath CMAKE_INCLUDE_PATH /include "" $1
}
addCMakeParamsLibs()
{
addToSearchPath CMAKE_LIBRARY_PATH /lib "" $1
}
addCMakeModulePath()
{
addToSearchPath CMAKE_MODULE_PATH /share/cmake-2.4/Modules "" $1
addToSearchPath CMAKE_MODULE_PATH /share/cmake-@majorVersion@/Modules "" $1
}
fixCmakeFiles()
{
local replaceArgs;
echo "Fixing cmake files"
local replaceArgs
echo "fixing cmake files"
replaceArgs="-e -f -L -T /usr /FOO"
replaceArgs="${replaceArgs} -a NO_DEFAULT_PATH \"\" -a NO_SYSTEM_PATH \"\""
replaceArgs="$replaceArgs -a NO_DEFAULT_PATH \"\" -a NO_SYSTEM_PATH \"\""
find $1 -type f -name "*.cmake" | xargs replace-literal ${replaceArgs}
}
cmakePostUnpack()
cmakeConfigurePhase()
{
sourceRoot=$sourceRoot/build
mkdir -v $sourceRoot
echo source root reset to $sourceRoot
if [ -z "$dontFixCmake" ]; then
eval "$preConfigure"
if test -z "$dontFixCmake"; then
fixCmakeFiles .
fi
if [ -z "$configureScript" ]; then
configureScript="cmake .."
if test -z "$dontUseCmakeBuildDir"; then
mkdir -p build
cd build
cmakeDir=..
fi
if [ -z "$dontAddPrefix" ]; then
dontAddPrefix=1
configureFlags="-DCMAKE_INSTALL_PREFIX=$out $configureFlags"
if test -z "$dontAddPrefix"; then
cmakeFlags="-DCMAKE_INSTALL_PREFIX=$prefix $cmakeFlags"
fi
echo "cmake flags: $cmakeFlags ${cmakeFlagsArray[@]}"
cmake ${cmakeDir:-.} $cmakeFlags ${cmakeFlagsArray[@]}
eval "$postConfigure"
}
if test -z "$dontUseCmakeConfigure"; then
configurePhase=cmakeConfigurePhase
fi
if [ -z "$noCmakeTewaks" ]; then
postUnpack="cmakePostUnpack${postUnpack:+; }${postUnpack}"
fi;
envHooks=(${envHooks[@]} addCMakeParamsInclude addCMakeParamsLibs addCMakeModulePath)
envHooks=(${envHooks[@]} addCMakeParams)

View File

@@ -1,15 +1,46 @@
{stdenv, fetchurl, graphviz, perl, flex, bison, gnumake, libX11, libXext, qt}:
stdenv.mkDerivation rec {
name = "doxygen-1.5.7.1";
name = "doxygen-1.5.8";
src = fetchurl {
url = "ftp://ftp.stack.nl/pub/users/dimitri/${name}.src.tar.gz";
sha256 = "0abds9d2ff4476105myl4933q6l4vqyyyajx6qial88iffbczsbw";
sha256 = "1y2gyijhknam51jyh5ja2z5hlj0mr7r328rrwf27g7ljgsphlm01";
};
buildInputs = [graphviz perl flex bison libX11 libXext qt];
patches = [ ./tmake.patch ];
buildInputs = [ graphviz perl flex bison libX11 libXext ]
++ (if qt != null then [ qt ] else []);
prefixKey = "--prefix ";
configureFlags = "--release"
+ " --make ${gnumake}/bin/make"
+ (if qt == null then "" else " --with-doxywizard")
;
preConfigure =
(if qt == null
then ""
else ''
echo "using QTDIR=${qt}..."
export QTDIR=${qt}
'');
# export CPLUS_INCLUDE_PATH="${qt}/include:$CPLUS_INCLUDE_PATH"
# export LIBRARY_PATH="${qt}/lib:$LIBRARY_PATH"
meta = {
description = "Doxygen, a source code documentation generator tool";
longDescription = ''
Doxygen is a documentation system for C++, C, Java, Objective-C,
Python, IDL (CORBA and Microsoft flavors), Fortran, VHDL, PHP,
C\#, and to some extent D. It can generate an on-line
documentation browser (in HTML) and/or an off-line reference
manual (in LaTeX) from a set of documented source files.
'';
homepage = http://doxygen.org/;
license = "GPLv2+";
};
}

View File

@@ -0,0 +1,23 @@
Fix the `check_unix' function, which looks for `/bin/uname' to determine
whether we're on a Unix-like system.
--- doxygen-1.5.8/tmake/bin/tmake 2008-12-06 14:16:20.000000000 +0100
+++ doxygen-1.5.8/tmake/bin/tmake 2009-03-05 11:29:55.000000000 +0100
@@ -234,17 +234,7 @@ sub tmake_verb {
#
sub check_unix {
- my($r);
- $r = 0;
- if ( -f "/bin/uname" ) {
- $r = 1;
- (-f "\\bin\\uname") && ($r = 0);
- }
- if ( -f "/usr/bin/uname" ) {
- $r = 1;
- (-f "\\usr\\bin\\uname") && ($r = 0);
- }
- return $r;
+ return 1;
}

View File

@@ -2,10 +2,10 @@
, guileLib }:
stdenv.mkDerivation rec {
name = "g-wrap-1.9.11";
name = "g-wrap-1.9.12";
src = fetchurl {
url = "mirror://savannah/g-wrap/${name}.tar.gz";
sha256 = "1j8zchilsr0dziyr21az4x3xxyr4d3jc8nybag9rp6pjj8k49adn";
sha256 = "1bkca6vj92phgk46n1qid6naxgx58kk4p1y29pap6177j81s7cc6";
};
# Note: Glib support is optional, but it's quite useful (e.g., it's

View File

@@ -20,8 +20,7 @@ stdenv.mkDerivation rec {
doCheck = true;
meta = {
description = ''Guile-Lint checks syntax and semantics in a
Guile program or module.'';
description = "Guile-Lint checks syntax and semantics in a Guile program or module";
homepage = http://www.geocities.com/user42_kevin/guile-lint/index.html;
license = "GPL";
};

View File

@@ -1,32 +1,30 @@
args: with args;
let edf = composableDerivation.edf; in
composableDerivation.composableDerivation {
initial = {
name="avrdude-5.4";
composableDerivation.composableDerivation {} {
name="avrdude-5.4";
src = fetchurl {
url = http://mirror.switch.ch/mirror/gentoo/distfiles/avrdude-5.4.tar.gz;
sha256 = "bee4148c51ec95999d803cb9f68f12ac2e9128b06f07afe307d38966c0833b30";
};
src = fetchurl {
url = http://mirror.switch.ch/mirror/gentoo/distfiles/avrdude-5.4.tar.gz;
sha256 = "bee4148c51ec95999d803cb9f68f12ac2e9128b06f07afe307d38966c0833b30";
};
configureFlags = [ "--disable-dependency-tracking" ];
configureFlags = [ "--disable-dependency-tracking" ];
buildInputs = [yacc flex];
buildInputs = [yacc flex];
flags =
edf { name = "doc"; enable = { buildInputs = texLive; configureFlags = ["--enable-doc"]; }; }
// edf { name = "parport"; }
;
flags =
edf { name = "doc"; enable = { buildInputs = texLive; configureFlags = ["--enable-doc"]; }; }
// edf { name = "parport"; }
;
cfg = {
docSupport = false; # untested
parportSupport = true;
};
cfg = {
docSupport = false; # untested
parportSupport = true;
};
meta = {
license = "GPL-2";
description = "AVR Downloader/UploaDEr";
homepage = http://savannah.nongnu.org/projects/avrdude;
};
meta = {
license = "GPL-2";
description = "AVR Downloader/UploaDEr";
homepage = http://savannah.nongnu.org/projects/avrdude;
};
}

View File

@@ -22,9 +22,7 @@ stdenv.mkDerivation rec {
builder = writeScript (name + "-builder")
(textClosure localDefs [doConfigure preBuild doMakeInstall doForceShare doPropagate]);
meta = {
description = "
GNU Indent - a source text formatter.
";
description = "GNU Indent - a source text formatter";
inherit src;
};
}

View File

@@ -29,9 +29,7 @@ stdenv.mkDerivation rec {
builder = writeScript (name + "-builder")
(textClosure localDefs [preBuild preConfigure doConfigure doMakeInstall doForceShare]);
meta = {
description = "
Library call tracer.
";
description = "Library call tracer";
inherit src;
};
}

View File

@@ -0,0 +1,51 @@
{ fetchurl, stdenv, perl }:
stdenv.mkDerivation rec {
name = "sloccount-2.26";
src = fetchurl {
url = "http://www.dwheeler.com/sloccount/${name}.tar.gz";
sha256 = "0ayiwfjdh1946asah861ah9269s5xkc8p5fv1wnxs9znyaxs4zzs";
};
buildInputs = [ perl ];
patchPhase = ''
for file in *
do
substituteInPlace "$file" --replace "/usr/bin/perl" "${perl}/bin/perl"
done
'';
configurePhase = ''
sed -i "makefile" -"es|PREFIX[[:blank:]]*=.*$|PREFIX = $out|g"
'';
doCheck = true;
checkPhase = ''HOME="$TMPDIR" PATH="$PWD:$PATH" make test'';
preInstall = ''
ensureDir "$out/bin"
ensureDir "$out/share/man/man1"
ensureDir "$out/share/doc"
'';
meta = {
description = "SLOCCount, a set of tools for counting physical Source Lines of Code (SLOC)";
longDescription = ''
This is the home page of "SLOCCount", a set of tools for
counting physical Source Lines of Code (SLOC) in a large number
of languages of a potentially large set of programs. This suite
of tools was used in my papers More than a Gigabuck: Estimating
GNU/Linux's Size and Estimating Linux's Size to measure the SLOC
of entire GNU/Linux distributions, and my essay Linux Kernel
2.6: It's Worth More! Others have measured Debian GNU/Linux and
the Perl CPAN library using this tool suite.
'';
license = "GPLv2+";
homepage = http://www.dwheeler.com/sloccount/;
};
}

View File

@@ -1,11 +1,10 @@
{stdenv, fetchurl, jre}:
{stdenv, fetchurl, jdk, python}:
stdenv.mkDerivation {
name = "antlr-2.7.6";
builder = ./builder2.sh;
src = fetchurl {
url = http://www.antlr.org/download/antlr-2.7.6.tar.gz;
md5 = "17d8bf2e814f0a26631aadbbda8d7324";
};
inherit jre;
buildInputs = [jdk python];
}

View File

@@ -1,16 +0,0 @@
source $stdenv/setup
tar zxvf $src
cd antlr-*
ensureDir $out/bin
ensureDir $out/lib/$name
cp antlr.jar $out/lib/$name
cat > $out/bin/antlr <<EOF
#! $SHELL
$jre/bin/java -cp $out/lib/$name/antlr.jar -Xms200M -Xmx400M antlr.Tool \$*
EOF
chmod u+x $out/bin/antlr

View File

@@ -5,40 +5,38 @@ let
name = "ragel-${version}";
in
composableDerivation.composableDerivation {
initial = rec {
inherit name;
src = fetchurl {
url = "http://www.complang.org/ragel/${name}.tar.gz";
sha256 = "018cedc8a68be85cda330fc53d0bb8a1ca6ad39b1cf790eed0311e7baa5a2520";
};
composableDerivation.composableDerivation {} {
inherit name;
src = fetchurl {
url = "http://www.complang.org/ragel/${name}.tar.gz";
sha256 = "018cedc8a68be85cda330fc53d0bb8a1ca6ad39b1cf790eed0311e7baa5a2520";
};
flags = {
doc = {
# require fig2dev & pdflatex (see README)
buildInputs = [transfig texLive];
# use post* because default values of buildPhase is empty.
postBuild = ''
pushd doc
make
popd
'';
postInstall = ''
pushd doc
make install
popd
'';
};
};
cfg = {
docSupport = false;
};
meta = {
homepage = http://www.complang.org/ragel;
description = "State machine compiler";
license = "GPL-2";
flags = {
doc = {
# require fig2dev & pdflatex (see README)
buildInputs = [transfig texLive];
# use post* because default values of buildPhase is empty.
postBuild = ''
pushd doc
make
popd
'';
postInstall = ''
pushd doc
make install
popd
'';
};
};
cfg = {
docSupport = false;
};
meta = {
homepage = http://www.complang.org/ragel;
description = "State machine compiler";
license = "GPL-2";
};
}