* Get rid of many instances of "args: with args;", and other coding

guidelines violations.
* Updated libsamplerate to 0.1.7.

svn path=/nixpkgs/trunk/; revision=22782
This commit is contained in:
Eelco Dolstra 2010-07-28 11:55:54 +00:00
parent b4a3f99c78
commit 6609710409
132 changed files with 925 additions and 958 deletions

View file

@ -1,23 +1,20 @@
args: with args; { stdenv, fetchurl, jackaudio, pkgconfig }:
let name = "jackmeter-0.3"; stdenv.mkDerivation rec {
in name = "jackmeter-0.3";
stdenv.mkDerivation {
inherit name;
src = fetchurl { src = fetchurl {
url = "http://www.aelius.com/njh/jackmeter/${name}.tar.gz"; url = "http://www.aelius.com/njh/jackmeter/${name}.tar.gz";
sha256 = "03siznnq3f0nnqyighgw9qdq1y4bfrrxs0mk6394pza3sz4b6sgp"; sha256 = "03siznnq3f0nnqyighgw9qdq1y4bfrrxs0mk6394pza3sz4b6sgp";
}; };
buildInputs = [jackaudio pkgconfig]; buildInputs = [ jackaudio pkgconfig ];
meta = { meta = {
description = "console jack loudness meter"; description = "Console jack loudness meter";
homepage = http://www.aelius.com/njh/jackmeter/; homepage = http://www.aelius.com/njh/jackmeter/;
license = "GPLv2"; license = "GPLv2";
maintainers = [args.lib.maintainers.marcweber]; maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = args.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
} }

View file

@ -1,28 +1,28 @@
args: with args; { stdenv, fetchurl, builderDefs }:
let let
src = src = fetchurl {
fetchurl { url = http://www.ladspa.org/ladspa_sdk/ladspa.h.txt;
url = http://www.ladspa.org/ladspa_sdk/ladspa.h.txt; sha256 = "1b908csn85ng9sz5s5d1mqk711cmawain2z8px2ajngihdrynb67";
sha256 = "1b908csn85ng9sz5s5d1mqk711cmawain2z8px2ajngihdrynb67"; };
};
in in
let localDefs = builderDefs.passthru.function { let localDefs = builderDefs.passthru.function {
buildInputs = []; buildInputs = [];
inherit src; inherit src;
}; };
in with localDefs; in with localDefs;
let let
copyFile = fullDepEntry (" copyFile = fullDepEntry ("
ensureDir \$out/include ensureDir \$out/include
cp ${src} \$out/include/ladspa.h cp ${src} \$out/include/ladspa.h
") [minInit defEnsureDir]; ") [minInit defEnsureDir];
in in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "ladspa.h"; name = "ladspa.h";
builder = writeScript "ladspa.h-builder" builder = writeScript "ladspa.h-builder"
(textClosure localDefs [copyFile]); (textClosure localDefs [copyFile]);
meta = { meta = {
description = "LADSPA format audio plugins"; description = "LADSPA format audio plugins";
inherit src; inherit src;
}; };
} }

View file

@ -1,4 +1,5 @@
args : with args; { stdenv, fetchurl, ncurses }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "bvi-1.3.2"; name = "bvi-1.3.2";
@ -7,11 +8,11 @@ stdenv.mkDerivation {
sha256 = "110wxqnyianqamxq4y53drqqxb9vp4k2fcvic45qggvlqkqhlfgz"; sha256 = "110wxqnyianqamxq4y53drqqxb9vp4k2fcvic45qggvlqkqhlfgz";
}; };
buildInputs = [ncurses]; buildInputs = [ ncurses ];
meta = { meta = {
description = "hex editor with vim style keybindings"; description = "Hex editor with vim style keybindings";
homepage = http://bvi.sourceforge.net/download.html; homepage = http://bvi.sourceforge.net/download.html;
license = "GPL2"; license = "GPL2";
}; };
} }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, ant }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "jedit-4.2"; name = "jedit-4.2";
@ -18,11 +19,11 @@ stdenv.mkDerivation {
cp modes/catalog \$out/lib/modes cp modes/catalog \$out/lib/modes
"; ";
buildInputs = [ant]; buildInputs = [ ant ];
meta = { meta = {
description = "really nice programmers editor written in Java. Give it a try"; description = "really nice programmers editor written in Java. Give it a try";
homepage = http://www.jedit.org; homepage = http://www.jedit.org;
license = "GPL"; license = "GPL";
}; };
} }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, ncurses, gettext }:
stdenv.mkDerivation (rec { stdenv.mkDerivation (rec {
pname = "nano"; pname = "nano";
version = "2.2.3"; version = "2.2.3";
@ -9,9 +10,10 @@ stdenv.mkDerivation (rec {
url = "mirror://gnu/nano/${name}.tar.gz"; url = "mirror://gnu/nano/${name}.tar.gz";
sha256 = "1vpl993xrpj8bqi1ayga8fc0j2jag90xp6rqakzwm3bxw71hmwi2"; sha256 = "1vpl993xrpj8bqi1ayga8fc0j2jag90xp6rqakzwm3bxw71hmwi2";
}; };
buildInputs = [ncurses gettext];
# configureFlags = "--enable-tiny"; buildInputs = [ ncurses gettext ];
configureFlags = "
configureFlags = ''
--disable-browser --disable-browser
--disable-help --disable-help
--disable-justify --disable-justify
@ -20,7 +22,7 @@ stdenv.mkDerivation (rec {
--disable-speller --disable-speller
--disable-tabcomp --disable-tabcomp
--disable-wrapping --disable-wrapping
"; '';
meta = { meta = {
homepage = http://www.nano-editor.org/; homepage = http://www.nano-editor.org/;

View file

@ -1,13 +1,14 @@
args: { stdenv, fetchurl, snack, tcl, tk, makeWrapper }:
args.stdenv.mkDerivation {
stdenv.mkDerivation {
name = "wavesurfer-1.8.5"; name = "wavesurfer-1.8.5";
src = args.fetchurl { src = fetchurl {
url = http://www.speech.kth.se/wavesurfer/wavesurfer-1.8.5.tar.gz; url = http://www.speech.kth.se/wavesurfer/wavesurfer-1.8.5.tar.gz;
sha256 = "1yx9s1j47cq0v40cwq2gn7bdizpw46l95ba4zl9z4gg31mfvm807"; sha256 = "1yx9s1j47cq0v40cwq2gn7bdizpw46l95ba4zl9z4gg31mfvm807";
}; };
buildInputs =(with args; [snack tcl tk makeWrapper]); buildInputs = [ snack tcl tk makeWrapper ];
installPhase = '' installPhase = ''
ensureDir $out/{bin,nix-support,share/wavesurfer/} ensureDir $out/{bin,nix-support,share/wavesurfer/}
@ -15,13 +16,13 @@ args.stdenv.mkDerivation {
mv * $out/nix-support mv * $out/nix-support
ln -s $out/{nix-support,bin}/wavesurfer.tcl ln -s $out/{nix-support,bin}/wavesurfer.tcl
wrapProgram "$out/nix-support/wavesurfer.tcl" \ wrapProgram "$out/nix-support/wavesurfer.tcl" \
--set TCLLIBPATH "${args.snack}/lib" \ --set TCLLIBPATH "${snack}/lib" \
--prefix PATH : "${args.tcl}/bin:${args.tk}/bin" --prefix PATH : "${tcl}/bin:${tk}/bin"
''; '';
meta = { meta = {
description = "tool for recording, playing, editing, viewing and labeling of audio"; description = "Tool for recording, playing, editing, viewing and labeling of audio";
homepage = http://www.speech.kth.se/wavesurfer/; homepage = http://www.speech.kth.se/wavesurfer/;
license = "BSD"; license = "BSD";
}; };
} }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "flite-1.3-release"; name = "flite-1.3-release";
@ -7,20 +8,22 @@ stdenv.mkDerivation {
sha256 = "12wanxx57bbqgkag54dlqzv6h2kr9053p0z8mkxs0mqy03vja8lj"; sha256 = "12wanxx57bbqgkag54dlqzv6h2kr9053p0z8mkxs0mqy03vja8lj";
}; };
buildPhase = " buildPhase =
unset buildPhase ''
ensureDir \$out/lib unset buildPhase
buildPhase ensureDir $out/lib
"; buildPhase
'';
installPhase = " installPhase =
ensureDir \$out/share/flite ''
cp -r bin \$out ensureDir $out/share/flite
"; cp -r bin $out
'';
meta = { meta = {
description = "Flite text to speech engine"; description = "Flite text to speech engine";
homepage = http://www.speech.cs.cmu.edu/flite/download.html; homepage = http://www.speech.cs.cmu.edu/flite/download.html;
license = "BSD as-is"; license = "BSD as-is";
}; };
} }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, postgresql, wxGTK, libxml2, libxslt, openssl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "pgadmin3-1.10.0"; name = "pgadmin3-1.10.0";
@ -7,11 +8,11 @@ stdenv.mkDerivation rec {
sha256 = "1ndi951da3jw5800fjdgkbvl8n6k71x7x16ghihi1l88bilf2a16"; sha256 = "1ndi951da3jw5800fjdgkbvl8n6k71x7x16ghihi1l88bilf2a16";
}; };
buildInputs = [postgresql wxGTK libxml2 libxslt openssl]; buildInputs = [ postgresql wxGTK libxml2 libxslt openssl ];
meta = { meta = {
description = "postgresql admin gui tool"; description = "PostgreSQL administration GUI tool";
homepage = http://www.pgadmin.org; homepage = http://www.pgadmin.org;
license = "GPL2"; license = "GPL2";
}; };
} }

View file

@ -1,6 +1,7 @@
args: with args; { stdenv, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
name="procmail-3.22"; name = "procmail-3.22";
buildInputs = [ stdenv.gcc.libc ]; buildInputs = [ stdenv.gcc.libc ];

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "pstree-2.33"; name = "pstree-2.33";
@ -7,15 +8,13 @@ stdenv.mkDerivation rec {
sha256 = "1469lrhpy6wghlvbjx6lmvh27rakq00x11cpz4n965fg11i121hg"; sha256 = "1469lrhpy6wghlvbjx6lmvh27rakq00x11cpz4n965fg11i121hg";
}; };
unpackPhase="unpackFile \$src; sourceRoot=."; unpackPhase = "unpackFile \$src; sourceRoot=.";
buildPhase="pwd; gcc -o pstree pstree.c"; buildPhase = "pwd; gcc -o pstree pstree.c";
installPhase="ensureDir \$out/bin; cp pstree \$out/bin"; installPhase = "ensureDir \$out/bin; cp pstree \$out/bin";
meta = { meta = {
description = "show the running processes as tree"; description = "Show the set of running processes as a tree";
# don't know the correct homepage.. license = "GPL";
homepage = http://fresh.t-systems-sfr.com/unix/src/misc/pstree-2.32.tar.gz; };
license = "GPL";
};
} }

View file

@ -1,18 +1,18 @@
args: with args; { stdenv, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "sbagen-1.4.4"; name = "sbagen-1.4.4";
buildPhases="buildPhase installPhase"; buildPhases = "buildPhase installPhase";
buildPhase="./mk"; buildPhase = "./mk";
installPhase=" installPhase = ''
ensureDir \$out/{bin,share/sbagen/doc} ensureDir $out/{bin,share/sbagen/doc}
cp -r --target-directory=\$out/share/sbagen examples scripts river1.ogg river2.ogg cp -r --target-directory=$out/share/sbagen examples scripts river1.ogg river2.ogg
cp sbagen $out/bin cp sbagen $out/bin
cp --target-directory=\$out/share/sbagen/doc README.txt SBAGEN.txt theory{,2}.txt {wave,holosync,focus,TODO}.txt cp --target-directory=$out/share/sbagen/doc README.txt SBAGEN.txt theory{,2}.txt {wave,holosync,focus,TODO}.txt
'';
";
src = fetchurl { src = fetchurl {
url = http://uazu.net/sbagen/sbagen-1.4.4.tgz; url = http://uazu.net/sbagen/sbagen-1.4.4.tgz;
@ -20,8 +20,8 @@ stdenv.mkDerivation {
}; };
meta = { meta = {
description = "binaural sound generator"; description = "Binaural sound generator";
homepage = http://uazu.net/sbagen; homepage = http://uazu.net/sbagen;
license = "GPL"; license = "GPL";
}; };
} }

View file

@ -1,8 +1,9 @@
args: { stdenv, fetchurl }:
args.stdenv.mkDerivation {
stdenv.mkDerivation {
name = "thinkingrock-2.2.1-binary"; name = "thinkingrock-2.2.1-binary";
src = args.fetchurl { src = fetchurl {
url = mirror://sourceforge/thinkingrock/ThinkingRock/TR%202.2.1/tr-2.2.1.tar.gz; url = mirror://sourceforge/thinkingrock/ThinkingRock/TR%202.2.1/tr-2.2.1.tar.gz;
sha256 = "0hnwvvyc8miiz8w2g4iy7s4rgfy0kfbncgbgfzpsq6nrzq334kgm"; sha256 = "0hnwvvyc8miiz8w2g4iy7s4rgfy0kfbncgbgfzpsq6nrzq334kgm";
}; };
@ -28,11 +29,12 @@ args.stdenv.mkDerivation {
EOF EOF
chmod +x $out/bin/thinkingrock chmod +x $out/bin/thinkingrock
''; '';
installPhase = ":"; installPhase = ":";
meta = { meta = {
description = "task managing system"; description = "Task management system";
homepage = http://www.thinkingrock.com.au/; homepage = http://www.thinkingrock.com.au/;
license = "CDDL"; # Common Development and Distribution License license = "CDDL"; # Common Development and Distribution License
}; };
} }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, python, perl, ncurses, x11, bzip2, zlib, openssl
, spidermonkey, guile, gpm }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "elinks-0.12pre5"; name = "elinks-0.12pre5";
@ -8,13 +9,17 @@ stdenv.mkDerivation rec {
sha256 = "1li4vlbq8wvnigxlkzb15490y90jg6y9yzzrqpqcz2h965w5869d"; sha256 = "1li4vlbq8wvnigxlkzb15490y90jg6y9yzzrqpqcz2h965w5869d";
}; };
buildInputs = [python perl ncurses x11 bzip2 zlib openssl spidermonkey guile gpm]; buildInputs = [ python perl ncurses x11 bzip2 zlib openssl spidermonkey guile gpm ];
configureFlags = "--enable-finger --enable-html-highlight --with-guile
--with-perl --with-python --enable-gopher --enable-cgi --enable-bittorrent configureFlags =
--enable-nntp --with-openssl=${openssl}"; ''
--enable-finger --enable-html-highlight --with-guile
--with-perl --with-python --enable-gopher --enable-cgi --enable-bittorrent
--enable-nntp --with-openssl=${openssl}
'';
meta = { meta = {
description = "Full-Featured Text WWW Browser"; description = "Full-featured text-mode web browser";
homepage = http://elinks.or.cz; homepage = http://elinks.or.cz;
}; };
} }

View file

@ -1,10 +1,10 @@
args: with args; { stdenv, fetchurl, pidgin, intltool, libxml2 }:
let version = "1.10.0"; in
let
version = "1.10.0";
in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "pidgin-sipe-${version}"; name = "pidgin-sipe-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/sipe/sipe/pidgin-sipe-${version}/pidgin-sipe-${version}.tar.gz"; url = "mirror://sourceforge/sipe/sipe/pidgin-sipe-${version}/pidgin-sipe-${version}.tar.gz";
sha256 = "11d85qxix1dmwvzs3lx0sycsx1d5sy67r9y78fs7z716py4mg9np"; sha256 = "11d85qxix1dmwvzs3lx0sycsx1d5sy67r9y78fs7z716py4mg9np";

View file

@ -1,7 +1,8 @@
args: with args; { stdenv, fetchurl, which, diffutils, gnupatch, gnutar }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "tla-1.3.5"; name = "tla-1.3.5";
src = fetchurl { src = fetchurl {
url = "mirror://gnu/gnu-arch/" + name + ".tar.gz"; url = "mirror://gnu/gnu-arch/" + name + ".tar.gz";
sha256 = "01mfzj1i6p4s8191cgd5850hds1zls88hkf9rb6qx1vqjv585aj0"; sha256 = "01mfzj1i6p4s8191cgd5850hds1zls88hkf9rb6qx1vqjv585aj0";
@ -10,6 +11,7 @@ stdenv.mkDerivation rec {
patches = [ ./configure-tmpdir.patch ]; patches = [ ./configure-tmpdir.patch ];
buildInputs = [which]; buildInputs = [which];
propagatedBuildInputs = [diffutils gnupatch gnutar]; propagatedBuildInputs = [diffutils gnupatch gnutar];
# Instead of GNU Autoconf, tla uses Tom Lord's now # Instead of GNU Autoconf, tla uses Tom Lord's now

View file

@ -1,17 +1,18 @@
args: { stdenv, fetchurl, imagemagick, libdvdread, libxml2, freetype, fribidi, libpng }:
args.stdenv.mkDerivation {
stdenv.mkDerivation {
name = "dvdauthor-0.6.14"; name = "dvdauthor-0.6.14";
src = args.fetchurl { src = fetchurl {
url = mirror://sourceforge/dvdauthor/dvdauthor-0.6.14.tar.gz; url = mirror://sourceforge/dvdauthor/dvdauthor-0.6.14.tar.gz;
sha256 = "1x4flj3ja7m8rbc956a6ha3qk0k6zxd1y6sl826r6r7dyc91a6yx"; sha256 = "1x4flj3ja7m8rbc956a6ha3qk0k6zxd1y6sl826r6r7dyc91a6yx";
}; };
buildInputs =(with args; [imagemagick libdvdread libxml2 freetype fribidi libpng]); buildInputs = [ imagemagick libdvdread libxml2 freetype fribidi libpng ];
meta = { meta = {
description = "Tools for generating DVD files to be played on standalone DVD players"; description = "Tools for generating DVD files to be played on standalone DVD players";
homepage = http://dvdauthor.sourceforge.net/; homepage = http://dvdauthor.sourceforge.net/;
license = ["GPLv2"]; license = ["GPLv2"];
}; };
} }

View file

@ -1,6 +1,7 @@
args: with args; { fetchurl, stdenv, texinfo }:
((import ./common.nix) import ./common.nix {
(args // inherit fetchurl stdenv texinfo;
{ revision = 3; revision = 3;
sha256 = "0knrpkr74s8yn4xcqxkqpgxmzdmzrvahh1n1csqc1wwd2rb4vnpr"; })) sha256 = "0knrpkr74s8yn4xcqxkqpgxmzdmzrvahh1n1csqc1wwd2rb4vnpr";
}

View file

@ -1,6 +1,7 @@
args: with args; { fetchurl, stdenv, texinfo }:
((import ./common.nix) import ./common.nix {
(args // inherit fetchurl stdenv texinfo;
{ revision = 4; revision = 4;
sha256 = "02jgy0lvi5ymkdxwjasg50zl03zmyj8sgnfxxnjnbmif72c0k4p8"; })) sha256 = "02jgy0lvi5ymkdxwjasg50zl03zmyj8sgnfxxnjnbmif72c0k4p8";
}

View file

@ -1,6 +1,7 @@
args: with args; { fetchurl, stdenv, texinfo }:
((import ./common.nix) import ./common.nix {
(args // inherit fetchurl stdenv texinfo;
{ revision = 5; revision = 5;
sha256 = "1s2wcslwcgb9j89vjn7qs63qlnsv1481jaw1sgg33fgbgk6a8wrk"; })) sha256 = "1s2wcslwcgb9j89vjn7qs63qlnsv1481jaw1sgg33fgbgk6a8wrk";
}

View file

@ -1,38 +1,38 @@
args: with args; { stdenv, fetchurl, wrapFonts }:
let let
srcA= srcA = fetchurl {
fetchurl { url = http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts.tar.gz;
url = http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts.tar.gz; sha256 = "12hgizg25fzmk10wjl0c88x97h3pg5r9ga122s3y28wixz6x2bvh";
sha256 = "12hgizg25fzmk10wjl0c88x97h3pg5r9ga122s3y28wixz6x2bvh"; };
};
srcB= srcB = fetchurl {
fetchurl { url = http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts-asian.tar.gz;
url = http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts-asian.tar.gz; sha256 = "0ibjy4xpz5j373hsdr8bx99czfpclqmviwwv768j8n7z12z3wa51";
sha256 = "0ibjy4xpz5j373hsdr8bx99czfpclqmviwwv768j8n7z12z3wa51"; };
};
srcC= srcC = fetchurl {
fetchurl { url = http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts-75dpi100dpi.tar.gz;
url = http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts-75dpi100dpi.tar.gz; sha256 = "08vqr8yb636xa1s28vf3pm22dzkia0gisvsi2svqjqh4kk290pzh";
sha256 = "08vqr8yb636xa1s28vf3pm22dzkia0gisvsi2svqjqh4kk290pzh"; };
};
in in
wrapFonts (stdenv.mkDerivation { wrapFonts (stdenv.mkDerivation {
name = "ucs-fonts";
phases = ["installPhase"];
installPhase = ''
tar xf ${srcA}
tar xf ${srcB}
tar xf ${srcC}
mkdir -p $out/share/fonts/ucs-fonts
cp *.bdf $out/share/fonts/ucs-fonts
'';
name = "ucs-fonts"; meta = {
phases = ["installPhase"]; description = "Unicode bitmap fonts";
installPhase = '' };
tar xf ${srcA}
tar xf ${srcB}
tar xf ${srcC}
mkdir -p $out/share/fonts/ucs-fonts
cp *.bdf $out/share/fonts/ucs-fonts
'';
meta = {
description = "Unicode bitmap fonts";
src = [srcA srcB srcC];
};
}) })

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "adobe-flex-sdk-4.0.0.14159-mpl"; name = "adobe-flex-sdk-4.0.0.14159-mpl";
@ -8,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "1x12sji6g42bm1h7jndkda5vpah6vnkpc13qwq0c4xvbsh8757v5"; sha256 = "1x12sji6g42bm1h7jndkda5vpah6vnkpc13qwq0c4xvbsh8757v5";
}; };
phases="installPhase"; phases = "installPhase";
buildInputs = [ unzip ]; buildInputs = [ unzip ];
@ -32,8 +33,8 @@ stdenv.mkDerivation rec {
''; '';
meta = { meta = {
description = "flex sdk flash / action script developement kit"; description = "flex sdk flash / action script developement kit";
homepage = "http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_sdk.html#installation"; homepage = "http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_sdk.html#installation";
license = "MPLv1.1"; # Mozilla Public License Version 1.1 license = "MPLv1.1"; # Mozilla Public License Version 1.1
}; };
} }

View file

@ -1,19 +1,20 @@
args: with args; { stdenv, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "fpc-2.4.0-binary"; name = "fpc-2.4.0-binary";
src = if stdenv.system == "i686-linux" then src =
fetchurl { if stdenv.system == "i686-linux" then
url = "ftp://ftp.chg.ru/pub/lang/pascal/fpc/dist/2.4.0/i386-linux/fpc-2.4.0.i386-linux.tar"; fetchurl {
sha256 = "1zas9kp0b36zxqvb9i4idh2l0nb6qpmgah038l77w6las7ghh0dv"; url = "ftp://ftp.chg.ru/pub/lang/pascal/fpc/dist/2.4.0/i386-linux/fpc-2.4.0.i386-linux.tar";
} sha256 = "1zas9kp0b36zxqvb9i4idh2l0nb6qpmgah038l77w6las7ghh0dv";
else if stdenv.system == "x86_64-linux" then }
fetchurl { else if stdenv.system == "x86_64-linux" then
url = "ftp://ftp.chg.ru/pub/lang/pascal/fpc/dist/2.4.0/x86_64-linux/fpc-2.4.0.x86_64-linux.tar"; fetchurl {
sha256 = "111d11g5ra55hjywx64ldwwflpimsy8zryvap68v0309nyd23f0z"; url = "ftp://ftp.chg.ru/pub/lang/pascal/fpc/dist/2.4.0/x86_64-linux/fpc-2.4.0.x86_64-linux.tar";
} sha256 = "111d11g5ra55hjywx64ldwwflpimsy8zryvap68v0309nyd23f0z";
else null; }
else throw "Not supported on ${stdenv.system}.";
builder = ./binary-builder.sh; builder = ./binary-builder.sh;

View file

@ -1,8 +1,6 @@
args: { stdenv, fetchurl, gawk }:
if args ? startFPC && args.startFPC != null then let startFPC = import ./binary.nix { inherit stdenv fetchurl; }; in
with args;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "2.4.0"; version = "2.4.0";
@ -13,10 +11,10 @@ stdenv.mkDerivation rec {
sha256 = "1m2g2bafjixbwl5b9lna5h7r56y1rcayfnbp8kyjfd1c1ymbxaxk"; sha256 = "1m2g2bafjixbwl5b9lna5h7r56y1rcayfnbp8kyjfd1c1ymbxaxk";
}; };
buildInputs = [startFPC gawk]; buildInputs = [ startFPC gawk ];
preConfigure = preConfigure =
if system == "i686-linux" || system == "x86_64-linux" then '' if stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux" then ''
sed -e "s@'/lib/ld-linux[^']*'@'''@" -i fpcsrc/compiler/systems/t_linux.pas sed -e "s@'/lib/ld-linux[^']*'@'''@" -i fpcsrc/compiler/systems/t_linux.pas
'' else ""; '' else "";
@ -38,5 +36,3 @@ stdenv.mkDerivation rec {
platforms = stdenv.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
} }
else (import ./default.nix (args // {startFPC = (import ./binary.nix args);}))

View file

@ -1,24 +1,26 @@
args: with args; { composableDerivation, fetchurl }:
let edf = composableDerivation.edf; let edf = composableDerivation.edf;
wwf = composableDerivation.wwf; in wwf = composableDerivation.wwf; in
composableDerivation.composableDerivation {} { composableDerivation.composableDerivation {} {
name = "hugs98";
name="hugs98";
src = fetchurl { src = fetchurl {
url = http://cvs.haskell.org/Hugs/downloads/2006-09/hugs98-Sep2006.tar.gz; url = http://cvs.haskell.org/Hugs/downloads/2006-09/hugs98-Sep2006.tar.gz;
sha256 = "3cf4d27673564cffe691bd14032369f646233f14daf2bc37c6c6df9f062b46b6"; sha256 = "3cf4d27673564cffe691bd14032369f646233f14daf2bc37c6c6df9f062b46b6";
}; };
#encode all character I/O using the byte encoding #encode all character I/O using the byte encoding
#determined by the locale in effect at that time. To #determined by the locale in effect at that time. To
#require that the UTF-8 encoding is always used, give #require that the UTF-8 encoding is always used, give
#the --enable-char-encoding=utf8 option. #the --enable-char-encoding=utf8 option.
#[default=autodetect] #[default=autodetect]
postUnpack = '' postUnpack = ''
find -type f | xargs sed -i 's@/bin/cp@cp@'; find -type f | xargs sed -i 's@/bin/cp@cp@';
''; '';
configurePhase="./configure --prefix=\$out --enable-char-encoding=utf8 $configureFlags";
configurePhase = "./configure --prefix=\$out --enable-char-encoding=utf8 $configureFlags";
flags = flags =
edf { name = "pathCanonicalization"; feat="path-canonicalization"; } edf { name = "pathCanonicalization"; feat="path-canonicalization"; }
@ -39,16 +41,13 @@ composableDerivation.composableDerivation {} {
cfg = { cfg = {
largeBannerSupport = true; # seems to be default largeBannerSupport = true; # seems to be default
char = { cfgOption = "--enable-char-encoding"; blocks = "utf8"; };
utf8 = { cfgOption = "--enable-char-encoding=utf8"; blocks="char"; };
char = { cfgOption = "--enable-char-encoding"; blocks = "utf8"; }; };
utf8 = { cfgOption = "--enable-char-encoding=utf8"; blocks="char"; };
};
meta = { meta = {
license = "as-is"; # gentoo is calling it this way.. license = "as-is"; # gentoo is calling it this way..
description = "The HUGS98 Haskell <interpreter"; description = "The HUGS 98 Haskell interpreter";
homepage = http://www.haskell.org/hugs; homepage = http://www.haskell.org/hugs;
}; };
} }

View file

@ -1,4 +1,4 @@
args: with args; { stdenv, fetchurl, x11 }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "ocaml-3.08.0"; name = "ocaml-3.08.0";

View file

@ -1,16 +0,0 @@
args: with args;
stdenv.mkDerivation {
name = "ocaml-3.09.1";
builder = ./builder.sh;
src = fetchurl {
url = http://caml.inria.fr/pub/distrib/ocaml-3.09/ocaml-3.09.1.tar.gz;
md5 = "c73f4b093e27ba5bf13d62923f89befc";
};
configureScript = ./configure-3.09.1;
dontAddPrefix = "True";
configureFlags = ["-no-tk" "-x11lib" x11];
buildFlags = ["world" "bootstrap" "opt"];
checkTarget = ["opt.opt"];
buildInputs = [x11 ncurses];
}

View file

@ -1,4 +1,4 @@
args: with args; { stdenv, fetchurl, x11, ncurses }:
stdenv.mkDerivation (rec { stdenv.mkDerivation (rec {

View file

@ -1,11 +1,12 @@
args: with args; { stdenv, fetchurl, ncurses, x11 }:
let let
useX11 = (stdenv.system != "armv5tel-linux"); useX11 = stdenv.system != "armv5tel-linux";
useNativeCompilers = (stdenv.system != "armv5tel-linux"); useNativeCompilers = stdenv.system != "armv5tel-linux";
inherit (stdenv.lib) optionals optionalString; inherit (stdenv.lib) optionals optionalString;
in in
stdenv.mkDerivation (rec {
stdenv.mkDerivation rec {
name = "ocaml-3.11.1"; name = "ocaml-3.11.1";
@ -49,4 +50,4 @@ stdenv.mkDerivation (rec {
''; '';
}; };
}) }

View file

@ -1,4 +1,4 @@
args: with args; { stdenv, fetchurl }:
# at runtime, need jre or jdk # at runtime, need jre or jdk

View file

@ -1,18 +1,23 @@
args: with args; { stdenv, fetchurl, perl, gnum4, ncurses, openssl }:
let version = "R13B"; in let version = "R13B"; in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "erlang-" + version; name = "erlang-" + version;
src = fetchurl { src = fetchurl {
url = "http://www.erlang.org/download/otp_src_" + version + ".tar.gz"; url = "http://www.erlang.org/download/otp_src_" + version + ".tar.gz";
sha256 = "112889v9axhrk9x9swcgql5kpj19p14504m06h4n7b99irzxf4rg"; sha256 = "112889v9axhrk9x9swcgql5kpj19p14504m06h4n7b99irzxf4rg";
}; };
buildInputs = [perl gnum4 ncurses openssl];
buildInputs = [ perl gnum4 ncurses openssl ];
patchPhase = '' sed -i "s@/bin/rm@rm@" lib/odbc/configure erts/configure ''; patchPhase = '' sed -i "s@/bin/rm@rm@" lib/odbc/configure erts/configure '';
preConfigure = '' preConfigure = ''
export HOME=$PWD/../ export HOME=$PWD/../
sed -e s@/bin/pwd@pwd@g -i otp_build sed -e s@/bin/pwd@pwd@g -i otp_build
''; '';
configureFlags = "--with-ssl=${openssl}"; configureFlags = "--with-ssl=${openssl}";
} }

View file

@ -1,18 +1,23 @@
args: with args; { stdenv, fetchurl, perl, gnum4, ncurses, openssl }:
let version = "R14A"; in let version = "R14A"; in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "erlang-" + version; name = "erlang-" + version;
src = fetchurl { src = fetchurl {
url = "http://www.erlang.org/download/otp_src_" + version + ".tar.gz"; url = "http://www.erlang.org/download/otp_src_" + version + ".tar.gz";
sha256 = "170n5p6al1bxwngdmafm1c6892xjxppb96gzgki9gfb0mla6li73"; sha256 = "170n5p6al1bxwngdmafm1c6892xjxppb96gzgki9gfb0mla6li73";
}; };
buildInputs = [perl gnum4 ncurses openssl];
buildInputs = [ perl gnum4 ncurses openssl ];
patchPhase = '' sed -i "s@/bin/rm@rm@" lib/odbc/configure erts/configure ''; patchPhase = '' sed -i "s@/bin/rm@rm@" lib/odbc/configure erts/configure '';
preConfigure = '' preConfigure = ''
export HOME=$PWD/../ export HOME=$PWD/../
sed -e s@/bin/pwd@pwd@g -i otp_build sed -e s@/bin/pwd@pwd@g -i otp_build
''; '';
configureFlags = "--with-ssl=${openssl}"; configureFlags = "--with-ssl=${openssl}";
} }

View file

@ -1,4 +1,4 @@
args: with args; { stdenv, fetchurl, unzip }:
# at runtime, need jdk # at runtime, need jdk
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
phases = "unpackPhase installPhase"; phases = "unpackPhase installPhase";
buildInputs = [unzip]; buildInputs = [ unzip ];
meta = { meta = {
description = "An agile dynamic language for the Java Platform"; description = "An agile dynamic language for the Java Platform";

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "jruby-1.1.6"; name = "jruby-1.1.6";
@ -7,12 +8,11 @@ stdenv.mkDerivation {
sha256 = "1q3cjshxk484i8gqxm682bxcrps7205nl9vlim4s6z827bjlmc4a"; sha256 = "1q3cjshxk484i8gqxm682bxcrps7205nl9vlim4s6z827bjlmc4a";
}; };
buildInputs = [];
installPhase = '' ensureDir $out; cp -r * $out ''; installPhase = '' ensureDir $out; cp -r * $out '';
meta = { meta = {
description = "ruby interpreter written in Java"; description = "Ruby interpreter written in Java";
homepage = http://jruby.codehaus.org/; homepage = http://jruby.codehaus.org/;
license = "CPL-1.0 GPL-2 LGPL-2.1"; # one of those license = "CPL-1.0 GPL-2 LGPL-2.1"; # one of those
}; };
} }

View file

@ -1,13 +1,14 @@
args: with args; { stdenv, fetchurl, php, autoconf, automake }:
stdenv.mkDerivation {
name = "php-xdebug";
src = args.fetchurl { stdenv.mkDerivation {
name = "php-xdebug-2.0.5";
src = fetchurl {
url = "http://xdebug.org/files/xdebug-2.0.5.tgz"; url = "http://xdebug.org/files/xdebug-2.0.5.tgz";
sha256 = "1cmq7c36gj8n41mfq1wba5rij8j77yqhydpcsbcysk1zchg68f26"; sha256 = "1cmq7c36gj8n41mfq1wba5rij8j77yqhydpcsbcysk1zchg68f26";
}; };
buildInputs = [php autoconf automake]; buildInputs = [ php autoconf automake ];
configurePhase = '' configurePhase = ''
phpize phpize
@ -25,10 +26,10 @@ stdenv.mkDerivation {
''; '';
meta = { meta = {
description = "php debugger and profiler extension"; description = "PHP debugger and profiler extension";
homepage = http://xdebug.org/; homepage = http://xdebug.org/;
license = "xdebug"; # based on PHP-3 license = "xdebug"; # based on PHP-3
maintainers = [stdenv.lib.maintainers.marcweber]; maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = stdenv.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
args: with args; { stdenv, fetchurl, builderDefs, python }:
let let

View file

@ -1,4 +1,4 @@
args: with args; { stdenv, fetchurl, builderDefs, python }:
let let

View file

@ -1,10 +1,11 @@
args: with args; { stdenv, fetchurl, readline }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "spidermonkey-1.7"; name = "spidermonkey-1.7";
src = fetchurl { src = fetchurl {
url = ftp://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz; url = ftp://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz;
sha256 = "12v6v2ccw1y6ng3kny3xw0lfs58d1klylqq707k0x04m707kydj4"; sha256 = "12v6v2ccw1y6ng3kny3xw0lfs58d1klylqq707k0x04m707kydj4";
}; };
buildInputs = [ readline ]; buildInputs = [ readline ];
@ -13,8 +14,12 @@ stdenv.mkDerivation rec {
makefileExtra = ./Makefile.extra; makefileExtra = ./Makefile.extra;
makefile = "Makefile.ref"; makefile = "Makefile.ref";
patchPhase = "cat ${makefileExtra} >> ${makefile};
sed -e 's/ -ltermcap/ -lncurses/' -i ${makefile}"; patchPhase =
''
cat ${makefileExtra} >> ${makefile}
sed -e 's/ -ltermcap/ -lncurses/' -i ${makefile}
'';
makeFlags="-f ${makefile} JS_DIST=\${out} BUILD_OPT=1 JS_READLINE=1"; makeFlags = "-f ${makefile} JS_DIST=\${out} BUILD_OPT=1 JS_READLINE=1";
} }

View file

@ -1,4 +1,4 @@
args: with args; { stdenv, fetchurl, SDL, libogg, libvorbis }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "SDL_mixer"; pname = "SDL_mixer";

View file

@ -1,4 +1,4 @@
args: with args; { stdenv, fetchurl, SDL }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "SDL_net"; pname = "SDL_net";

View file

@ -1,4 +1,4 @@
args: with args; { stdenv, fetchurl, SDL, freetype }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "SDL_ttf-2.0.9"; name = "SDL_ttf-2.0.9";

View file

@ -1,6 +1,8 @@
# set VAMP_PATH ? # set VAMP_PATH ?
# plugins availible on sourceforge and http://www.vamp-plugins.org/download.html (various licenses) # plugins availible on sourceforge and http://www.vamp-plugins.org/download.html (various licenses)
args: with args;
{ stdenv, fetchurl, pkgconfig, libsndfile }:
rec { rec {
vampSDK = stdenv.mkDerivation { vampSDK = stdenv.mkDerivation {
@ -17,8 +19,8 @@ rec {
description = "Audio processing plugin system for plugins that extract descriptive information from audio data"; description = "Audio processing plugin system for plugins that extract descriptive information from audio data";
homepage = http://sourceforge.net/projects/vamp; homepage = http://sourceforge.net/projects/vamp;
license = "BSD"; license = "BSD";
maintainers = [args.lib.maintainers.marcweber]; maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = args.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
}; };

View file

@ -1,17 +1,16 @@
args: { stdenv, fetchurl }:
args.stdenv.mkDerivation {
stdenv.mkDerivation {
name = "babl-0.0.22"; name = "babl-0.0.22";
src = args.fetchurl { src = fetchurl {
url = ftp://ftp.gtk.org/pub/babl/0.0/babl-0.0.22.tar.bz2; url = ftp://ftp.gtk.org/pub/babl/0.0/babl-0.0.22.tar.bz2;
sha256 = "0v8gbf9si4sd06199f8lfmrsbvi6i0hxphd34kyvsj6g2kkkg10s"; sha256 = "0v8gbf9si4sd06199f8lfmrsbvi6i0hxphd34kyvsj6g2kkkg10s";
}; };
buildInputs =(with args; []);
meta = { meta = {
description = "image pixel format coneversion libraray"; description = "Image pixel format conversion library";
homepage = http://gegl.org/babl/; homepage = http://gegl.org/babl/;
license = "GPL3"; license = "GPL3";
}; };
} }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, pkgconfig }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "boolstuff-0.1.12"; name = "boolstuff-0.1.12";
@ -7,13 +8,13 @@ stdenv.mkDerivation {
sha256 = "0h39civar6fjswaf3bn1r2ddj589rya0prd6gzsyv3qzr9srprq9"; sha256 = "0h39civar6fjswaf3bn1r2ddj589rya0prd6gzsyv3qzr9srprq9";
}; };
buildInputs = [pkgconfig]; buildInputs = [ pkgconfig ];
meta = { meta = {
description = "operations on boolean expression binary trees"; description = "Library for operations on boolean expression binary trees";
homepage = http://perso.b2b2c.ca/sarrazip/dev/boolstuff.html; homepage = http://perso.b2b2c.ca/sarrazip/dev/boolstuff.html;
license = "GPL"; license = "GPL";
maintainers = [args.lib.maintainers.marcweber]; maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = args.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, openssl, pkgconfig, libgcrypt, commoncpp2 }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "ccrtp-1.7.1"; name = "ccrtp-1.7.1";
@ -7,13 +8,13 @@ stdenv.mkDerivation {
sha256 = "0psi91r0fgawpa5x4jiq7lkr180agdi25gi0mfriqcmykxg7r1jn"; sha256 = "0psi91r0fgawpa5x4jiq7lkr180agdi25gi0mfriqcmykxg7r1jn";
}; };
buildInputs = [openssl pkgconfig libgcrypt commoncpp2]; buildInputs = [ openssl pkgconfig libgcrypt commoncpp2 ];
meta = { meta = {
description = "GNU ccRTP is an implementation of RTP, the real-time transport protocol from the IETF"; description = "GNU ccRTP is an implementation of RTP, the real-time transport protocol from the IETF";
homepage = "http://www.gnu.org/software/ccrtp/"; homepage = "http://www.gnu.org/software/ccrtp/";
license = "GPLv2"; license = "GPLv2";
maintainers = [args.lib.maintainers.marcweber]; maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = args.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, ilmbase }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "ctl-1.4.1"; name = "ctl-1.4.1";
@ -7,8 +8,12 @@ stdenv.mkDerivation {
sha256 = "16lzgbpxdyhykdwndj1i9vx3h4bfkxqqcrvasvgg70gb5raxj0mj"; sha256 = "16lzgbpxdyhykdwndj1i9vx3h4bfkxqqcrvasvgg70gb5raxj0mj";
}; };
propagatedBuildInputs = [ilmbase]; patches = [ ./patch.patch ];
configureFlags="--with-ilmbase-prefix=${ilmbase}";
propagatedBuildInputs = [ ilmbase ];
configureFlags = "--with-ilmbase-prefix=${ilmbase}";
#configurePhase = " #configurePhase = "
#export CXXFLAGS=\"-I${ilmbase}/include -L${ilmbase}/lib\" #export CXXFLAGS=\"-I${ilmbase}/include -L${ilmbase}/lib\"
#echo $CXXFLAGS #echo $CXXFLAGS
@ -16,10 +21,9 @@ stdenv.mkDerivation {
#"; #";
meta = { meta = {
description = "Color Transformation Language"; description = "Color Transformation Language";
homepage = http://ampasctl.sourceforge.net; homepage = http://ampasctl.sourceforge.net;
license = "SOME OPEN SOURCE LICENSE"; # TODO which exactly is this? license = "SOME OPEN SOURCE LICENSE"; # TODO which exactly is this?
}; };
patches = [ ./patch.patch ];
} }

View file

@ -1,19 +1,20 @@
args: { stdenv, fetchurl, autoconf, automake, libtool }:
args.stdenv.mkDerivation {
stdenv.mkDerivation {
name = "faac-1.26"; name = "faac-1.26";
src = args.fetchurl { src = fetchurl {
url = http://downloads.sourceforge.net/faac/faac-1.26.tar.gz; url = http://downloads.sourceforge.net/faac/faac-1.26.tar.gz;
sha256 = "0ld9d8mn3yp90japzkqkicmjcggi7d8y9gn7cl1jdsb74bif4j2b"; sha256 = "0ld9d8mn3yp90japzkqkicmjcggi7d8y9gn7cl1jdsb74bif4j2b";
}; };
preConfigure = "./bootstrap"; preConfigure = "./bootstrap";
buildInputs =(with args; [autoconf automake libtool]); buildInputs = [ autoconf automake libtool ];
meta = { meta = {
description="open source MPEG-4 and MPEG-2 AAC encoder"; description = "Open source MPEG-4 and MPEG-2 AAC encoder";
homepage = http://www.audiocoding.com/faac.html; homepage = http://www.audiocoding.com/faac.html;
license = "LGPL"; license = "LGPL";
}; };
} }

View file

@ -1,18 +1,16 @@
args: { stdenv, fetchurl }:
args.stdenv.mkDerivation rec {
stdenv.mkDerivation rec {
name = "fcgi-2.4.0"; name = "fcgi-2.4.0";
src = args.fetchurl { src = fetchurl {
name = name + ".tar.gz";
url = http://www.fastcgi.com/dist/fcgi.tar.gz; url = http://www.fastcgi.com/dist/fcgi.tar.gz;
sha256 = "1f857wnl1d6jfrgfgfpz3zdaj8fch3vr13mnpcpvy8bang34bz36"; sha256 = "1f857wnl1d6jfrgfgfpz3zdaj8fch3vr13mnpcpvy8bang34bz36";
}; };
buildInputs =(with args; []);
meta = { meta = {
description = "FastCGI is a language independent, scalable, open extension to CG"; description = "FastCGI is a language independent, scalable, open extension to CG";
homepage = http://www.fastcgi.com/; homepage = http://www.fastcgi.com/;
license = "FastCGI see LICENSE.TERMS"; license = "FastCGI see LICENSE.TERMS";
}; };
} }

View file

@ -1,4 +1,4 @@
args: with args; { stdenv, fetchurl, python, pkgconfig, glib }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gamin-0.1.9"; name = "gamin-0.1.9";
@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
sha256 = "0fgjfyr0nlkpdxj94a4qfm82wypljdyv1b6l56v7i9jdx0hcdqhr"; sha256 = "0fgjfyr0nlkpdxj94a4qfm82wypljdyv1b6l56v7i9jdx0hcdqhr";
}; };
buildInputs = [python pkgconfig glib]; buildInputs = [ python pkgconfig glib ];
# `_GNU_SOURCE' is needed, e.g., to get `struct ucred' from # `_GNU_SOURCE' is needed, e.g., to get `struct ucred' from
# <sys/socket.h> with Glibc 2.9. # <sys/socket.h> with Glibc 2.9.

View file

@ -1,18 +1,15 @@
args: with args; { stdenv, fetchurl, composableDerivation, unzip, libjpeg, libtiff, zlib
, postgresql, mysql, libgeotiff }:
let inherit (args.composableDerivation) composableDerivation edf wwf; in
composableDerivation {} ( fixed : {
composableDerivation.composableDerivation {} (fixed: {
name = "gdal-1.7.1"; name = "gdal-1.7.1";
src = fetchurl { src = fetchurl {
url = ftp://ftp.remotesensing.org/gdal/gdal171.zip; url = ftp://ftp.remotesensing.org/gdal/gdal171.zip;
md5 = "f5592cff69b239166c9b64ff81943b1a"; md5 = "f5592cff69b239166c9b64ff81943b1a";
}; };
buildInputs = [unzip libjpeg]; buildInputs = [ unzip libjpeg ];
# don't use optimization for gcc >= 4.3. That's said to be causeing segfaults # don't use optimization for gcc >= 4.3. That's said to be causeing segfaults
preConfigure = "export CFLAGS=-O0; export CXXFLAGS=-O0"; preConfigure = "export CFLAGS=-O0; export CXXFLAGS=-O0";
@ -27,78 +24,11 @@ composableDerivation {} ( fixed : {
"--with-geotiff=${libgeotiff}" "--with-geotiff=${libgeotiff}"
]; ];
/* TODO
# --with-grass=ARG Include GRASS support (GRASS 5.7+, ARG=GRASS install tree dir)
# --with-libgrass=ARG Include GRASS support based on libgrass (GRASS 5.0+)
--with-cfitsio=ARG Include FITS support (ARG=no or libcfitsio path)
--with-pcraster=ARG Include PCRaster (libcsf) support (ARG=internal, no or path)
--with-netcdf=ARG Include netCDF support (ARG=no or netCDF tree prefix)
--with-png=ARG Include PNG support (ARG=internal, no or path)
--with-pcidsk=ARG Path to external PCIDSK SDK, or internal (default), or old
--with-libtiff=ARG Libtiff library to use (ARG=internal, yes or path)
--with-jpeg=ARG Include JPEG support (ARG=internal, no or path)
--without-jpeg12 Disable JPEG 8/12bit TIFF support
--with-gif=ARG Include GIF support (ARG=internal, no or path)
--with-ogdi=ARG Include OGDI support (ARG=path)
--with-fme=ARG Include FMEObjects support (ARG=FME_HOME path)
--with-hdf4=ARG Include HDF4 support (ARG=path)
--with-hdf5=ARG Include HDF5 support (ARG=path)
--with-jasper=ARG Include JPEG-2000 support via JasPer library (ARG=path)
--with-ecw=ARG Include ECW support (ARG=ECW SDK Path, yes or no)
--with-kakadu=ARG Include Kakadu/JPEG2000 support
--with-mrsid=ARG Include MrSID support (ARG=path to MrSID DSDK or no)
--with-jp2mrsid=ARG Enable MrSID JPEG2000 support (ARG=yes/no)
--with-msg=ARG Enable MSG driver (ARG=yes or no)
--without-bsb Disable BSB driver (legal issues pending
--with-oci=[ARG] use Oracle OCI API from given Oracle home
(ARG=path); use existing ORACLE_HOME (ARG=yes);
disable Oracle OCI support (ARG=no)
--with-oci-include=[DIR]
use Oracle OCI API headers from given path
--with-oci-lib=[DIR] use Oracle OCI API libraries from given path
--without-grib Disable GRIB driver
--without-ogr Don't build OGR into shared library
--with-ingres=ARG Include Ingres (ARG=$II_SYSTEM)
--with-xerces=[ARG] use Xerces C++ Parser from given prefix (ARG=path);
check standard prefixes (ARG=yes); disable (ARG=no)
--with-xerces-inc=[DIR] path to Xerces C++ Parser headers
--with-xerces-lib=[ARG] link options for Xerces C++ Parser libraries
--with-expat=[ARG] use Expat XML Parser from given prefix (ARG=path);
check standard prefixes (ARG=yes); disable (ARG=no)
--with-expat-inc=[DIR] path to Expat XML Parser headers
--with-expat-lib=[ARG] link options for Expat XML Parser libraries
--with-odbc=ARG Include ODBC support (ARG=no or path)
--with-dods-root=ARG Include DODS support (ARG=no or absolute path)
--with-curl=ARG Include curl (ARG=path to curl-config.)
--with-spatialite=ARG Include SpatiaLite support (ARG=no or path)
--with-sqlite3=[ARG] use SQLite 3 library [default=yes], optionally
specify the prefix for sqlite3 library
--with-dwgdirect=path Include DWG direct support
--with-dwg-plt=platform DWGdirect Platform, defaults to lnxX86
--with-idb=DIR Include Informix DataBlade support (DIR points to Informix root)
--with-sde=DIR Include ESRI SDE support (DIR is SDE's install dir).
--with-sde-version=VERSION NUMBER Set ESRI SDE version number (Default is 80).
--without-vfk Disable VFK support
--with-epsilon=ARG Include EPSILON support (ARG=no, yes or libepsilon install root path)
--with-geos=ARG Include GEOS support (ARG=yes, no or geos-config
path)
--without-pam Disable PAM (.aux.xml) support
--with-static-proj4=ARG Compile with PROJ.4 statically (ARG=no or path)
--with-gdal-ver=ARG Override GDAL version
--with-macosx-framework Build and install GDAL as a Mac OS X Framework
--with-perl Enable perl bindings
--with-php Enable php bindings
--with-ruby Enable Ruby bindings
--with-python Enable python bindings
--with-pymoddir=ARG Override Old-gen Python package install dir
*/
meta = { meta = {
description = "translator library for raster geospatial data formats"; description = "Translator library for raster geospatial data formats";
homepage = http://www.gdal.org/; homepage = http://www.gdal.org/;
license = "X/MIT"; license = "X/MIT";
maintainers = [stdenv.lib.maintainers.marcweber]; maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = stdenv.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
}) })

View file

@ -1,17 +1,16 @@
args: { stdenv, fetchurl }:
args.stdenv.mkDerivation {
stdenv.mkDerivation {
name = "gmm-3.0"; name = "gmm-3.0";
src = args.fetchurl { src = fetchurl {
url = http://download.gna.org/getfem/stable/gmm-3.0.tar.gz; url = http://download.gna.org/getfem/stable/gmm-3.0.tar.gz;
sha256 = "1lc34w68s0rhii6caklvq2pyc3jaa4g6kza948ya8ha6rr8d1ypp"; sha256 = "1lc34w68s0rhii6caklvq2pyc3jaa4g6kza948ya8ha6rr8d1ypp";
}; };
buildInputs =(with args; []);
meta = { meta = {
description = "generic C++ template library for sparse, dense and skyline matrices"; description = "Generic C++ template library for sparse, dense and skyline matrices";
homepage = http://home.gna.org/getfem/gmm_intro.html; homepage = http://home.gna.org/getfem/gmm_intro.html;
license = "LGLP2.1"; # or later license = "LGLP2.1"; # or later
}; };
} }

View file

@ -1,4 +1,4 @@
args: with args; { stdenv, msilbc }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "ilbc-rfc3951"; name = "ilbc-rfc3951";
@ -8,7 +8,7 @@ stdenv.mkDerivation {
src = stdenv.mkDerivation { src = stdenv.mkDerivation {
name = "ilbc-rfc3951.tar.gz"; name = "ilbc-rfc3951.tar.gz";
src = msilbc.src; src = msilbc.src;
outputHashAlgo = "sha256"; outputHashAlgo = "sha256";
outputHash = "0f6scsp72bz2ifscd8c0x57ipcxi2i4a9b4nwlnwx7a7a0hrazhj"; outputHash = "0f6scsp72bz2ifscd8c0x57ipcxi2i4a9b4nwlnwx7a7a0hrazhj";
phases = "unpackPhase installPhase"; phases = "unpackPhase installPhase";
installPhase = "cp ilbc-rfc3951.tar.gz \${out}"; installPhase = "cp ilbc-rfc3951.tar.gz \${out}";

View file

@ -1,10 +1,12 @@
args: with args; { stdenv, fetchurl, x11, libjpeg, libtiff, libungif, libpng, bzip2 }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "imlib2-1.3.0"; name = "imlib2-1.3.0";
src = fetchurl { src = fetchurl {
url = mirror://sourceforge/enlightenment/imlib2-1.3.0.tar.gz; url = mirror://sourceforge/enlightenment/imlib2-1.3.0.tar.gz;
sha256 = "1lrg7haqhmzpdb14cgp9vny5fanlwlyhf5n017v130in297gv1qj"; sha256 = "1lrg7haqhmzpdb14cgp9vny5fanlwlyhf5n017v130in297gv1qj";
}; };
buildInputs = [x11 libjpeg libtiff libungif libpng bzip2];
buildInputs = [ x11 libjpeg libtiff libungif libpng bzip2 ];
} }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, cfitsio, libusb, zlib }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "indilib-0.5"; name = "indilib-0.5";
@ -7,7 +8,7 @@ stdenv.mkDerivation {
sha256 = "02km37m3d2l8c9wnab24zm2k6a3l8h2fali74jhm4z3khwr277ad"; sha256 = "02km37m3d2l8c9wnab24zm2k6a3l8h2fali74jhm4z3khwr277ad";
}; };
propagatedBuildInputs = [cfitsio libusb zlib]; propagatedBuildInputs = [ cfitsio libusb zlib ];
meta = { meta = {
homepage = http://indi.sf.net; homepage = http://indi.sf.net;

View file

@ -1,34 +1,35 @@
args: with args; { stdenv, fetchurl }:
stdenv.mkDerivation rec{ stdenv.mkDerivation rec{
name = "iniparser-3.0b"; name = "iniparser-3.0b";
src = fetchurl { src = fetchurl {
url = "${meta.homepage}/iniparser3.0b.tar.gz"; url = "${meta.homepage}/iniparser3.0b.tar.gz";
sha256 = "09klyddnqlpbgkv4cmh6ww9q5pv6nf1vfmzw4z256p51rnnlqqwa"; sha256 = "09klyddnqlpbgkv4cmh6ww9q5pv6nf1vfmzw4z256p51rnnlqqwa";
}; };
patches = ./no-usr.patch; patches = ./no-usr.patch;
buildFlags = "libiniparser.so"; buildFlags = "libiniparser.so";
installPhase = '' installPhase = ''
ensureDir $out/lib ensureDir $out/lib
cp libiniparser.so.0 $out/lib cp libiniparser.so.0 $out/lib
ln -s libiniparser.so.0 $out/lib/libiniparser.so ln -s libiniparser.so.0 $out/lib/libiniparser.so
ensureDir $out/include ensureDir $out/include
cp src/*.h $out/include cp src/*.h $out/include
ensureDir $out/share/doc/${name} ensureDir $out/share/doc/${name}
for i in AUTHORS INSTALL LICENSE README; do for i in AUTHORS INSTALL LICENSE README; do
bzip2 -c -9 $i > $out/share/doc/${name}/$i.bz2; bzip2 -c -9 $i > $out/share/doc/${name}/$i.bz2;
done; done;
cp -r html $out/share/doc/${name} cp -r html $out/share/doc/${name}
''; '';
meta = { meta = {
homepage = http://ndevilla.free.fr/iniparser; homepage = http://ndevilla.free.fr/iniparser;
description = "Free standalone ini file parsing library"; description = "Free standalone ini file parsing library";
license = "MIT"; license = "MIT";
}; };
} }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, pkgconfig, libraw1394 }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "libavc1394-0.5.3"; name = "libavc1394-0.5.3";
@ -7,12 +8,12 @@ stdenv.mkDerivation {
sha256 = "19i40i3722ilhziknfds3a6w5xzv66fvc68gvbir1p2fvwi6ij93"; sha256 = "19i40i3722ilhziknfds3a6w5xzv66fvc68gvbir1p2fvwi6ij93";
}; };
buildInputs = [pkgconfig]; buildInputs = [ pkgconfig ];
propagatedBuildInputs = [libraw1394]; propagatedBuildInputs = [ libraw1394 ];
meta = { meta = {
description = "programming interface for the 1394 Trade Association AV/C (Audio/Video Control) Digital Interface Command Set"; description = "Programming interface for the 1394 Trade Association AV/C (Audio/Video Control) Digital Interface Command Set";
homepage = http://sourceforge.net/projects/libavc1394/; homepage = http://sourceforge.net/projects/libavc1394/;
license = [ "GPL" "LGPL" ]; license = [ "GPL" "LGPL" ];
}; };
} }

View file

@ -1,6 +1,8 @@
args: with args; { composableDerivation, fetchurl }:
let inherit (args.composableDerivation) composableDerivation edf; in
composableDerivation {} { let inherit (composableDerivation) edf; in
composableDerivation.composableDerivation {} {
flags = { } flags = { }
# TODO! implement flags # TODO! implement flags
@ -14,15 +16,13 @@ composableDerivation {} {
name = "libdv-1.0.0"; name = "libdv-1.0.0";
src = args.fetchurl { src = fetchurl {
url = mirror://sourceforge/libdv/libdv-1.0.0.tar.gz; url = mirror://sourceforge/libdv/libdv-1.0.0.tar.gz;
sha256 = "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3"; sha256 = "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3";
}; };
meta = { meta = {
description = "software decoder for DV format video, as defined by the IEC 61834 and SMPTE 314M standards"; description = "Software decoder for DV format video, as defined by the IEC 61834 and SMPTE 314M standards";
homepage = http://sourceforge.net/projects/libdv/; homepage = http://sourceforge.net/projects/libdv/;
# you can choose one of the following licenses:
license = [];
}; };
} }

View file

@ -1,4 +1,4 @@
args: with args; { stdenv, fetchurl, gettext }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libexif-0.6.16"; name = "libexif-0.6.16";
@ -8,5 +8,5 @@ stdenv.mkDerivation rec {
sha256 = "0hxc3aik3sn8xq4mbmxxb8ycx2lwffmhi5xvz0zjffhfwkaqas6v"; sha256 = "0hxc3aik3sn8xq4mbmxxb8ycx2lwffmhi5xvz0zjffhfwkaqas6v";
}; };
buildInputs = [gettext]; buildInputs = [ gettext ];
} }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, libtiff }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "libgeotiff-1.2.4"; name = "libgeotiff-1.2.4";
@ -7,10 +8,10 @@ stdenv.mkDerivation {
sha256 = "0z2yx77pm0zs81hc0b4lwzdd5s0rxcbylnscgq80b649src1fyzj"; sha256 = "0z2yx77pm0zs81hc0b4lwzdd5s0rxcbylnscgq80b649src1fyzj";
}; };
buildInputs = [libtiff]; buildInputs = [ libtiff ];
meta = { meta = {
description = "library implementing attempt to create a tiff based interchange format for georeferenced raster imagery"; description = "Library implementing attempt to create a tiff based interchange format for georeferenced raster imagery";
homepage = http://www.remotesensing.org/geotiff/geotiff.html; homepage = http://www.remotesensing.org/geotiff/geotiff.html;
license = "X11"; license = "X11";
maintainers = [stdenv.lib.maintainers.marcweber]; maintainers = [stdenv.lib.maintainers.marcweber];

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, zlib, libpng }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "haru-2.1.0"; name = "haru-2.1.0";
@ -9,13 +10,13 @@ stdenv.mkDerivation {
configureFlags = "--with-zlib=${zlib} --with-png=${libpng}"; configureFlags = "--with-zlib=${zlib} --with-png=${libpng}";
buildInputs = [zlib libpng]; buildInputs = [ zlib libpng ];
meta = { meta = {
description = "cross platform, open source library for generating PDF files"; description = "cross platform, open source library for generating PDF files";
homepage = http://libharu.org/wiki/Main_Page; homepage = http://libharu.org/wiki/Main_Page;
license = "ZLIB/LIBPNG"; # see README. license = "ZLIB/LIBPNG"; # see README.
maintainers = [args.lib.maintainers.marcweber]; maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = args.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, pkgconfig, libraw1394 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "1.2.0"; version = "1.2.0";
name = "libiec61883-${version}"; name = "libiec61883-${version}";
@ -9,12 +10,12 @@ stdenv.mkDerivation rec {
sha256 = "7c7879c6b9add3148baea697dfbfdcefffbc8ac74e8e6bcf46125ec1d21b373a"; sha256 = "7c7879c6b9add3148baea697dfbfdcefffbc8ac74e8e6bcf46125ec1d21b373a";
}; };
buildInputs = [pkgconfig]; buildInputs = [ pkgconfig ];
propagatedBuildInputs = [libraw1394];
propagatedBuildInputs = [ libraw1394 ];
meta = { meta = {
description = "TODO"; homepage = http://www.linux1394.org;
homepage = http://www.linux1394.org; license = "LGPL";
license = "LGPL"; };
};
} }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, zlib, libpng, libjpeg, lcms, automake, autoconf, libtool }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "libmng-1.0.10"; name = "libmng-1.0.10";
@ -7,18 +8,15 @@ stdenv.mkDerivation {
sha256 = "06415s40gz833s1v1q7c04c0m49p4sc87ich0vpdid2ldj0pf53v"; sha256 = "06415s40gz833s1v1q7c04c0m49p4sc87ich0vpdid2ldj0pf53v";
}; };
preConfigure = " preConfigure = "unmaintained/autogen.sh";
unmaintained/autogen.sh
#cp makefiles/makefile.linux Makefile
";
buildInputs = [zlib libpng libjpeg lcms automake autoconf libtool]; buildInputs = [ zlib libpng libjpeg lcms automake autoconf libtool ];
meta = { meta = {
description = "THE reference library for reading, displaying, writing and examining Multiple-Image Network Graphics"; description = "Reference library for reading, displaying, writing and examining Multiple-Image Network Graphics";
homepage = http://sourceforge.net/projects/libmng; homepage = http://sourceforge.net/projects/libmng;
license = "zlib/libpng"; license = "zlib/libpng";
maintainers = [args.lib.maintainers.marcweber]; maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = args.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
args: with args; { stdenv, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libnova-0.12.1"; name = "libnova-0.12.1";

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libraw1394-1.3.0"; name = "libraw1394-1.3.0";
@ -8,8 +9,8 @@ stdenv.mkDerivation rec {
}; };
meta = { meta = {
description = "library providing direct access to the IEEE 1394 bus through the Linux 1394 subsystem's raw1394 user space interface"; description = "Library providing direct access to the IEEE 1394 bus through the Linux 1394 subsystem's raw1394 user space interface";
homepage = "http://www.linux1394.org"; homepage = http://www.linux1394.org;
license = ["GPL" "LGPL"]; license = ["GPL" "LGPL"];
}; };
} }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, pkgconfig, librdf_raptor, ladspaH, openssl, zlib }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "liblrdf-0.4.0"; name = "liblrdf-0.4.0";
@ -7,13 +8,13 @@ stdenv.mkDerivation {
sha256 = "015jv7pp0a0qxgljgdvf7d01nj4fx0zgzg0wayjp7v86pa38xscm"; sha256 = "015jv7pp0a0qxgljgdvf7d01nj4fx0zgzg0wayjp7v86pa38xscm";
}; };
buildInputs = [pkgconfig librdf_raptor ladspaH openssl zlib]; buildInputs = [ pkgconfig librdf_raptor ladspaH openssl zlib ];
meta = { meta = {
description = "A lightweight RDF library with special support for LADSPA plugins."; description = "A lightweight RDF library with special support for LADSPA plugins.";
homepage = http://sourceforge.net/projects/lrdf/; homepage = http://sourceforge.net/projects/lrdf/;
license = "GPLv2"; license = "GPLv2";
maintainers = [args.lib.maintainers.marcweber]; maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = args.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, libxml2, curl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "raptor-1.4.21"; name = "raptor-1.4.21";
@ -7,15 +8,13 @@ stdenv.mkDerivation rec {
sha256 = "db3172d6f3c432623ed87d7d609161973d2f7098e3d2233d0702fbcc22cfd8ca"; sha256 = "db3172d6f3c432623ed87d7d609161973d2f7098e3d2233d0702fbcc22cfd8ca";
}; };
buildInputs = [ buildInputs = [ libxml2 curl ];
#optional
libxml2 curl];
meta = { meta = {
description = "The RDF Parser Toolkit"; description = "The RDF Parser Toolkit";
homepage = "http://librdf.org/raptor"; homepage = "http://librdf.org/raptor";
license = "LGPL-2.1 Apache-2.0"; license = "LGPL-2.1 Apache-2.0";
maintainers = [args.lib.maintainers.marcweber]; maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = args.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, librdf_raptor, gmp, pkgconfig, pcre, libxml2 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "rasqal-0.9.19"; name = "rasqal-0.9.19";
@ -7,23 +8,17 @@ stdenv.mkDerivation rec {
sha256 = "a042846e8b7af52d9d66fba788c9d579e58c535cfaf80d33dc0bd69bf6ffeb08"; sha256 = "a042846e8b7af52d9d66fba788c9d579e58c535cfaf80d33dc0bd69bf6ffeb08";
}; };
buildInputs = [ buildInputs = [ librdf_raptor gmp /*or mpfr*/ pkgconfig pcre libxml2 ];
librdf_raptor
gmp /*or mpfr*/
pkgconfig
#optional
pcre libxml2
];
preConfigure = '' preConfigure = ''
export NIX_LDFLAGS="$NIX_LDFLAGS -lraptor" export NIX_LDFLAGS="$NIX_LDFLAGS -lraptor"
''; '';
meta = { meta = {
description = "library that handles Resource Description Framework (RDF)"; description = "Library that handles Resource Description Framework (RDF)";
homepage = "http://librdf.org/rasqal"; homepage = "http://librdf.org/rasqal";
license = "LGPL-2.1 Apache-2.0"; license = "LGPL-2.1 Apache-2.0";
maintainers = [args.lib.maintainers.marcweber]; maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = args.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
} }

View file

@ -1,23 +1,23 @@
args: with args; { stdenv, fetchurl }:
stdenv.mkDerivation {
name = "libsamplerate-0.1.2"; stdenv.mkDerivation rec {
name = "libsamplerate-0.1.7";
src = args.fetchurl { src = fetchurl {
url = http://www.mega-nerd.com/SRC/libsamplerate-0.1.2.tar.gz; url = "http://www.mega-nerd.com/SRC/${name}.tar.gz";
sha256 = "1m1iwzpcny42kcqv5as2nyb0ggrb56wzckpximqpp2y74dipdf4q"; sha256 = "1m1iwzpcny42kcqv5as2nyb0ggrb56wzckpximqpp2y74dipdf4q";
}; };
buildInputs = ["pkgconfig"];
# maybe interesting configure flags: # maybe interesting configure flags:
#--disable-fftw disable usage of FFTW #--disable-fftw disable usage of FFTW
#--disable-cpu-clip disable tricky cpu specific clipper #--disable-cpu-clip disable tricky cpu specific clipper
configurePhase = " configurePhase =
export LIBSAMPLERATE_CFLAGS=\"-I \$libsamplerate/include\" ''
export LIBSAMPLERATE_LIBS=\"-L \$libsamplerate/libs\" export LIBSAMPLERATE_CFLAGS="-I $libsamplerate/include"
./configure --prefix=\$out"; export LIBSAMPLERATE_LIBS="-L $libsamplerate/libs"
./configure --prefix=$out
'';
meta = { meta = {
description = "Sample Rate Converter for audio"; description = "Sample Rate Converter for audio";

View file

@ -1,4 +1,4 @@
args: with args; { stdenv, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libsigsegv-2.5"; name = "libsigsegv-2.5";

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, zlib, imagemagick, libpng, pkgconfig, glib, freetype
, libjpeg, libxml2 }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "libwmf-0.2.8.4"; name = "libwmf-0.2.8.4";
@ -8,7 +9,7 @@ stdenv.mkDerivation {
sha256 = "1y3wba4q8pl7kr51212jwrsz1x6nslsx1gsjml1x0i8549lmqd2v"; sha256 = "1y3wba4q8pl7kr51212jwrsz1x6nslsx1gsjml1x0i8549lmqd2v";
}; };
buildInputs = [zlib imagemagick libpng pkgconfig glib freetype libjpeg libxml2]; buildInputs = [ zlib imagemagick libpng pkgconfig glib freetype libjpeg libxml2 ];
meta = { meta = {
description = "WMF library from wvWare"; description = "WMF library from wvWare";

View file

@ -1,4 +1,4 @@
args: with args; { stdenv, fetchurl, commoncpp2, openssl, pkgconfig, ccrtp }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libzrtpcpp-1.4.1"; name = "libzrtpcpp-1.4.1";
@ -8,13 +8,13 @@ stdenv.mkDerivation rec {
sha256 = "0gj5xiv15xnxdbppa06fy02j8jg0zm1capva4nhbpgzg08n7p8y0"; sha256 = "0gj5xiv15xnxdbppa06fy02j8jg0zm1capva4nhbpgzg08n7p8y0";
}; };
buildInputs = [commoncpp2 openssl pkgconfig ccrtp]; buildInputs = [ commoncpp2 openssl pkgconfig ccrtp ];
meta = { meta = {
description = "GNU RTP stack for the zrtp protocol developed by Phil Zimmermann"; description = "GNU RTP stack for the zrtp protocol developed by Phil Zimmermann";
homepage = "http://www.gnutelephony.org/index.php/GNU_ZRTP"; homepage = "http://www.gnutelephony.org/index.php/GNU_ZRTP";
license = "GPLv2"; license = "GPLv2";
maintainers = [args.lib.maintainers.marcweber]; maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = args.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, cmake, alsaLib }:
stdenv.mkDerivation { stdenv.mkDerivation {
#The current release is still in a testing phase, though it should be stable #The current release is still in a testing phase, though it should be stable
# (neither the ABI or API will break). Please try it out and let me know how it # (neither the ABI or API will break). Please try it out and let me know how it
@ -11,11 +12,11 @@ stdenv.mkDerivation {
sha256 = "162nyv4jy6qzi7s5q3wpdawfph6npyn1n4wjf21haxdxq0mmp6l7"; sha256 = "162nyv4jy6qzi7s5q3wpdawfph6npyn1n4wjf21haxdxq0mmp6l7";
}; };
buildInputs = [cmake alsaLib]; buildInputs = [ cmake alsaLib ];
meta = { meta = {
description = "openal alternative"; description = "OpenAL alternative";
homepage = http://kcat.strangesoft.net/openal.html; homepage = http://kcat.strangesoft.net/openal.html;
license = "GPL2"; license = "GPL2";
}; };
} }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "proj-4.5.0"; name = "proj-4.5.0";
@ -8,8 +9,8 @@ stdenv.mkDerivation {
}; };
meta = { meta = {
description = "Cartographic Projections Library"; description = "Cartographic Projections Library";
homepage = http://proj.maptools.org; homepage = http://proj.maptools.org;
license = "MIT"; license = "MIT";
}; };
} }

View file

@ -1,14 +1,15 @@
args: with args; { stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "pth-2.0.7";
src = fetchurl {
url = "mirror://gnu/pth/${name}.tar.gz";
sha256 = "0ckjqw5kz5m30srqi87idj7xhpw6bpki43mj07bazjm2qmh3cdbj";
};
meta = { stdenv.mkDerivation rec {
description = "The GNU Portable Threads"; name = "pth-2.0.7";
homepage = http://www.gnu.org/software/pth;
}; src = fetchurl {
url = "mirror://gnu/pth/${name}.tar.gz";
sha256 = "0ckjqw5kz5m30srqi87idj7xhpw6bpki43mj07bazjm2qmh3cdbj";
};
meta = {
description = "The GNU Portable Threads library";
homepage = http://www.gnu.org/software/pth;
};
} }

View file

@ -1,11 +1,14 @@
args: with args; { stdenv, fetchurl, ncurses }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "readline-5.2"; name = "readline-5.2";
src = fetchurl { src = fetchurl {
url = mirror://gnu/readline/readline-5.2.tar.gz; url = mirror://gnu/readline/readline-5.2.tar.gz;
sha256 = "0icz4hqqq8mlkwrpczyaha94kns0am9z0mh3a2913kg2msb8vs0j"; sha256 = "0icz4hqqq8mlkwrpczyaha94kns0am9z0mh3a2913kg2msb8vs0j";
}; };
propagatedBuildInputs = [ncurses]; propagatedBuildInputs = [ncurses];
patches = stdenv.lib.optional stdenv.isDarwin ./shobj-darwin.patch; patches = stdenv.lib.optional stdenv.isDarwin ./shobj-darwin.patch;
} }

View file

@ -1,8 +1,10 @@
args: with args; { stdenv, fetchurl, cmake, rLang, zlib }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "biolib"; name = "biolib";
version = "0.0.1"; version = "0.0.1";
src = fetchurl { src = fetchurl {
url = "http://bio3.xparrot.eu/download/nix-biology/biolib-${version}.tar.gz"; url = "http://bio3.xparrot.eu/download/nix-biology/biolib-${version}.tar.gz";
sha256 = "1la639rs0v4f3ayvarqv0yxwlnwn188bb1v71d2ybw1xr6gdy688"; sha256 = "1la639rs0v4f3ayvarqv0yxwlnwn188bb1v71d2ybw1xr6gdy688";
@ -11,11 +13,14 @@ stdenv.mkDerivation rec {
buildInputs = [cmake rLang zlib]; buildInputs = [cmake rLang zlib];
meta = { meta = {
description = "BioLib"; description = "BioLib";
longDescription = ''BioLib brings together a set of opensource libraries longDescription =
written in C/C++ and makes them available for major Bio* languages: BioPerl, ''
BioRuby, BioPython''; BioLib brings together a set of opensource libraries written
license = "GPL2"; in C/C++ and makes them available for major Bio* languages:
homepage = http://biolib.open-bio.org/; BioPerl, BioRuby, BioPython
'';
license = "GPL2";
homepage = http://biolib.open-bio.org/;
}; };
} }

View file

@ -1,7 +1,8 @@
args: with args; { stdenv, fetchurl, gfortran }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "atlas-3.9.11"; name = "atlas-3.9.11";
src = fetchurl { src = fetchurl {
url = mirror://sf/math-atlas/atlas3.9.11.tar.bz2; url = mirror://sf/math-atlas/atlas3.9.11.tar.bz2;
sha256 = "d91e593a772cf540ff693f7d8c43d10c3037eb334c5c77572ea1b6a64a0b9677"; sha256 = "d91e593a772cf540ff693f7d8c43d10c3037eb334c5c77572ea1b6a64a0b9677";
@ -13,11 +14,11 @@ stdenv.mkDerivation {
# the manual says you should pass -fPIC as configure arg .. It works # the manual says you should pass -fPIC as configure arg .. It works
configureFlags = "-Fa alg -fPIC"; configureFlags = "-Fa alg -fPIC";
buildInputs = [gfortran]; buildInputs = [ gfortran ];
meta = { meta = {
description = "Atlas library"; description = "Atlas library";
license = "GPL"; license = "GPL";
homepage = http://math-atlas.sourceforge.net/; homepage = http://math-atlas.sourceforge.net/;
}; };
} }

View file

@ -1,10 +1,12 @@
args: with args; { stdenv, fetchurl, libogg }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "speex-1.2rc1"; name = "speex-1.2rc1";
src = fetchurl { src = fetchurl {
url = "http://downloads.us.xiph.org/releases/speex/${name}.tar.gz"; url = "http://downloads.us.xiph.org/releases/speex/${name}.tar.gz";
sha256 = "19mpkhbz3s08snvndn0h1dk2j139max6b0rr86nnsjmxazf30brl"; sha256 = "19mpkhbz3s08snvndn0h1dk2j139max6b0rr86nnsjmxazf30brl";
}; };
buildInputs = [libogg];
buildInputs = [ libogg ];
} }

View file

@ -1,4 +1,4 @@
args: with args; { stdenv, fetchurl, pkgconfig, libxslt, telepathy_glib, loudmouth }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "telepathy-gabble-0.7.2"; name = "telepathy-gabble-0.7.2";

View file

@ -1,4 +1,4 @@
args: with args; { stdenv, fetchurl, dbus_glib, glib, python, pkgconfig, libxslt }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "telepathy-glib-0.7.0"; name = "telepathy-glib-0.7.0";

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, qt4, dbus, zlib, openssl, readline, perl }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "wvstreams-4.6.1"; name = "wvstreams-4.6.1";
@ -11,13 +12,13 @@ stdenv.mkDerivation {
find -type f | xargs sed -i 's@/bin/bash@bash@g' find -type f | xargs sed -i 's@/bin/bash@bash@g'
''; '';
buildInputs = [qt4 dbus zlib openssl readline perl]; buildInputs = [ qt4 dbus zlib openssl readline perl ];
meta = { meta = {
description = "network programming library in C++"; description = "Network programming library in C++";
homepage = http://alumnit.ca/wiki/index.php?page=WvStreams; homepage = http://alumnit.ca/wiki/index.php?page=WvStreams;
license = "LGPL"; license = "LGPL";
maintainers = [stdenv.lib.maintainers.marcweber]; maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = stdenv.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
} }

View file

@ -17,8 +17,6 @@ args.stdenv.mkDerivation {
sha256 = "058iv3vs6syy01pfkd5894xap9zakjx8ki1bpjdnihn6vk6fr80l"; sha256 = "058iv3vs6syy01pfkd5894xap9zakjx8ki1bpjdnihn6vk6fr80l";
}; };
buildInputs =(with args; []);
phases = "doAll"; phases = "doAll";
# don't call any wired $buildInputs/nix-support/* scripts or such. This makes the build fail # don't call any wired $buildInputs/nix-support/* scripts or such. This makes the build fail

View file

@ -1,17 +1,17 @@
args: { stdenv, fetchurl, unzip }:
args.stdenv.mkDerivation {
stdenv.mkDerivation {
name = "avr8-burn-omat-2.0.1"; name = "avr8-burn-omat-2.0.1";
src = args.fetchurl { src = fetchurl {
url = http://avr8-burn-o-mat.brischalle.de/AVR8_Burn-O-Mat_2_0_1.zip; url = http://avr8-burn-o-mat.brischalle.de/AVR8_Burn-O-Mat_2_0_1.zip;
sha256 = "0nqlrbsx7z5r3b9y9wb6b7wawa3yxwx07zn7l4g4s59scxah2skk"; sha256 = "0nqlrbsx7z5r3b9y9wb6b7wawa3yxwx07zn7l4g4s59scxah2skk";
}; };
buildInputs =(with args; [unzip]); buildInputs = [unzip];
phases = "unpackPhase installPhase"; phases = "unpackPhase installPhase";
# move to nix-support to not create that many symlinks.. # 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) # TODO burnomat tries to read /usr/local/etc/avrdude.conf (but you can edit it within the settings dialog)
installPhase = '' installPhase = ''
@ -25,8 +25,8 @@ args.stdenv.mkDerivation {
''; '';
meta = { meta = {
description = "gui tool for avrdude (nice to set fuse bits)"; description = "GUI tool for avrdude";
homepage = http://avr8-burn-o-mat.brischalle.de/avr8_burn_o_mat_avrdude_gui_en.html; homepage = http://avr8-burn-o-mat.brischalle.de/avr8_burn_o_mat_avrdude_gui_en.html;
license = "GPLv3"; license = "GPLv3";
}; };
} }

View file

@ -1,4 +1,4 @@
args: with args; { stdenv, fetchurl, unzip }:
# at runtime, need jdk # at runtime, need jdk

View file

@ -1,21 +1,22 @@
args: with args; { composableDerivation, fetchurl, yacc, flex, texLive }:
let edf = composableDerivation.edf; in let edf = composableDerivation.edf; in
composableDerivation.composableDerivation {} { composableDerivation.composableDerivation {} {
name="avrdude-5.4"; name="avrdude-5.4";
src = fetchurl { src = fetchurl {
url = http://mirror.switch.ch/mirror/gentoo/distfiles/avrdude-5.4.tar.gz; url = http://mirror.switch.ch/mirror/gentoo/distfiles/avrdude-5.4.tar.gz;
sha256 = "bee4148c51ec95999d803cb9f68f12ac2e9128b06f07afe307d38966c0833b30"; sha256 = "bee4148c51ec95999d803cb9f68f12ac2e9128b06f07afe307d38966c0833b30";
}; };
configureFlags = [ "--disable-dependency-tracking" ]; configureFlags = [ "--disable-dependency-tracking" ];
buildInputs = [yacc flex]; buildInputs = [ yacc flex ];
flags = flags =
edf { name = "doc"; enable = { buildInputs = texLive; configureFlags = ["--enable-doc"]; }; } edf { name = "doc"; enable = { buildInputs = texLive; configureFlags = ["--enable-doc"]; }; }
// edf { name = "parport"; } // edf { name = "parport"; };
;
cfg = { cfg = {
docSupport = false; # untested docSupport = false; # untested

View file

@ -1,20 +1,21 @@
args: { stdenv, fetchurl, flex, bison }:
args.stdenv.mkDerivation {
stdenv.mkDerivation {
name = "cproto-4.6"; name = "cproto-4.6";
src = args.fetchurl { src = fetchurl {
url = mirror://sourceforge/cproto/cproto-4.6.tar.gz; url = mirror://sourceforge/cproto/cproto-4.6.tar.gz;
sha256 = "0ilhkx9iwc5bh65q47mf68p39iyk07d52fv00z431nl6qcb9hp9j"; sha256 = "0ilhkx9iwc5bh65q47mf68p39iyk07d52fv00z431nl6qcb9hp9j";
}; };
buildInputs =(with args; [flex bison]); buildInputs = [flex bison];
# patch made by Joe Khoobyar copied from gentoo bugs # patch made by Joe Khoobyar copied from gentoo bugs
patches= ./cproto_patch ; patches = ./cproto_patch;
meta = { meta = {
description = "generate C function prototypes from C source code"; description = "Tool to generate C function prototypes from C source code";
homepage = http://cproto.sourceforge.net/; homepage = http://cproto.sourceforge.net/;
license = "public domain"; license = "public domain";
}; };
} }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "inotify-tools-3.13"; name = "inotify-tools-3.13";
@ -7,13 +8,10 @@ stdenv.mkDerivation {
sha256 = "0icl4bx041axd5dvhg89kilfkysjj86hjakc7bk8n49cxjn4cha6"; sha256 = "0icl4bx041axd5dvhg89kilfkysjj86hjakc7bk8n49cxjn4cha6";
}; };
buildInputs = [];
meta = { meta = {
description = "";
homepage = http://sourceforge.net/projects/inotify-tools/; homepage = http://sourceforge.net/projects/inotify-tools/;
license = "GPLv2"; license = "GPLv2";
maintainers = [args.lib.maintainers.marcweber]; maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = args.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
} }

View file

@ -1,16 +1,15 @@
args: with args; { stdenv, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "uisp-20050207"; name = "uisp-20050207";
configureFlags="--disable-dependency-tracking";
src = fetchurl { src = fetchurl {
url = http://mirror.switch.ch/mirror/gentoo/distfiles/uisp-20050207.tar.gz; url = http://mirror.switch.ch/mirror/gentoo/distfiles/uisp-20050207.tar.gz;
sha256 = "1bncxp5yxh9r1yrp04vvhfiva8livi1pwic7v8xj99q09zrwahvw"; sha256 = "1bncxp5yxh9r1yrp04vvhfiva8livi1pwic7v8xj99q09zrwahvw";
}; };
meta = { meta = {
description = "tool for AVR microcontrollers which can interface to many hardware in-system programmers"; description = "Tool for AVR microcontrollers which can interface to many hardware in-system programmers";
license = "GPL-2"; license = "GPL-2";
homepage = http://savannah.nongnu.org/projects/uisp; homepage = http://savannah.nongnu.org/projects/uisp;
}; };

View file

@ -1,11 +1,9 @@
args: with args; { stdenv, fetchurl, libusb }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "usb-modeswitch-1.1.2"; name = "usb-modeswitch-1.1.2";
src = src =fetchurl {
fetchurl {
url = "http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-1.1.2.tar.bz2"; url = "http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-1.1.2.tar.bz2";
sha256 = "1wzhd0r49nh5y43qrvsi3c7a29206zwd6v8xlpb8dqm40xg3j9nz"; sha256 = "1wzhd0r49nh5y43qrvsi3c7a29206zwd6v8xlpb8dqm40xg3j9nz";
}; };
@ -18,13 +16,11 @@ stdenv.mkDerivation {
makeFlags="DESTDIR=$out PREFIX=$out" makeFlags="DESTDIR=$out PREFIX=$out"
''; '';
buildInputs = [libusb]; buildInputs = [ libusb ];
meta = { meta = {
description = "...";
homepage = "TODO";
license = "GPLv2"; license = "GPLv2";
maintainers = [stdenv.lib.maintainers.marcweber]; maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = stdenv.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
} }

View file

@ -1,20 +1,25 @@
# This package is only used to create the documentation of zsh-cvs # This package is only used to create the documentation of zsh-cvs
# eg have a look at http://www.zsh.org/mla/users/2008/msg00715.html # eg have a look at http://www.zsh.org/mla/users/2008/msg00715.html
# latest release is newer though # latest release is newer though
args: with args;
{ stdenv, fetchurl, perl }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "yodl-2.14.3"; name = "yodl-2.14.3";
buildInputs = [perl]; buildInputs = [ perl ];
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/yodl/yodl_2.14.3.orig.tar.gz"; url = "mirror://sourceforge/yodl/yodl_2.14.3.orig.tar.gz";
sha256 = "0paypm76p34hap3d18vvks5rrilchcw6q56rvq6pjf9raqw8ynd4"; sha256 = "0paypm76p34hap3d18vvks5rrilchcw6q56rvq6pjf9raqw8ynd4";
}; };
patches = [(fetchurl {
url = "mirror://sourceforge/yodl/yodl_2.14.3-1.diff.gz"; patches =
sha256 = "176hlbiidv7p9051f04anzj4sr9dwlp9439f9mjvvgks47ac0qx4"; [ (fetchurl {
})]; url = "mirror://sourceforge/yodl/yodl_2.14.3-1.diff.gz";
sha256 = "176hlbiidv7p9051f04anzj4sr9dwlp9439f9mjvvgks47ac0qx4";
})
];
# This doesn't isntall docs yet, do you need them? # This doesn't isntall docs yet, do you need them?
installPhase = '' installPhase = ''

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "byacc-1.9"; name = "byacc-1.9";
@ -7,15 +8,14 @@ stdenv.mkDerivation {
sha256 = "d61a15ac4ac007c188d0c0e99365f016f8d327755f43032b58e400754846f736"; sha256 = "d61a15ac4ac007c188d0c0e99365f016f8d327755f43032b58e400754846f736";
}; };
preConfigure = [ preConfigure =
''mkdir -p $out/bin ''mkdir -p $out/bin
sed -i "s@^DEST.*\$@DEST = $out/bin/yacc@" Makefile sed -i "s@^DEST.*\$@DEST = $out/bin/yacc@" Makefile
'' '';
];
meta = { meta = {
description = "Berkeley YACC"; description = "Berkeley YACC";
homepage = http://dickey.his.com/byacc/byacc.html; homepage = http://dickey.his.com/byacc/byacc.html;
license = "public domain"; license = "public domain";
}; };
} }

View file

@ -1,4 +1,4 @@
args: with args; { stdenv, fetchurl, rpm, cpio, zlib }:
assert stdenv.system == "x86_64-linux"; assert stdenv.system == "x86_64-linux";
@ -25,6 +25,7 @@ then. I've tried that.
TODO tidy this all up. Find source instead of binary. Fix paths ... Find out how to check ink levels etc TODO tidy this all up. Find source instead of binary. Fix paths ... Find out how to check ink levels etc
*/ */
stdenv.mkDerivation { stdenv.mkDerivation {
name = "cups-gutenprint-binary-5.0.1"; name = "cups-gutenprint-binary-5.0.1";
@ -58,6 +59,6 @@ stdenv.mkDerivation {
''; '';
meta = { meta = {
description = "some additional drivers including canon printer drivers"; description = "Some additional CUPS drivers including Canon drivers";
}; };
} }

View file

@ -1,12 +1,13 @@
# this package was called gimp-print in the past # this package was called gimp-print in the past
{ fetchurl, stdenv, lib, pkgconfig, composableDerivation, cups { fetchurl, stdenv, pkgconfig, composableDerivation, cups
, libtiff, libpng, openssl, git, gimp }@args : , libtiff, libpng, openssl, gimp }:
let let
version = "5.2.4"; version = "5.2.4";
inherit (args.composableDerivation) composableDerivation edf wwf; inherit (composableDerivation) edf wwf;
in in
composableDerivation {} {
composableDerivation.composableDerivation {} {
name = "gutenprint-${version}"; name = "gutenprint-${version}";
src = fetchurl { src = fetchurl {
@ -15,12 +16,14 @@ composableDerivation {} {
}; };
# gimp, gui is still not working (TODO) # gimp, gui is still not working (TODO)
buildInputs = [ openssl pkgconfig]; buildInputs = [ openssl pkgconfig ];
configureFlags = ["--enable-static-genppd"]; configureFlags = ["--enable-static-genppd"];
#preConfigure = '' #preConfigure = ''
# configureFlags="--with-cups=$out/usr-cups $configureFlags" # configureFlags="--with-cups=$out/usr-cups $configureFlags"
#''; #'';
/* /*
is this recommended? without it this warning is printed: is this recommended? without it this warning is printed:
@ -41,7 +44,7 @@ composableDerivation {} {
license = "GPL"; license = "GPL";
}; };
mergeAttrBy = { installArgs = lib.concat; }; mergeAttrBy = { installArgs = stdenv.lib.concat; };
# most interpreters aren't tested yet.. (see python for example how to do it) # most interpreters aren't tested yet.. (see python for example how to do it)
flags = flags =

View file

@ -1,13 +1,13 @@
args: with args; { stdenv, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "acpi-0.09"; name = "acpi-0.09";
src = fetchurl { src = fetchurl {
url = "http://grahame.angrygoats.net/source/acpi/${name}.tar.gz"; url = "http://grahame.angrygoats.net/source/acpi/${name}.tar.gz";
sha256 = "11iwzbm3gcn9ljvxl4cjj9fc1n135hx45rhrsprnnkqppndf3vn1"; sha256 = "11iwzbm3gcn9ljvxl4cjj9fc1n135hx45rhrsprnnkqppndf3vn1";
}; };
meta = { meta = {
longDescription = '' longDescription = ''
Linux ACPI client is a small command-line Linux ACPI client is a small command-line

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, pkgconfig, fuse }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "afuse-0.2"; name = "afuse-0.2";
@ -7,18 +8,14 @@ stdenv.mkDerivation {
sha256 = "1lj2jdks0bgwxbjqp5a9f7qdry19kar6pg7dh1ml98gapx9siylj"; sha256 = "1lj2jdks0bgwxbjqp5a9f7qdry19kar6pg7dh1ml98gapx9siylj";
}; };
buildInputs = [pkgconfig fuse]; buildInputs = [ pkgconfig fuse ];
meta = { meta = {
description = "automounting in userspace. Allows easy access to ssh-agent etc"; description = "Automounter in userspace";
longDesc = ''
Example: (automunt using sshfs by accessing ~/sshfs/[user@]domain
afuse -o mount_template="sshfs %r:/ %m" -o unmount_template="fusermount -u -z %m" ~/sshfs/
'';
homepage = http://sourceforge.net/projects/afuse; homepage = http://sourceforge.net/projects/afuse;
license = "GPL-v2"; license = "GPL-v2";
maintainers = [args.lib.maintainers.marcweber]; maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = args.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, kernel}: { stdenv, fetchurl, kernel }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "aufs-20090414-${kernel.version}"; name = "aufs-20090414-${kernel.version}";

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, autoconf, automake }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "bridge-utils-1.2"; name = "bridge-utils-1.2";
@ -7,13 +8,13 @@ stdenv.mkDerivation {
sha256 = "0jg3z51c2c34byg4zi39j9g4b66js5kanjhid77hpa0jdfmryfy9"; sha256 = "0jg3z51c2c34byg4zi39j9g4b66js5kanjhid77hpa0jdfmryfy9";
}; };
buildInputs = [autoconf automake]; buildInputs = [ autoconf automake ];
preConfigure="autoreconf"; preConfigure = "autoreconf";
meta = { meta = {
description = "http://sourceforge.net/projects/bridge/"; description = "http://sourceforge.net/projects/bridge/";
homepage = [ "http://www.linux-foundation.org/en/Net:Bridge/" "http://sourceforge.net/projects/bridge/" ]; homepage = [ "http://www.linux-foundation.org/en/Net:Bridge/" "http://sourceforge.net/projects/bridge/" ];
license = "GPL"; license = "GPL";
}; };
} }

View file

@ -1,9 +1,11 @@
args: with args; { stdenv, fetchurl }:
stdenv.mkDerivation ( rec {
stdenv.mkDerivation rec {
pname = "zd1211-firmware"; pname = "zd1211-firmware";
version = "1.4"; version = "1.4";
name = "${pname}-${version}"; name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "http://surfnet.dl.sourceforge.net/sourceforge/zd1211/${name}.tar.bz2"; url = "http://surfnet.dl.sourceforge.net/sourceforge/zd1211/${name}.tar.bz2";
sha256 = "866308f6f59f7075f075d4959dff2ede47735c751251fecd1496df1ba4d338e1"; sha256 = "866308f6f59f7075f075d4959dff2ede47735c751251fecd1496df1ba4d338e1";
@ -18,4 +20,4 @@ stdenv.mkDerivation ( rec {
homepage = http://sourceforge.net/projects/zd1211/; homepage = http://sourceforge.net/projects/zd1211/;
license = "GPL"; license = "GPL";
}; };
}) }

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, libxml2, pkgconfig, boolstuff, hal, dbus_glib }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "hal-evt-0.1.4"; name = "hal-evt-0.1.4";
@ -7,13 +8,13 @@ stdenv.mkDerivation {
sha256 = "173dphyzpicjz5pnw0d6wmibvib5h99nh1gmyvcqpgvf8la5vrps"; sha256 = "173dphyzpicjz5pnw0d6wmibvib5h99nh1gmyvcqpgvf8la5vrps";
}; };
buildInputs = [libxml2 pkgconfig boolstuff hal dbus_glib]; buildInputs = [ libxml2 pkgconfig boolstuff hal dbus_glib ];
meta = { meta = {
description = "execute commands on hal events"; description = "Execute commands on hal events";
homepage = http://www.nongnu.org/halevt/; homepage = http://www.nongnu.org/halevt/;
license = "GPLv2"; license = "GPLv2";
maintainers = [args.lib.maintainers.marcweber]; maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = args.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,6 @@
args: with args; stdenv.mkDerivation { { stdenv, fetchurl, pciutils }:
stdenv.mkDerivation {
name = "i810switch-0.6.5"; name = "i810switch-0.6.5";
phases = "unpackPhase installPhase"; phases = "unpackPhase installPhase";
@ -10,15 +12,13 @@ args: with args; stdenv.mkDerivation {
make install DESTDIR=\${out} make install DESTDIR=\${out}
"; ";
inherit pciutils;
src = fetchurl { src = fetchurl {
url = http://www16.plala.or.jp/mano-a-mano/i810switch/i810switch-0.6.5.tar.gz; url = http://www16.plala.or.jp/mano-a-mano/i810switch/i810switch-0.6.5.tar.gz;
sha256 = "d714840e3b14e1fa9c432c4be0044b7c008d904dece0d611554655b979cad4c3"; sha256 = "d714840e3b14e1fa9c432c4be0044b7c008d904dece0d611554655b979cad4c3";
}; };
meta = { meta = {
description = "i810switch is a utility for switching the LCD and external VGA display."; description = "A utility for switching between the LCD and external VGA display on Intel graphics cards";
homepage = "http://www16.plala.or.jp/mano-a-mano/i810switch.html"; homepage = "http://www16.plala.or.jp/mano-a-mano/i810switch.html";
license = "GPL2"; license = "GPL2";
}; };

View file

@ -1,4 +1,5 @@
args: with args; { stdenv, fetchurl, pciutils }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "radeontool-1.5"; name = "radeontool-1.5";
@ -6,26 +7,26 @@ stdenv.mkDerivation {
# Don't know wether it's a good idea to hardcode the lspci path.. # Don't know wether it's a good idea to hardcode the lspci path..
# But it will work on nix.. # But it will work on nix..
postUnpack = " postUnpack = ''
cd $sourceRoot; cd $sourceRoot
sed -i \"s%lspci%\$pciutils/sbin/lspci%g\" radeontool.c sed -i "s%lspci%$pciutils/sbin/lspci%g" radeontool.c
cd .. cd ..
"; '';
src = fetchurl { src = fetchurl {
url = http://fdd.com/software/radeon/radeontool-1.5.tar.gz; url = http://fdd.com/software/radeon/radeontool-1.5.tar.gz;
sha256 = "0qbkawhhq0y0gqbbql7q04y0v0hims5c4jkjsbc1y03rf9kr10ar"; sha256 = "0qbkawhhq0y0gqbbql7q04y0v0hims5c4jkjsbc1y03rf9kr10ar";
}; };
installPhase = " installPhase = ''
ensureDir \$out/bin ensureDir $out/bin
chmod +x lightwatch.pl chmod +x lightwatch.pl
cp radeontool lightwatch.pl \$out/bin cp radeontool lightwatch.pl $out/bin
"; '';
meta = { meta = {
description = "Control the backlight and external video output of ATI Radeon Mobility graphics cards"; description = "Control the backlight and external video output of ATI Radeon Mobility graphics cards";
homepage = http://fdd.com/software/radeon/; homepage = http://fdd.com/software/radeon/;
license = "ZLIB"; license = "ZLIB";
}; };
} }

Some files were not shown because too many files have changed in this diff Show more