From bb0a18daac7492a44e338d19ca004b679b211caf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Mon, 25 Jan 2010 21:40:52 +0000 Subject: [PATCH 01/69] Adding some kind of build expression for money manager ex. It expects to find its resource files in '.', and it also wants to write at '.'. I think this has to be fixed upstream. svn path=/nixpkgs/trunk/; revision=19655 --- pkgs/applications/office/mmex/default.nix | 35 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/applications/office/mmex/default.nix diff --git a/pkgs/applications/office/mmex/default.nix b/pkgs/applications/office/mmex/default.nix new file mode 100644 index 00000000000..1e7aa756471 --- /dev/null +++ b/pkgs/applications/office/mmex/default.nix @@ -0,0 +1,35 @@ +# To use this program, copy all that is in $out/opt/mmax into a writable directory, +# and run it from there. This is the intended usage, as far as I understand. + +{ fetchsvn, stdenv, wxGTK }: + +let version = "0.9.5.1"; +in + stdenv.mkDerivation { + name = "money-manager-ex-${version}"; + + src = fetchsvn { + url = "https://moneymanagerex.svn.sourceforge.net/svnroot/moneymanagerex/tags/releases/${version}"; + sha256 = "0mby1p01fyxk5pgd7h3919q91r10zbfk16rfz1kbchqxqz87x4jq"; + }; + + preConfigure = '' + export CFLAGS="-I`pwd`/include" + export CXXFLAGS="$CFLAGS" + ''; + + installPhase = '' + ensureDir $out/opt/mmex + cp -r mmex runtime/{*.txt,*.png,*.db3,en,help,*.wav,*.ico} $out/opt/mmex + ''; + + buildInputs = [ wxGTK ]; + + meta = { + description = "Easy-to-use personal finance software"; + homepage = http://www.codelathe.com/mmex; + license = "GPLv2+"; + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; + }; + } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 02f376e9f71..420a770ec7e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7341,6 +7341,10 @@ let inherit fetchurl stdenv ncurses; }; + mmex = import ../applications/office/mmex { + inherit fetchsvn stdenv wxGTK; + }; + monodevelop = import ../applications/editors/monodevelop { inherit fetchurl stdenv file mono gtksourceviewsharp gtkmozembedsharp monodoc perl perlXMLParser pkgconfig; From cf3b87d747af85aa6b51ca3bc280cf88ee7aa837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 25 Jan 2010 22:04:03 +0000 Subject: [PATCH 02/69] GNU GRUB 1.97.2. svn path=/nixpkgs/trunk/; revision=19656 --- pkgs/tools/misc/grub/1.9x.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/grub/1.9x.nix b/pkgs/tools/misc/grub/1.9x.nix index 87235a60eea..b57a98dd5ba 100644 --- a/pkgs/tools/misc/grub/1.9x.nix +++ b/pkgs/tools/misc/grub/1.9x.nix @@ -7,11 +7,11 @@ let unifont_bdf = fetchurl { in stdenv.mkDerivation rec { - name = "grub-1.97.1"; + name = "grub-1.97.2"; src = fetchurl { url = "ftp://alpha.gnu.org/gnu/grub/${name}.tar.gz"; - sha256 = "1grpz4jphrhlmjr0ai4vi5rs1xknwfqgb376cq7hlwzblcblbw2i"; + sha256 = "0j8wdaq9r0ayfsz25lbq2k3q0iasq5cyldlip8jyq2g87iid5hcq"; }; buildInputs = [ bison ncurses libusb freetype ]; @@ -42,7 +42,7 @@ stdenv.mkDerivation rec { Unified Bootloader, which was originally designed and implemented by Erich Stefan Boleyn. - Briefly, boot loader is the first software program that runs when a + Briefly, the boot loader is the first software program that runs when a computer starts. It is responsible for loading and transferring control to the operating system kernel software (such as the Hurd or the Linux). The kernel, in turn, initializes the rest of the @@ -54,5 +54,6 @@ stdenv.mkDerivation rec { license = "GPLv3+"; maintainers = [ stdenv.lib.maintainers.ludo ]; + platforms = stdenv.lib.platforms.gnu; }; } From 561e37cfe09e076dfca8ae7cc068f6c977efc158 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 26 Jan 2010 10:18:14 +0000 Subject: [PATCH 03/69] * Linux 2.6.32.6, 2.6.27.44. svn path=/nixpkgs/trunk/; revision=19661 --- pkgs/os-specific/linux/kernel/linux-2.6.27.nix | 4 ++-- pkgs/os-specific/linux/kernel/linux-2.6.32.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/linux-2.6.27.nix b/pkgs/os-specific/linux/kernel/linux-2.6.27.nix index cc058770938..7a01af13c16 100644 --- a/pkgs/os-specific/linux/kernel/linux-2.6.27.nix +++ b/pkgs/os-specific/linux/kernel/linux-2.6.27.nix @@ -3,11 +3,11 @@ args @ { stdenv, fetchurl, userModeLinux ? false, extraConfig ? "", ... }: import ./generic.nix ( rec { - version = "2.6.27.43"; + version = "2.6.27.44"; src = fetchurl { url = "mirror://kernel/linux/kernel/v2.6/linux-${version}.tar.bz2"; - sha256 = "0y2fpc6maazzg75ixrzc7h0v0k48jaflbjjcsh6c69f0mq3l8zay"; + sha256 = "15z64kmbrgxnwrzvwqpw7l59nps6qynbp9hphfyad0vlisccrm1h"; }; features.iwlwifi = true; diff --git a/pkgs/os-specific/linux/kernel/linux-2.6.32.nix b/pkgs/os-specific/linux/kernel/linux-2.6.32.nix index 4a3817e71bb..ab6bb6bb872 100644 --- a/pkgs/os-specific/linux/kernel/linux-2.6.32.nix +++ b/pkgs/os-specific/linux/kernel/linux-2.6.32.nix @@ -3,11 +3,11 @@ args @ { stdenv, fetchurl, userModeLinux ? false, extraConfig ? "", ... }: import ./generic.nix ( rec { - version = "2.6.32.3"; + version = "2.6.32.6"; src = fetchurl { url = "mirror://kernel/linux/kernel/v2.6/linux-${version}.tar.bz2"; - sha256 = "09zg9xk67vjpfrrb3m4rzql4nd7bz64i9sng5sbdpfgs7d4pi1cp"; + sha256 = "08i6pxng47glgmlg10sj454xv7y5d0hdick88jpy6bn51jsc92lk"; }; features.iwlwifi = true; From 84cfb9173e74d4d6320b1391cf3e76b6b1aa0869 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 26 Jan 2010 11:02:25 +0000 Subject: [PATCH 04/69] svn path=/nixpkgs/trunk/; revision=19663 --- doc/release-notes.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/release-notes.xml b/doc/release-notes.xml index 37cbdd68403..c7f2ecf801c 100644 --- a/doc/release-notes.xml +++ b/doc/release-notes.xml @@ -24,6 +24,8 @@ updates are: + + From a4984bd1003202d6718c8bf0221e6ee9adce68ea Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 26 Jan 2010 11:02:43 +0000 Subject: [PATCH 05/69] svn path=/nixpkgs/trunk/; revision=19664 --- doc/release-notes.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/release-notes.xml b/doc/release-notes.xml index c7f2ecf801c..0a57aa7da18 100644 --- a/doc/release-notes.xml +++ b/doc/release-notes.xml @@ -5,7 +5,7 @@ Nixpkgs Release Notes -
Release 0.13 (Januari NNN, 2010) +
Release 0.13 (January NNN, 2010) As always, there are many changes. Some of the most important updates are: From 0c46b7b4d8e03c6f36b3fb9d8529f262871962ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 26 Jan 2010 14:49:00 +0000 Subject: [PATCH 06/69] GNU Enscript 1.6.5. svn path=/nixpkgs/trunk/; revision=19668 --- pkgs/tools/text/enscript/default.nix | 37 ++++++++++++++++++++++++---- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 33 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/text/enscript/default.nix b/pkgs/tools/text/enscript/default.nix index 67dc4302d03..33c82ec52d8 100644 --- a/pkgs/tools/text/enscript/default.nix +++ b/pkgs/tools/text/enscript/default.nix @@ -1,9 +1,36 @@ -{stdenv, fetchurl}: +{ stdenv, fetchurl, gettext }: + +stdenv.mkDerivation rec { + name = "enscript-1.6.5"; -stdenv.mkDerivation { - name = "enscript-1.6.4"; src = fetchurl { - url = http://www.iki.fi/mtr/genscript/enscript-1.6.4.tar.gz; - md5 = "b5174b59e4a050fb462af5dbf28ebba3"; + url = "mirror://gnu/enscript/${name}.tar.gz"; + sha256 = "1sq4ng7z34qhx6cavnzndgkjpjr9lbvpxgd5a3ajgif3n57fjki2"; + }; + + buildInputs = [ gettext ]; + + doCheck = true; + + meta = { + description = "GNU Enscript, a converter from ASCII to PostScript, HTML, or RTF"; + + longDescription = + '' GNU Enscript converts ASCII files to PostScript, HTML, or RTF and + stores generated output to a file or sends it directly to the + printer. It includes features for `pretty-printing' + (language-sensitive code highlighting) in several programming + languages. + + Enscript can be easily extended to handle different output media and + it has many options that can be used to customize printouts. + ''; + + license = "GPLv3+"; + + homepage = http://www.gnu.org/software/enscript/; + + maintainer = [ stdenv.lib.maintainers.ludo ]; + platforms = stdenv.lib.platforms.all; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 420a770ec7e..6dc3d446ce3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -621,7 +621,7 @@ let }; enscript = import ../tools/text/enscript { - inherit fetchurl stdenv; + inherit fetchurl stdenv gettext; }; eprover = composedArgsAndFun (import ../tools/misc/eProver) { From 0d6a9b979da6ab0327164be4944ac7f04bc321dd Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 26 Jan 2010 14:52:56 +0000 Subject: [PATCH 07/69] pkgs/top-level/python-packages.nix: stripped trailing whitespace svn path=/nixpkgs/trunk/; revision=19669 --- pkgs/top-level/python-packages.nix | 32 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index feae4222010..e7e17d8c2ce 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -105,23 +105,23 @@ rec { genshi = buildPythonPackage { name = "genshi-0.5.1"; - + src = fetchurl { url = http://ftp.edgewall.com/pub/genshi/Genshi-0.5.1.tar.bz2; sha256 = "1g2xw3zvgz59ilv7mrdlnvfl6ph8lwflwd4jr6zwrca2zhj7d8rs"; }; - + buildInputs = [ pkgs.setuptools ]; - + meta = { description = "Python components for parsing HTML, XML and other textual content"; - + longDescription = '' Python library that provides an integrated set of components for parsing, generating, and processing HTML, XML or other textual content for output generation on the web. ''; - + license = "BSD"; }; }; @@ -156,7 +156,7 @@ rec { buildInputs = [ pkgs.libxml2 pkgs.libxslt ]; - meta = { + meta = { description = "Pythonic binding for the libxml2 and libxslt libraries"; homepage = http://codespeak.net/lxml/index.html; license = "BSD"; @@ -289,20 +289,20 @@ rec { name = "psycopg2-2.0.13"; doCheck = false; - + src = fetchurl { url = "http://initd.org/pub/software/psycopg/PSYCOPG-2-0/${name}.tar.gz"; sha256 = "0arkaa1nbbd3pyn4l1bc75wi7nff3vxxh4s8sj5al5hv20p64pm1"; }; - + propagatedBuildInputs = [ pkgs.postgresql ]; - + meta = { description = "PostgreSQL database adapter for the Python programming language"; license = "GPLv2/ZPL"; }; }; - + pycryptopp = buildPythonPackage (rec { name = "pycryptopp-0.5.15"; @@ -477,21 +477,21 @@ rec { trac = buildPythonPackage { name = "trac-0.11.5"; - + src = fetchurl { url = http://ftp.edgewall.com/pub/trac/Trac-0.11.5.tar.gz; sha256 = "cc3362ecc533abc1755dd78e2d096d1413bc975abc3185318f4821458cd6a8ac"; }; - + doCheck = false; - + PYTHON_EGG_CACHE = "`pwd`/.egg-cache"; - + propagatedBuildInputs = [ genshi pkgs.setuptools ]; - + meta = { description = "Enhanced wiki and issue tracking system for software development projects"; - + license = "BSD"; }; }; From c7545322988bd9f5a9724061c61da21b336ed913 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 26 Jan 2010 14:53:03 +0000 Subject: [PATCH 08/69] pkgs/top-level/all-packages.nix: stripped trailing whitespace svn path=/nixpkgs/trunk/; revision=19670 --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6dc3d446ce3..0b7eb5a9647 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6919,7 +6919,7 @@ let }; firefox36Wrapper = lowPrio (wrapFirefox firefox36Pkgs.firefox "firefox" ""); - + flac = import ../applications/audio/flac { inherit fetchurl stdenv libogg; }; From a5030f06dfcbc23f2e0ed08fdf42d2e3c02f94bd Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 26 Jan 2010 14:53:08 +0000 Subject: [PATCH 09/69] pkgs/development/libraries/science/math/blas: added BLAS version 20070405 svn path=/nixpkgs/trunk/; revision=19671 --- .../libraries/science/math/blas/default.nix | 38 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++ 2 files changed, 42 insertions(+) create mode 100644 pkgs/development/libraries/science/math/blas/default.nix diff --git a/pkgs/development/libraries/science/math/blas/default.nix b/pkgs/development/libraries/science/math/blas/default.nix new file mode 100644 index 00000000000..5d0f1fa90d7 --- /dev/null +++ b/pkgs/development/libraries/science/math/blas/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchurl, gfortran }: + +stdenv.mkDerivation { + name = "blas-20070405"; + src = fetchurl { + url = "http://www.netlib.org/blas/blas.tgz"; + sha256 = "07alzd2yxkah96vjczqwi3ld5w00bvqv7qxb2fayvhs1h64jabxw"; + }; + + buildInputs = [gfortran]; + + configurePhase = '' + echo >make.inc "SHELL = ${stdenv.bash}/bin/bash" + echo >>make.inc "PLAT = _LINUX" + echo >>make.inc "FORTRAN = gfortran" + echo >>make.inc "OPTS = -O2 -fPIC" + echo >>make.inc "DRVOPTS = $$(OPTS)" + echo >>make.inc "NOOPT = -O0 -fPIC" + echo >>make.inc "LOADER = gfortran" + echo >>make.inc "LOADOPTS =" + echo >>make.inc "ARCH = gfortran" + echo >>make.inc "ARCHFLAGS = -shared -o" + echo >>make.inc "RANLIB = echo" + echo >>make.inc "BLASLIB = libblas.so.3.0.3" + ''; + + installPhase = '' + install -D -m755 libblas.so.3.0.3 "$out/lib/libblas.so.3.0.3" + ln -s libblas.so.3.0.3 "$out/lib/libblas.so.3" + ln -s libblas.so.3.0.3 "$out/lib/libblas.so" + ''; + + meta = { + description = "Basic Linear Algebra Subprograms"; + license = "Free, copyrighted"; + homepage = "http://www.netlib.org/blas/"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0b7eb5a9647..8cf05ad9ded 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8396,6 +8396,10 @@ let inherit fetchurl stdenv gfortran; }; + blas = import ../development/libraries/science/math/blas { + inherit fetchurl stdenv gfortran; + }; + content = builderDefsPackage ../applications/science/math/content { inherit mesa lesstif; inherit (xlibs) libX11 libXaw xproto libXt libSM libICE From 8cb6ced793610ef7b5310eece5aff1c6afbf3cbd Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 26 Jan 2010 14:53:13 +0000 Subject: [PATCH 10/69] pkgs/development/libraries/science/math/liblapack: fixed build and updated to version 3.2.1 svn path=/nixpkgs/trunk/; revision=19672 --- .../science/math/liblapack/blas-link.patch | 24 +++++++++ .../science/math/liblapack/default.nix | 53 ++++++++++++++----- pkgs/top-level/all-packages.nix | 6 +-- 3 files changed, 66 insertions(+), 17 deletions(-) create mode 100644 pkgs/development/libraries/science/math/liblapack/blas-link.patch diff --git a/pkgs/development/libraries/science/math/liblapack/blas-link.patch b/pkgs/development/libraries/science/math/liblapack/blas-link.patch new file mode 100644 index 00000000000..7770142be77 --- /dev/null +++ b/pkgs/development/libraries/science/math/liblapack/blas-link.patch @@ -0,0 +1,24 @@ +diff -Naur lapack-3.2.old/SRC/Makefile lapack-3.2/SRC/Makefile +--- lapack-3.2.old/SRC/Makefile 2009-02-04 11:33:35.006839507 +0100 ++++ lapack-3.2/SRC/Makefile 2009-02-04 11:33:51.987551506 +0100 +@@ -367,7 +367,7 @@ + $(ALLAUX) + + ../$(LAPACKLIB): $(ALLOBJ) $(ALLXOBJ) +- $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ) $(ALLXOBJ) ++ $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ) $(ALLXOBJ) -lblas + $(RANLIB) $@ + + single: $(SLASRC) $(ALLAUX) $(SCLAUX) +diff -Naur lapack-3.2.old/TESTING/MATGEN/Makefile lapack-3.2/TESTING/MATGEN/Makefile +--- lapack-3.2.old/TESTING/MATGEN/Makefile 2009-02-04 11:35:10.426806473 +0100 ++++ lapack-3.2/TESTING/MATGEN/Makefile 2009-02-04 11:34:42.850565181 +0100 +@@ -60,7 +60,7 @@ + + ../../$(TMGLIB): $(SMATGEN) $(CMATGEN) $(SCATGEN) $(DMATGEN) \ + $(ZMATGEN) $(DZATGEN) +- $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ) ++ $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ) -lblas + $(RANLIB) $@ + + single: $(SMATGEN) $(SCATGEN) diff --git a/pkgs/development/libraries/science/math/liblapack/default.nix b/pkgs/development/libraries/science/math/liblapack/default.nix index fad9218bbc9..da8fd03c2bb 100644 --- a/pkgs/development/libraries/science/math/liblapack/default.nix +++ b/pkgs/development/libraries/science/math/liblapack/default.nix @@ -1,25 +1,50 @@ -args: with args; +{ stdenv, fetchurl, gfortran, blas }: stdenv.mkDerivation { - name = "liblapack-3.1.1"; + name = "liblapack-3.2.1"; src = fetchurl { - url = http://www.netlib.org/lapack/lapack.tgz; - sha256 = "0am0yzgqhaz6yzliaxc2cgm2mbqjzwcq70b01migk5231frkbhz4"; + url = "http://www.netlib.org/lapack/lapack-3.2.1.tgz"; + sha256 = "5825f83971157001fd4235514afe8ff5fc16e1c06b2e872e442c242efd6c166d"; }; - buildInputs = [gfortran]; - patches = [ ./gfortran.patch ]; + buildInputs = [gfortran blas]; + patches = [ ./blas-link.patch ]; + + configurePhase = '' + echo >make.inc "SHELL = ${stdenv.bash}/bin/bash" + echo >>make.inc "PLAT =" + echo >>make.inc "FORTRAN = gfortran" + echo >>make.inc "OPTS = -O2 -fPIC" + echo >>make.inc "DRVOPTS = \$(OPTS)" + echo >>make.inc "NOOPT = -O0 -fPIC" + echo >>make.inc "LOADER = gfortran" + echo >>make.inc "LOADOPTS =" + echo >>make.inc "TIMER = INT_ETIME" + echo >>make.inc "ARCH = gfortran" + echo >>make.inc "ARCHFLAGS = -shared -o" + echo >>make.inc "RANLIB = echo" + echo >>make.inc "BLASLIB = -lblas" + echo >>make.inc "LAPACKLIB = liblapack.so.3" + echo >>make.inc "TMGLIB = libtmglib.so.3" + echo >>make.inc "EIGSRCLIB = libeigsrc.so.3" + echo >>make.inc "LINSRCLIB = liblinsrc.so.3" + ''; buildPhase = '' - cp make.inc.example make.inc - make blaslib - # make lapacklib - cd SRC - make + make clean + make lib ''; + + installPhase = '' + ensureDir "$out/lib" + install -m755 *.so* "$out/lib" + ln -sf liblapack.so.3 "$out/lib/liblapack.so" + ln -sf libtmglib.so.3 "$out/lib/libtmglib.so" + ''; + meta = { - description = "lapack library"; - license = "Free, copyrighted"; - homepage = http://www.netlib.org/lapac; + description = "Linear Algebra PACKage"; + license = "Free, copyrighted"; + homepage = "http://www.netlib.org/lapack/"; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8cf05ad9ded..b828b3f961d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8406,9 +8406,9 @@ let libXmu libXext libXcursor; }; - /* liblapack = import ../development/libraries/science/math/liblapack { - inherit fetchurl stdenv gfortran; - }; */ + liblapack = import ../development/libraries/science/math/liblapack { + inherit fetchurl stdenv gfortran blas; + }; ### SCIENCE/LOGIC From d2026a920396b5a72b18775266b6f701652796de Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 26 Jan 2010 14:53:18 +0000 Subject: [PATCH 11/69] pkgs/top-level/python-packages.nix: added numpy version 1.3.0 svn path=/nixpkgs/trunk/; revision=19673 --- pkgs/top-level/python-packages.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e7e17d8c2ce..825175d9818 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -251,6 +251,31 @@ rec { }; }); + numpy = buildPythonPackage ( rec { + name = "numpy-1.3.0"; + + src = fetchurl { + url = "http://downloads.sourceforge.net/numpy/${name}.tar.gz"; + sha256 = "7524687cce85aa78103046db5e617c626b0ef871a203a049159f88f35647c90d"; + }; + + doCheck = false; + + buildInputs = [ pkgs.liblapack pkgs.blas /* pkgs.gfortran */ ]; + + # The build should be run as follows: + # + # python setup.py config_fc --fcompiler=gnu95 build + # python setup.py config_fc --fcompiler=gnu95 install + # + # But I con't figure out how to pass the extra flags to setuptools. + + meta = { + description = "Scientific tools for Python"; + homepage = "http://numpy.scipy.org/"; + }; + }); + ply = buildPythonPackage (rec { name = "ply-3.2"; From a673728cfea347e24382be459e4954cb592924d7 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 26 Jan 2010 14:53:22 +0000 Subject: [PATCH 12/69] pkgs/top-level/python-packages.nix: added mathplotlib version 0.99.1.2 svn path=/nixpkgs/trunk/; revision=19674 --- pkgs/top-level/python-packages.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 825175d9818..79e0c453aa4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -163,6 +163,24 @@ rec { }; }); + matplotlib = buildPythonPackage ( rec { + name = "matplotlib-0.99.1.2"; + + src = fetchurl { + url = "http://downloads.sourceforge.net/matplotlib/${name}.tar.gz"; + sha256 = "12lhwgkahck795946hb8wp605c912zq9ds8067ybbifqs56q24b9"; + }; + + doCheck = false; + + buildInputs = [ dateutil numpy pkgs.freetype pkgs.libpng pkgs.pkgconfig pkgs.tcl pkgs.tk pkgs.xlibs.libX11 ]; + + meta = { + description = "python plotting library, making publication quality plots"; + homepage = "http://matplotlib.sourceforge.net/"; + }; + }); + mechanize = buildPythonPackage (rec { name = "mechanize-0.1.11"; From 6a61d675bba4b01817f53d09af4f479b9a754f98 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 26 Jan 2010 19:28:03 +0000 Subject: [PATCH 13/69] pkgs/development/libraries/science/math/blas: set license to "public domain" It's not entirely clear whether BLAS is in the public domain, but according to <87636orixx.fsf@gnu.org> Debian did classify it that way, and the license text sure feels like the authors intend the package to be in the public domain. So here we are. svn path=/nixpkgs/trunk/; revision=19686 --- pkgs/development/libraries/science/math/blas/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/science/math/blas/default.nix b/pkgs/development/libraries/science/math/blas/default.nix index 5d0f1fa90d7..22eced7d070 100644 --- a/pkgs/development/libraries/science/math/blas/default.nix +++ b/pkgs/development/libraries/science/math/blas/default.nix @@ -32,7 +32,7 @@ stdenv.mkDerivation { meta = { description = "Basic Linear Algebra Subprograms"; - license = "Free, copyrighted"; + license = "public domain"; homepage = "http://www.netlib.org/blas/"; }; } From 30bbff2b6881e53060e33eeb7a6bb80e797512a3 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 26 Jan 2010 19:28:09 +0000 Subject: [PATCH 14/69] pkgs/development/libraries/science/math/liblapack: fixed license tag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to Ludovic Courtès for pointing that out. svn path=/nixpkgs/trunk/; revision=19687 --- pkgs/development/libraries/science/math/liblapack/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/science/math/liblapack/default.nix b/pkgs/development/libraries/science/math/liblapack/default.nix index da8fd03c2bb..0c15834f383 100644 --- a/pkgs/development/libraries/science/math/liblapack/default.nix +++ b/pkgs/development/libraries/science/math/liblapack/default.nix @@ -44,7 +44,7 @@ stdenv.mkDerivation { meta = { description = "Linear Algebra PACKage"; - license = "Free, copyrighted"; + license = "revised-BSD"; homepage = "http://www.netlib.org/lapack/"; }; } From ecc992b7b198edba5ff50ed969f2cc1ab856c13d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 26 Jan 2010 21:26:01 +0000 Subject: [PATCH 15/69] topgit: Get a genuine source tarball; install `README'. svn path=/nixpkgs/trunk/; revision=19693 --- .../git-and-tools/default.nix | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/version-management/git-and-tools/default.nix b/pkgs/applications/version-management/git-and-tools/default.nix index 3a43e4ad812..27b700a5f53 100644 --- a/pkgs/applications/version-management/git-and-tools/default.nix +++ b/pkgs/applications/version-management/git-and-tools/default.nix @@ -55,22 +55,28 @@ rec { inherit fetchurl stdenv python git; }; - topGit = stdenv.mkDerivation { - name = "TopGit-git"; # official release 0.8 - # REGION AUTO UPDATE: { name = "topGit"; type="git"; url="http://repo.or.cz/w/topgit.git"; } - src= sourceFromHead "topGit-341a3713f5c399f97c5c68a74772b12bb3d2ca57.tar.gz" - (fetchurl { url = "http://mawercer.de/~nix/repos/topGit-341a3713f5c399f97c5c68a74772b12bb3d2ca57.tar.gz"; sha256 = "4d53343ed9ba735fb598d6576b20f2641d5a8374a5a11b21fcbcdc6da885e872"; }); - # END - phases="unpackPhase patchPhase installPhase"; + topGit = stdenv.mkDerivation rec { + name = "topgit-0.8"; + + src = fetchurl { + # Snapshot for the `topgit-0.8' tag. + url = "http://repo.or.cz/w/topgit.git/snapshot/f59e4f9e87e5f485fdaee0af002edd2105fa298a.tar.gz"; + sha256 = "0bz3anrzjcnywslh9679mhg7n5bdr1dmsbb5x3ywvkp3mma9b4xk"; + }; + installPhase = '' + mkdir -p "$out/share/doc/${name}" + cp -v README "$out/share/doc/${name}" + mkdir -p $out/etc/bash_completion.d make prefix=$out \ install mv contrib/tg-completion.bash $out/etc/bash_completion.d ''; + meta = { description = "TopGit aims to make handling of large amount of interdependent topic branches easier"; - maintainers = [lib.maintainers.marcweber]; + maintainers = [ lib.maintainers.marcweber lib.maintainers.ludo ]; homepage = http://repo.or.cz/w/topgit.git; # maybe there is also another one, I haven't checked license = "GPLv2"; }; From ca9dcb28a180a92c991684c19a462b7a9e1bf1f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 26 Jan 2010 21:45:07 +0000 Subject: [PATCH 16/69] topgit: Fix. svn path=/nixpkgs/trunk/; revision=19695 --- .../applications/version-management/git-and-tools/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/version-management/git-and-tools/default.nix b/pkgs/applications/version-management/git-and-tools/default.nix index 27b700a5f53..4c8e8395639 100644 --- a/pkgs/applications/version-management/git-and-tools/default.nix +++ b/pkgs/applications/version-management/git-and-tools/default.nix @@ -64,7 +64,9 @@ rec { sha256 = "0bz3anrzjcnywslh9679mhg7n5bdr1dmsbb5x3ywvkp3mma9b4xk"; }; - installPhase = '' + configurePhase = "export prefix=$out"; + + postInstall = '' mkdir -p "$out/share/doc/${name}" cp -v README "$out/share/doc/${name}" From 62c315a723fc937ff4681a096c9ca4d632c6edef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Tue, 26 Jan 2010 22:04:54 +0000 Subject: [PATCH 17/69] Adding libofx and updating opensp (to get libofx built). (I may have broken openjade... I will check later). svn path=/nixpkgs/trunk/; revision=19697 --- pkgs/development/libraries/libofx/default.nix | 22 + .../libraries/libofx/libofx-0.9.0-gcc43.patch | 375 ++++++++++++++++++ pkgs/tools/text/sgml/opensp/default.nix | 18 +- pkgs/top-level/all-packages.nix | 8 +- 4 files changed, 414 insertions(+), 9 deletions(-) create mode 100644 pkgs/development/libraries/libofx/default.nix create mode 100644 pkgs/development/libraries/libofx/libofx-0.9.0-gcc43.patch diff --git a/pkgs/development/libraries/libofx/default.nix b/pkgs/development/libraries/libofx/default.nix new file mode 100644 index 00000000000..2043381ffc6 --- /dev/null +++ b/pkgs/development/libraries/libofx/default.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchurl, opensp, pkgconfig, libxml2, curl }: + +stdenv.mkDerivation rec { + name = "libofx-0.9.1"; + + src = fetchurl { + url = "mirror://sourceforge/libofx/${name}.tar.gz"; + sha256 = "0gyana7v3pcqdpncjr5vg5z2r2z3rvg0fiml59mazi9n62zk86rj"; + }; + + patches = [ ./libofx-0.9.0-gcc43.patch ]; + + configureFlags = [ "--with-opensp-includes=${opensp}/include/OpenSP" ]; + buildInputs = [ opensp pkgconfig libxml2 curl ]; + + meta = { + description = "Opensource implementation of the Open Financial eXchange specification"; + homepage = http://libofx.sourceforge.net/; + license = "LGPL"; + }; +} + diff --git a/pkgs/development/libraries/libofx/libofx-0.9.0-gcc43.patch b/pkgs/development/libraries/libofx/libofx-0.9.0-gcc43.patch new file mode 100644 index 00000000000..63ced2d5f81 --- /dev/null +++ b/pkgs/development/libraries/libofx/libofx-0.9.0-gcc43.patch @@ -0,0 +1,375 @@ +http://bugs.gentoo.org/218782 +diff -NrU5 libofx-0.9.0.orig/lib/ofx_container_transaction.cpp libofx-0.9.0/lib/ofx_container_transaction.cpp +--- libofx-0.9.0.orig/lib/ofx_container_transaction.cpp 2007-11-10 00:10:49.000000000 +0100 ++++ libofx-0.9.0/lib/ofx_container_transaction.cpp 2008-04-21 22:26:24.000000000 +0200 +@@ -19,10 +19,11 @@ + + #ifdef HAVE_CONFIG_H + #include + #endif + ++#include + #include + #include "messages.hh" + #include "libofx.h" + #include "ofx_containers.hh" + #include "ofx_utilities.hh" +diff -NrU5 libofx-0.9.0.orig/lib/ofx_request_accountinfo.cpp libofx-0.9.0/lib/ofx_request_accountinfo.cpp +--- libofx-0.9.0.orig/lib/ofx_request_accountinfo.cpp 2007-10-28 03:33:43.000000000 +0100 ++++ libofx-0.9.0/lib/ofx_request_accountinfo.cpp 2008-04-21 22:26:24.000000000 +0200 +@@ -19,10 +19,11 @@ + + #ifdef HAVE_CONFIG_H + #include + #endif + ++#include + #include + #include "libofx.h" + #include "ofx_request_accountinfo.hh" + + using namespace std; +diff -NrU5 libofx-0.9.0.orig/lib/ofx_request.cpp libofx-0.9.0/lib/ofx_request.cpp +--- libofx-0.9.0.orig/lib/ofx_request.cpp 2007-10-28 03:37:52.000000000 +0100 ++++ libofx-0.9.0/lib/ofx_request.cpp 2008-04-21 22:26:24.000000000 +0200 +@@ -19,10 +19,11 @@ + + #ifdef HAVE_CONFIG_H + #include + #endif + ++#include + #include + #include "messages.hh" + #include "libofx.h" + #include "ofx_request.hh" + +diff -NrU5 libofx-0.9.0.orig/lib/ofx_request_statement.cpp libofx-0.9.0/lib/ofx_request_statement.cpp +--- libofx-0.9.0.orig/lib/ofx_request_statement.cpp 2007-10-28 13:57:18.000000000 +0100 ++++ libofx-0.9.0/lib/ofx_request_statement.cpp 2008-04-21 22:26:24.000000000 +0200 +@@ -19,10 +19,11 @@ + + #ifdef HAVE_CONFIG_H + #include + #endif + ++#include + #include + #include "libofx.h" + #include "ofx_utilities.hh" + #include "ofx_request_statement.hh" + +diff -NrU5 libofx-0.9.0.orig/lib/ofx_utilities.cpp libofx-0.9.0/lib/ofx_utilities.cpp +--- libofx-0.9.0.orig/lib/ofx_utilities.cpp 2007-10-27 14:12:49.000000000 +0200 ++++ libofx-0.9.0/lib/ofx_utilities.cpp 2008-04-21 22:26:24.000000000 +0200 +@@ -19,11 +19,12 @@ + #include + #include + + #include "ParserEventGeneratorKit.h" + #include "SGMLApplication.h" +-#include ++#include ++#include + #include + #include + #include "messages.hh" + #include "ofx_utilities.hh" + +diff -NrU5 libofx-0.9.0.orig/lib/ofx_utilities.cpp.orig libofx-0.9.0/lib/ofx_utilities.cpp.orig +--- libofx-0.9.0.orig/lib/ofx_utilities.cpp.orig 1970-01-01 01:00:00.000000000 +0100 ++++ libofx-0.9.0/lib/ofx_utilities.cpp.orig 2007-10-27 14:12:49.000000000 +0200 +@@ -0,0 +1,245 @@ ++/*************************************************************************** ++ ofx_util.cpp ++ ------------------- ++ copyright : (C) 2002 by Benoit Grégoire ++ email : bock@step.polymtl.ca ++ ***************************************************************************/ ++/**@file ++ * \brief Various simple functions for type conversion & al ++ */ ++/*************************************************************************** ++ * * ++ * This program is free software; you can redistribute it and/or modify * ++ * it under the terms of the GNU General Public License as published by * ++ * the Free Software Foundation; either version 2 of the License, or * ++ * (at your option) any later version. * ++ * * ++ ***************************************************************************/ ++#include ++#include ++#include ++ ++#include "ParserEventGeneratorKit.h" ++#include "SGMLApplication.h" ++#include ++#include ++#include ++#include "messages.hh" ++#include "ofx_utilities.hh" ++ ++#ifdef OS_WIN32 ++# define DIRSEP "\\" ++#else ++# define DIRSEP "/" ++#endif ++ ++ ++using namespace std; ++/** ++ Convert an OpenSP CharString directly to a C++ stream, to enable the use of cout directly for debugging. ++*/ ++/*ostream &operator<<(ostream &os, SGMLApplication::CharString s) ++ { ++ for (size_t i = 0; i < s.len; i++) ++ { ++ os << ((char *)(s.ptr))[i*sizeof(SGMLApplication::Char)]; ++ } ++ return os; ++ }*/ ++ ++/*wostream &operator<<(wostream &os, SGMLApplication::CharString s) ++ { ++ for (size_t i = 0; i < s.len; i++) ++ {//cout<
++ * To solve this problem (since usually a time error is relatively unimportant, but date error is), and to avoid problems in Australia caused by the behaviour in libofx up to 0.6.4, it was decided starting with 0.6.5 to use the following behavior:

++ * -No specific time is given in the file (date only): Considering that most banks seem to be sending dates in this format represented as local time (not compliant with the specs), the transaction is assumed to have occurred 11h59 (just before noon) LOCAL TIME. This way, we should never change the date, since you'd have to travel in a timezone at least 11 hours backwards or 13 hours forward from your own to introduce mistakes. However, if you are in timezone +13 or +14, and your bank meant the data to be interpreted by the spec, you will get the wrong date. We hope that banks in those timezone will either represent in local time like most, or specify the timezone properly.

++ * -No timezone is specified, but exact time is, the same behavior is mostly used, as many banks just append zeros instead of using the short notation. However, the time specified is used, even if 0 (midnight).

++ * -When a timezone is specified, it is always used to properly convert in local time, following the spec. ++ * ++ */ ++time_t ofxdate_to_time_t(const string ofxdate) ++{ ++ struct tm time; ++ double local_offset; /* in seconds */ ++ float ofx_gmt_offset; /* in fractionnal hours */ ++ char timezone[4]; /* Original timezone: the library does not expose this value*/ ++ char exact_time_specified = false; ++ char time_zone_specified = false; ++ ++ time_t temptime; ++ std::time(&temptime); ++ local_offset = difftime(mktime(localtime(&temptime)), mktime(gmtime(&temptime))); ++ ++ if(ofxdate.size()!=0){ ++ time.tm_year=atoi(ofxdate.substr(0,4).c_str())-1900; ++ time.tm_mon=atoi(ofxdate.substr(4,2).c_str())-1; ++ time.tm_mday=atoi(ofxdate.substr(6,2).c_str()); ++ if(ofxdate.size()>8) { ++ /* if exact time is specified */ ++exact_time_specified = true; ++ time.tm_hour=atoi(ofxdate.substr(8,2).c_str()); ++ time.tm_min=atoi(ofxdate.substr(10,2).c_str()); ++ time.tm_sec=atoi(ofxdate.substr(12,2).c_str()); ++ } ++ ++ /* Check if the timezone has been specified */ ++ string::size_type startidx = ofxdate.find("["); ++ string::size_type endidx; ++ if(startidx!=string::npos){ ++ /* Time zone was specified */ ++ time_zone_specified = true; ++ startidx++; ++ endidx = ofxdate.find(":", startidx)-1; ++ ofx_gmt_offset=atof(ofxdate.substr(startidx,(endidx-startidx)+1).c_str()); ++ startidx = endidx+2; ++ strncpy(timezone,ofxdate.substr(startidx,3).c_str(),4); ++ } ++ else{ ++ /* Time zone was not specified, assume GMT (provisionnaly) in case exact time is specified */ ++ ofx_gmt_offset=0; ++ strcpy(timezone, "GMT"); ++ } ++ ++ if(time_zone_specified == true) ++ { ++ /* If the timezone is specified always correct the timezone */ ++ /* If the timezone is not specified, but the exact time is, correct the timezone, assuming GMT following the spec */ ++ /* Correct the time for the timezone */ ++ time.tm_sec = time.tm_sec + (int)(local_offset - (ofx_gmt_offset*60*60));//Convert from fractionnal hours to seconds ++ } ++ else if (exact_time_specified == false) ++ { ++ /*Time zone data missing and exact time not specified, diverge from the OFX spec ans assume 11h59 local time */ ++ time.tm_hour=11; ++ time.tm_min=59; ++ time.tm_sec=0; ++ } ++ } ++ else{ ++ message_out(ERROR, "ofxdate_to_time_t(): Unable to convert time, string is 0 length!"); ++ } ++ return mktime(&time); ++} ++ ++/** ++ * Convert a C++ string containing an amount of money as specified by the OFX standard and convert it to a double float. ++ *\note The ofx number format is the following: "." or "," as decimal separator, NO thousands separator. ++ */ ++double ofxamount_to_double(const string ofxamount) ++{ ++ //Replace commas and decimal points for atof() ++ string::size_type idx; ++ string tmp = ofxamount; ++ ++ idx = tmp.find(','); ++ if(idx==string::npos){ ++ idx = tmp.find('.'); ++ } ++ ++ if(idx!=string::npos){ ++ tmp.replace(idx,1,1,((localeconv())->decimal_point)[0]); ++ } ++ ++ return atof(tmp.c_str()); ++} ++ ++/** ++Many weird caracters can be present inside a SGML element, as a result on the transfer protocol, or for any reason. This function greatly enhances the reliability of the library by zapping those gremlins (backspace,formfeed,newline,carriage return, horizontal and vertical tabs) as well as removing whitespace at the begining and end of the string. Otherwise, many problems will occur during stringmatching. ++*/ ++string strip_whitespace(const string para_string) ++{ ++ size_t index; ++ size_t i; ++ string temp_string = para_string; ++ const char *whitespace = " \b\f\n\r\t\v"; ++ const char *abnormal_whitespace = "\b\f\n\r\t\v";//backspace,formfeed,newline,cariage return, horizontal and vertical tabs ++ message_out(DEBUG4,"strip_whitespace() Before: |"+temp_string+"|"); ++ for(i=0;i<=temp_string.size()&&temp_string.find_first_of(whitespace, i)==i&&temp_string.find_first_of(whitespace, i)!=string::npos;i++); ++ temp_string.erase(0,i);//Strip leading whitespace ++ for(i=temp_string.size()-1;(i>=0)&&(temp_string.find_last_of(whitespace, i)==i)&&(temp_string.find_last_of(whitespace, i)!=string::npos);i--); ++ temp_string.erase(i+1,temp_string.size()-(i+1));//Strip trailing whitespace ++ ++while ((index = temp_string.find_first_of(abnormal_whitespace))!=string::npos) ++ { ++ temp_string.erase(index,1);//Strip leading whitespace ++ }; ++ ++ message_out(DEBUG4,"strip_whitespace() After: |"+temp_string+"|"); ++ ++ return temp_string; ++} ++ ++ ++int mkTempFileName(const char *tmpl, char *buffer, unsigned int size) { ++ const char *tmp_dir; ++ ++ tmp_dir = getenv ("TMPDIR"); ++ if (!tmp_dir) ++ tmp_dir = getenv ("TMP"); ++ if (!tmp_dir) ++ tmp_dir = getenv ("TEMP"); ++ ++ if (!tmp_dir) ++ { ++#ifdef OS_WIN32 ++ tmp_dir = "C:\\"; ++#else ++ tmp_dir = "/tmp"; ++#endif /* !OS_WIN32 */ ++ } ++ ++ strncpy(buffer, tmp_dir, size); ++ assert((strlen(buffer)+strlen(tmpl)+2) /* Include config constants, e.g., VERSION TF */ + #include + #include + #include ++#include + + #ifdef HAVE_LIBCURL + #include + #endif + +diff -NrU5 libofx-0.9.0.orig/ofxconnect/ofxpartner.cpp libofx-0.9.0/ofxconnect/ofxpartner.cpp +--- libofx-0.9.0.orig/ofxconnect/ofxpartner.cpp 2006-03-26 06:49:54.000000000 +0200 ++++ libofx-0.9.0/ofxconnect/ofxpartner.cpp 2008-04-21 22:28:26.000000000 +0200 +@@ -33,10 +33,13 @@ + #include + + #include + #include + #include ++#include ++#include ++ + + using std::string; + using std::vector; + using std::cout; + using std::endl; +diff -NrU5 libofx-0.9.0.orig/ofxdump/ofxdump.cpp libofx-0.9.0/ofxdump/ofxdump.cpp +--- libofx-0.9.0.orig/ofxdump/ofxdump.cpp 2006-08-02 06:19:22.000000000 +0200 ++++ libofx-0.9.0/ofxdump/ofxdump.cpp 2008-04-21 22:26:24.000000000 +0200 +@@ -27,10 +27,12 @@ + * (at your option) any later version. * + * * + ***************************************************************************/ + #include + #include ++#include ++#include + #include + #include "libofx.h" + #include /* for printf() */ + #include /* Include config constants, e.g., VERSION TF */ + #include diff --git a/pkgs/tools/text/sgml/opensp/default.nix b/pkgs/tools/text/sgml/opensp/default.nix index 4acf13af6fb..76efbd0b1af 100644 --- a/pkgs/tools/text/sgml/opensp/default.nix +++ b/pkgs/tools/text/sgml/opensp/default.nix @@ -1,16 +1,20 @@ -{stdenv, fetchurl}: +{stdenv, fetchurl, xmlto, docbook_xml_dtd_412, libxslt, docbook_xsl}: stdenv.mkDerivation { - # OpenSP-1.5.1 requires gcc 3.3 to build. - # The next release is likely to be compatible with newer gccs. - # If so the overrideGCC in top-level/all-packages should be removed. - name = "OpenSP-1.5.1"; + name = "opensp-1.5.2"; src = fetchurl { - url = "http://prdownloads.sourceforge.net/openjade/OpenSP-1.5.1.tar.gz"; - sha256 = "0svkgk85m6f848fi3nxnrkzg62422wxr739w5r1yrmn31n24j1iz"; + url = mirror://sourceforge/openjade/OpenSP-1.5.2.tar.gz; + sha256 = "1khpasr6l0a8nfz6kcf3s81vgdab8fm2dj291n5r2s53k228kx2p"; }; + patchPhase = '' + sed -i s,/usr/share/sgml/docbook/xml-dtd-4.1.2/,${docbook_xml_dtd_412}/xml/dtd/docbook/, \ + docsrc/*.xml + ''; + + buildInputs = [ xmlto docbook_xml_dtd_412 libxslt docbook_xsl ]; + meta = { description = "A suite of SGML/XML processing tools"; license = "BSD"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b828b3f961d..68d7c8f04ff 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1214,8 +1214,8 @@ let }; opensp = import ../tools/text/sgml/opensp { - inherit fetchurl; - stdenv = overrideGCC stdenv gcc33; + inherit fetchurl xmlto docbook_xml_dtd_412 libxslt docbook_xsl; + inherit stdenv; }; openvpn = import ../tools/networking/openvpn { @@ -4117,6 +4117,10 @@ let inherit fetchurl stdenv; }; + libofx = import ../development/libraries/libofx { + inherit fetchurl stdenv opensp pkgconfig libxml2 curl; + }; + libogg = import ../development/libraries/libogg { inherit fetchurl stdenv; }; From 8e55fad6d169fcef1e54a46f83e7faea69f00d7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Tue, 26 Jan 2010 22:22:11 +0000 Subject: [PATCH 18/69] Adding homebank, personal finance software. svn path=/nixpkgs/trunk/; revision=19698 --- pkgs/applications/office/homebank/default.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 5 ++++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/applications/office/homebank/default.nix diff --git a/pkgs/applications/office/homebank/default.nix b/pkgs/applications/office/homebank/default.nix new file mode 100644 index 00000000000..4a04580201c --- /dev/null +++ b/pkgs/applications/office/homebank/default.nix @@ -0,0 +1,27 @@ +{ fetchurl, stdenv, gtk, pkgconfig, libofx, intltool }: + +let + download_root = "http://homebank.free.fr/public/"; + name = "homebank-4.1"; + lastrelease = download_root + name + ".tar.gz"; + oldrelease = download_root + "old/" + name + ".tar.gz"; +in + +stdenv.mkDerivation { + inherit name; + + src = fetchurl { + urls = [ lastrelease oldrelease ]; + sha256 = "0nv69rmcvywgks58w20qgbw8v0ir57gys4zd2gcys6knj6q323b8"; + }; + + buildInputs = [ pkgconfig gtk libofx intltool ]; + + meta = { + description = "Free, easy, personal accounting for everyone"; + homepage = http://homebank.free.fr/; + license = "GPLv2+"; + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 68d7c8f04ff..f29a0edb602 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7116,6 +7116,11 @@ let inherit fetchurl stdenv; }; + homebank = import ../applications/office/homebank { + inherit fetchurl stdenv pkgconfig libofx intltool; + inherit (gtkLibs) gtk; + }; + hugin = import ../applications/graphics/hugin { inherit fetchurl cmake panotools libtiff libpng boost pkgconfig exiv2 gettext ilmbase enblendenfuse autopanosiftc mesa freeglut From 828985f2d72910cd8bef7c147328b49a1bb855f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 27 Jan 2010 08:53:31 +0000 Subject: [PATCH 19/69] GNU IceCat 3.6. svn path=/nixpkgs/trunk/; revision=19702 --- .../networking/browsers/icecat-3/default.nix | 9 +++++---- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/networking/browsers/icecat-3/default.nix b/pkgs/applications/networking/browsers/icecat-3/default.nix index 908b1eff225..23944bde79d 100644 --- a/pkgs/applications/networking/browsers/icecat-3/default.nix +++ b/pkgs/applications/networking/browsers/icecat-3/default.nix @@ -1,19 +1,20 @@ -{ stdenv, fetchurl, pkgconfig, gtk, pango, perl, python, ply, zip, libIDL +{ fetchurl, stdenv, xz, pkgconfig, gtk, pango, perl, python, ply, zip, libIDL , libjpeg, libpng, zlib, cairo, dbus, dbus_glib, bzip2, xlibs, alsaLib , gnomevfs, libgnomeui , freetype, fontconfig , application ? "browser" }: -let version = "3.5.7"; in +let version = "3.6"; in stdenv.mkDerivation { name = "icecat-${version}"; src = fetchurl { - url = "mirror://gnu/gnuzilla/${version}/icecat-${version}.tar.bz2"; - sha256 = "0pz48rz9rpig3xdvs6jkjc4azhwxabn81bz7c0alkfkdzjmcl8ym"; + url = "mirror://gnu/gnuzilla/${version}/icecat-${version}.tar.xz"; + sha256 = "149l00a9q3dnkdsc2spcfpx9fch4xhxnikbzgfiqxjsr3py07y41"; }; buildInputs = [ + xz libgnomeui gnomevfs alsaLib pkgconfig gtk perl zip libIDL libjpeg libpng zlib cairo bzip2 python ply dbus dbus_glib pango freetype fontconfig diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f29a0edb602..dd66e6b92ee 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7136,7 +7136,7 @@ let }; icecat3 = lowPrio (import ../applications/networking/browsers/icecat-3 { - inherit fetchurl stdenv pkgconfig perl zip libjpeg libpng zlib cairo + inherit fetchurl stdenv xz pkgconfig perl zip libjpeg libpng zlib cairo python dbus dbus_glib freetype fontconfig bzip2 xlibs alsaLib; inherit (gnome) libIDL libgnomeui gnomevfs gtk pango; inherit (pythonPackages) ply; From 6e6f057d1889426cb9cee93c7e5ca79cf7f857a0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 27 Jan 2010 10:46:58 +0000 Subject: [PATCH 20/69] * icecatXulrunner3 needs a xz argument. svn path=/nixpkgs/trunk/; revision=19704 --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dd66e6b92ee..ae15d200752 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7144,7 +7144,7 @@ let icecatXulrunner3 = lowPrio (import ../applications/networking/browsers/icecat-3 { application = "xulrunner"; - inherit fetchurl stdenv pkgconfig perl zip libjpeg libpng zlib cairo + inherit fetchurl stdenv xz pkgconfig perl zip libjpeg libpng zlib cairo python dbus dbus_glib freetype fontconfig bzip2 xlibs alsaLib; inherit (gnome) libIDL libgnomeui gnomevfs gtk pango; inherit (pythonPackages) ply; From bd14a5d297e00253fcc908ffbcbf86dc9b5d836c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 27 Jan 2010 10:51:23 +0000 Subject: [PATCH 21/69] * qemu-kvm 0.12.2. svn path=/nixpkgs/trunk/; revision=19705 --- pkgs/os-specific/linux/qemu-kvm/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/qemu-kvm/default.nix b/pkgs/os-specific/linux/qemu-kvm/default.nix index bca1d4b3026..1334bbd2e36 100644 --- a/pkgs/os-specific/linux/qemu-kvm/default.nix +++ b/pkgs/os-specific/linux/qemu-kvm/default.nix @@ -3,11 +3,11 @@ assert stdenv.isLinux; stdenv.mkDerivation rec { - name = "qemu-kvm-0.12.1.2"; + name = "qemu-kvm-0.12.2"; src = fetchurl { url = "mirror://sourceforge/kvm/${name}.tar.gz"; - sha256 = "1k5xx9rn0n311bgvl6g9c8h1bxj2nhjpjpzbngy0sf9hdjidnba7"; + sha256 = "0nmg9dp3h040dkxq5vv4i7ip76v98rnhzqwy4pd88zznawc2k9l2"; }; patches = [ ./unix-domain.patch ]; From 77bf39bf826fe945838e6868ae065ad08c29141c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 27 Jan 2010 10:58:31 +0000 Subject: [PATCH 22/69] * Fix Nixpksg evaluation. svn path=/nixpkgs/trunk/; revision=19706 --- pkgs/desktops/gnome-2.28/default.nix | 1 + pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 3 insertions(+) diff --git a/pkgs/desktops/gnome-2.28/default.nix b/pkgs/desktops/gnome-2.28/default.nix index cfc1b157977..fb6b0327432 100644 --- a/pkgs/desktops/gnome-2.28/default.nix +++ b/pkgs/desktops/gnome-2.28/default.nix @@ -12,6 +12,7 @@ rec { # !!! Missing! Need to add these. vte = throw "vte not implemented"; + libgnomeprintui = throw "libgnomeprintui not implemented"; gtksourceview_24 = gtksourceview; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ae15d200752..0e8d59ebfca 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1137,9 +1137,11 @@ let inherit fetchurl stdenv; }; + /* netpbm = import ../tools/graphics/netpbm { inherit stdenv fetchsvn libjpeg libpng zlib flex perl libxml2 makeWrapper; }; + */ netselect = import ../tools/networking/netselect { inherit fetchurl stdenv; From 13417770a3f6c5b1fc77fa8211505137f1758570 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Wed, 27 Jan 2010 12:12:35 +0000 Subject: [PATCH 23/69] applying patches provided by griswold svn path=/nixpkgs/trunk/; revision=19707 --- pkgs/build-support/fetchgit/builder.sh | 6 +- pkgs/build-support/fetchgit/default.nix | 4 +- pkgs/build-support/fetchhg/nix-prefetch-hg | 71 +++++++++++++++++++ .../libraries/classads/default.nix | 22 ++++++ pkgs/development/libraries/gsoap/default.nix | 19 +++++ .../development/libraries/libvirt/default.nix | 28 ++++++++ .../libraries/libvirt/non-absolute-ld.patch | 12 ++++ pkgs/misc/tex/latex2html/default.nix | 23 ++++++ pkgs/tools/compression/ncompress/default.nix | 4 +- pkgs/tools/graphics/netpbm/rgbpaths.patch | 16 +++++ pkgs/top-level/all-packages.nix | 27 +++++-- 11 files changed, 221 insertions(+), 11 deletions(-) create mode 100644 pkgs/build-support/fetchhg/nix-prefetch-hg create mode 100644 pkgs/development/libraries/classads/default.nix create mode 100644 pkgs/development/libraries/gsoap/default.nix create mode 100644 pkgs/development/libraries/libvirt/default.nix create mode 100644 pkgs/development/libraries/libvirt/non-absolute-ld.patch create mode 100644 pkgs/misc/tex/latex2html/default.nix create mode 100644 pkgs/tools/graphics/netpbm/rgbpaths.patch diff --git a/pkgs/build-support/fetchgit/builder.sh b/pkgs/build-support/fetchgit/builder.sh index 08a1cc5d341..ba06aed90e1 100644 --- a/pkgs/build-support/fetchgit/builder.sh +++ b/pkgs/build-support/fetchgit/builder.sh @@ -7,7 +7,9 @@ if test -n "$rev"; then cd $out git checkout $rev fi -find $out -name .git\* | xargs rm -rf + +if test -z "$leaveDotGit"; then + find $out -name .git\* | xargs rm -rf +fi stopNest - diff --git a/pkgs/build-support/fetchgit/default.nix b/pkgs/build-support/fetchgit/default.nix index 8fd86cd2481..a0ad57ea306 100644 --- a/pkgs/build-support/fetchgit/default.nix +++ b/pkgs/build-support/fetchgit/default.nix @@ -1,5 +1,5 @@ {stdenv, git}: -{url, rev ? "HEAD", md5 ? "", sha256 ? ""}: +{url, rev ? "HEAD", md5 ? "", sha256 ? "", leaveDotGit ? false }: /* NOTE: fetchgit has one problem: git fetch only works for refs. @@ -32,7 +32,7 @@ stdenv.mkDerivation { outputHashMode = "recursive"; outputHash = if sha256 == "" then md5 else sha256; - inherit url rev; + inherit url rev leaveDotGit; impureEnvVars = [ # We borrow these environment variables from the caller to allow diff --git a/pkgs/build-support/fetchhg/nix-prefetch-hg b/pkgs/build-support/fetchhg/nix-prefetch-hg new file mode 100644 index 00000000000..b2711392acc --- /dev/null +++ b/pkgs/build-support/fetchhg/nix-prefetch-hg @@ -0,0 +1,71 @@ +#! /bin/sh -e + +url=$1 +rev=$2 +expHash=$3 + +hashType=$NIX_HASH_ALGO +if test -z "$hashType"; then + hashType=sha256 +fi +if test -z "$hashFormat"; then + hashFormat=--base32 +fi + +if test -z "$url"; then + echo "syntax: nix-prefetch-hg URL [rev [EXPECTED-HASH]]" >&2 + exit 1 +fi + +test -n "$rev" || rev="tip" + + +# If the hash was given, a file with that hash may already be in the +# store. +if test -n "$expHash"; then + finalPath=$(nix-store --print-fixed-path --recursive "$hashType" "$expHash" hg-archive) + if ! nix-store --check-validity "$finalPath" 2> /dev/null; then + finalPath= + fi + hash=$expHash +fi + + +# If we don't know the hash or a path with that hash doesn't exist, +# download the file and add it to the store. +if test -z "$finalPath"; then + + tmpPath=/tmp/hg-checkout-tmp-$$ + tmpClone=$tmpPath/hg-clone + tmpArchive=$tmpPath/hg-archive + mkdir $tmpPath + + trap "rm -rf $tmpPath" EXIT + + # Perform the checkout. + hg clone -q -y -U "$url" $tmpClone >&2 + hg archive -q -y -r "$rev" --cwd $tmpClone $tmpArchive + + + # Compute the hash. + hash=$(nix-hash --type $hashType $hashFormat $tmpArchive) + if ! test -n "$QUIET"; then echo "hash is $hash" >&2; fi + + # Add the downloaded file to the Nix store. + finalPath=$(nix-store --add-fixed --recursive "$hashType" $tmpArchive) + + if test -n "$expHash" -a "$expHash" != "$hash"; then + echo "hash mismatch for URL \`$url'" + exit 1 + fi + + +fi + +if ! test -n "$QUIET"; then echo "path is $finalPath" >&2; fi + +echo $hash + +if test -n "$PRINT_PATH"; then + echo $finalPath +fi diff --git a/pkgs/development/libraries/classads/default.nix b/pkgs/development/libraries/classads/default.nix new file mode 100644 index 00000000000..5739690e59a --- /dev/null +++ b/pkgs/development/libraries/classads/default.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchurl }: + +let version = "1.0.4"; in + +stdenv.mkDerivation { + name = "classads-${version}"; + + src = fetchurl { + url = "ftp://ftp.cs.wisc.edu/condor/classad/c++/classads-${version}.tar.gz"; + sha256 = "80b11c6d383891c90e04e403b2f282e91177940c3fe536082899fbfb9e854d24"; + }; + + configureFlags = '' + --enable-namespace --enable-flexible-member + ''; + + meta = { + homepage = http://www.cs.wisc.edu/condor/classad/; + description = "The Classified Advertisements library provides a generic means for matching resources."; + license = "Apache-2.0"; + }; +} diff --git a/pkgs/development/libraries/gsoap/default.nix b/pkgs/development/libraries/gsoap/default.nix new file mode 100644 index 00000000000..4d661d4088f --- /dev/null +++ b/pkgs/development/libraries/gsoap/default.nix @@ -0,0 +1,19 @@ +{ stdenv, fetchurl, m4, bison, flex, openssl, zlib }: + +let version = "2.7.15"; in + +stdenv.mkDerivation { + name = "gsoap-${version}"; + + src = fetchurl { + url = "mirror://sourceforge/gsoap2/files/gSOAP/2.7.15%20stable/gsoap_${version}.tar.gz"; + sha256 = "3ed883ab1a3d32b5bb2bf599306f247f6de3ffedd8890eb0e6303ae15995dc12"; + }; + + buildInputs = [ m4 bison flex openssl zlib ]; + meta = { + homepage = "http://www.cs.fsu.edu/~engelen/soap.html"; + description = "The gSOAP toolkit is an open source C and C++ software development toolkit for SOAP/WSDL and XML Web services."; + license = "free-non-copyleft"; + }; +} diff --git a/pkgs/development/libraries/libvirt/default.nix b/pkgs/development/libraries/libvirt/default.nix new file mode 100644 index 00000000000..39539b9ad4b --- /dev/null +++ b/pkgs/development/libraries/libvirt/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchurl, libxml2, gnutls, devicemapper, perl }: + +let version = "0.7.5"; in + +stdenv.mkDerivation { + name = "libvirt-${version}"; + + src = fetchurl { + url = "http://libvirt.org/sources/libvirt-${version}.tar.gz"; + sha256 = "922481aadf72a74cf14012fe3967c60d01e70f7e88908410d57428943ab4eb8b"; + }; + + buildInputs = [ libxml2 gnutls devicemapper perl ]; + + # fix for redhat bz 531496 + patches = [ ./non-absolute-ld.patch ]; + + # xen currently disabled in nixpkgs + configureFlags = '' + --without-xen + ''; + + meta = { + homepage = http://libvirt.org/; + description = "A toolkit to interact with the virtualization capabilities of recent versions of Linux (and other OSes)."; + license = "LGPLv2+"; + }; +} diff --git a/pkgs/development/libraries/libvirt/non-absolute-ld.patch b/pkgs/development/libraries/libvirt/non-absolute-ld.patch new file mode 100644 index 00000000000..ba73010c439 --- /dev/null +++ b/pkgs/development/libraries/libvirt/non-absolute-ld.patch @@ -0,0 +1,12 @@ +diff -Naur libvirt-0.7.5.orig/configure libvirt-0.7.5/configure +--- libvirt-0.7.5.orig/configure 2009-12-23 09:17:34.000000000 -0600 ++++ libvirt-0.7.5/configure 2010-01-13 21:16:02.000000000 -0600 +@@ -41051,7 +41051,7 @@ + + + VERSION_SCRIPT_FLAGS=-Wl,--version-script= +-`/usr/bin/ld --help 2>&1 | grep -- --version-script >/dev/null` || \ ++`ld --help 2>&1 | grep -- --version-script >/dev/null` || \ + VERSION_SCRIPT_FLAGS="-Wl,-M -Wl," + + diff --git a/pkgs/misc/tex/latex2html/default.nix b/pkgs/misc/tex/latex2html/default.nix new file mode 100644 index 00000000000..354cb6d22b0 --- /dev/null +++ b/pkgs/misc/tex/latex2html/default.nix @@ -0,0 +1,23 @@ +{stdenv, fetchurl, tex, perl, netpbm, ghostscript}: + +stdenv.mkDerivation { + name = "latex2html-2002-1"; + + buildInputs = [ tex perl ghostscript netpbm ]; + + preConfigure = '' + configureFlags="--with-texpath=$out/share/texmf-nix"; + ''; + + src = fetchurl { + url = mirror://ubuntu/pool/multiverse/l/latex2html/latex2html_2002-2-1-20050114.orig.tar.gz; + sha256 = "22049a77cf88a647776e61e06800ace4f9a06afc6ffe2590574487f023d0881f"; + }; + + meta = { + homepage = http://www.latex2html.org/; + license = "unfree-redistributable"; + description = "Convertor written in Perl that converts LaTeX documents to HTML"; + }; + +} diff --git a/pkgs/tools/compression/ncompress/default.nix b/pkgs/tools/compression/ncompress/default.nix index 33edf9bb84e..a97ab190678 100644 --- a/pkgs/tools/compression/ncompress/default.nix +++ b/pkgs/tools/compression/ncompress/default.nix @@ -13,6 +13,8 @@ stdenv.mkDerivation { }; meta = { - homepage = http://sourceforge.net/projects/ncompress/files/ncompress%20%28bugfixes%29/ncompress-4.2.4.2/ncompress-4.2.4.2.tar.gz/download; + homepage = http://ncompress.sourceforge.net/; + license = "free-non-copyleft"; + description = "A fast, simple LZW file compressor"; }; } diff --git a/pkgs/tools/graphics/netpbm/rgbpaths.patch b/pkgs/tools/graphics/netpbm/rgbpaths.patch new file mode 100644 index 00000000000..0e6baa78bfe --- /dev/null +++ b/pkgs/tools/graphics/netpbm/rgbpaths.patch @@ -0,0 +1,16 @@ +diff -Naur advanced.orig/pm_config.in.h advanced/pm_config.in.h +--- advanced.orig/pm_config.in.h 2010-01-12 22:04:07.000000000 +0100 ++++ advanced/pm_config.in.h 2010-01-12 22:05:56.000000000 +0100 +@@ -67,9 +67,9 @@ + #define RGB_DB2 "PBMplus_Dir:RGB.TXT" + #define RGB_DB3 "PBMplus_Dir:RGB.TXT" + #else +-#define RGB_DB1 "/usr/lib/X11/rgb.txt" +-#define RGB_DB2 "/usr/share/X11/rgb.txt" +-#define RGB_DB3 "/usr/X11R6/lib/X11/rgb.txt" ++#define RGB_DB1 "@rgbPath1@" ++#define RGB_DB2 "@rgbPath2@" ++#define RGB_DB3 "@rgbPath3@" + #endif + + /* CONFIGURE: This is the name of an environment variable that tells diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0e8d59ebfca..c7680244b5c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -442,10 +442,6 @@ let inherit fetchurl stdenv; }; - ncompress = import ../tools/compression/ncompress { - inherit fetchurl stdenv; - }; - bzip2 = useFromStdenv "bzip2" (import ../tools/compression/bzip2 { inherit fetchurl stdenv; @@ -1129,6 +1125,10 @@ let inherit fetchurl stdenv ncurses coreutils; }; + ncompress = import ../tools/compression/ncompress { + inherit fetchurl stdenv; + }; + netcat = import ../tools/networking/netcat { inherit fetchurl stdenv; }; @@ -1137,11 +1137,9 @@ let inherit fetchurl stdenv; }; - /* netpbm = import ../tools/graphics/netpbm { inherit stdenv fetchsvn libjpeg libpng zlib flex perl libxml2 makeWrapper; }; - */ netselect = import ../tools/networking/netselect { inherit fetchurl stdenv; @@ -3239,6 +3237,10 @@ let inherit (xlibs) libX11 xf86vidmodeproto libXmu libXxf86vm; }; + classads = import ../development/libraries/classads { + inherit fetchurl stdenv; + }; + classpath = import ../development/libraries/java/classpath { javac = gcj; jvm = gcj; @@ -3633,6 +3635,10 @@ let inherit fetchurl stdenv; }; + gsoap = import ../development/libraries/gsoap { + inherit fetchurl stdenv m4 bison flex openssl zlib; + }; + gtkimageview = import ../development/libraries/gtkimageview { inherit fetchurl stdenv pkgconfig; inherit (gnome) gtk; @@ -4216,6 +4222,10 @@ let inherit fetchurl stdenv; }; + libvirt = import ../development/libraries/libvirt { + inherit stdenv fetchurl libxml2 gnutls devicemapper perl; + }; + libvncserver = builderDefsPackage (import ../development/libraries/libvncserver) { inherit libtool libjpeg openssl zlib; inherit (xlibs) xproto libX11 damageproto libXdamage @@ -8647,6 +8657,11 @@ let inherit stdenv fetchsvn apacheAnt jdk axis2 shebangfix; }; + latex2html = import ../misc/tex/latex2html/default.nix { + inherit fetchurl stdenv perl ghostscript netpbm; + tex = tetex; + }; + pgadmin = import ../applications/misc/pgadmin { inherit fetchurl stdenv postgresql libxml2 libxslt openssl; inherit wxGTK; From 87e7334e643665aec382edd2f599b076a50b1d48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 27 Jan 2010 15:25:31 +0000 Subject: [PATCH 24/69] GNU IceCat: Stick to good ol' bzip2 for now. svn path=/nixpkgs/trunk/; revision=19712 --- pkgs/applications/networking/browsers/icecat-3/default.nix | 7 +++---- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/networking/browsers/icecat-3/default.nix b/pkgs/applications/networking/browsers/icecat-3/default.nix index 23944bde79d..373122e4152 100644 --- a/pkgs/applications/networking/browsers/icecat-3/default.nix +++ b/pkgs/applications/networking/browsers/icecat-3/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, xz, pkgconfig, gtk, pango, perl, python, ply, zip, libIDL +{ fetchurl, stdenv, pkgconfig, gtk, pango, perl, python, ply, zip, libIDL , libjpeg, libpng, zlib, cairo, dbus, dbus_glib, bzip2, xlibs, alsaLib , gnomevfs, libgnomeui , freetype, fontconfig @@ -9,12 +9,11 @@ stdenv.mkDerivation { name = "icecat-${version}"; src = fetchurl { - url = "mirror://gnu/gnuzilla/${version}/icecat-${version}.tar.xz"; - sha256 = "149l00a9q3dnkdsc2spcfpx9fch4xhxnikbzgfiqxjsr3py07y41"; + url = "mirror://gnu/gnuzilla/${version}/icecat-${version}.tar.bz2"; + sha256 = "0fsf8zd8nncg1w1gg2jhlxwkbljvrx4mm9pywasklyi0gvi939ds"; }; buildInputs = [ - xz libgnomeui gnomevfs alsaLib pkgconfig gtk perl zip libIDL libjpeg libpng zlib cairo bzip2 python ply dbus dbus_glib pango freetype fontconfig diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c7680244b5c..e6163a30892 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7148,7 +7148,7 @@ let }; icecat3 = lowPrio (import ../applications/networking/browsers/icecat-3 { - inherit fetchurl stdenv xz pkgconfig perl zip libjpeg libpng zlib cairo + inherit fetchurl stdenv pkgconfig perl zip libjpeg libpng zlib cairo python dbus dbus_glib freetype fontconfig bzip2 xlibs alsaLib; inherit (gnome) libIDL libgnomeui gnomevfs gtk pango; inherit (pythonPackages) ply; From db04d4f6444c15260c8939bc0de544addd1d969f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 27 Jan 2010 18:27:55 +0000 Subject: [PATCH 25/69] Making opencascade put header files in 'include', and not 'inc'. I also make it to install the documentation. svn path=/nixpkgs/trunk/; revision=19715 --- pkgs/development/libraries/opencascade/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/opencascade/default.nix b/pkgs/development/libraries/opencascade/default.nix index de3b9f32cf3..2f178edccd5 100644 --- a/pkgs/development/libraries/opencascade/default.nix +++ b/pkgs/development/libraries/opencascade/default.nix @@ -1,6 +1,6 @@ {stdenv, fetchurl, mesa, qt4, tcl, tk}: -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "opencascade-6.3.0"; src = fetchurl { url = http://files.opencascade.com/OCC_6.3_release/OpenCASCADE_src.tgz; @@ -11,6 +11,12 @@ stdenv.mkDerivation { preConfigure = "cd ros"; + postInstall = '' + mv $out/inc $out/include + ensureDir $out/share/doc/${name} + cp -R ../doc $out/share/doc/${name} + ''; + meta = { description = "Open CASCADE Technology, libraries for 3D modeling and numerical simulation"; homepage = http://www.opencascade.org/; From 8e1668250c8172f4cefec9bc5168da3561d99c82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 27 Jan 2010 22:13:06 +0000 Subject: [PATCH 26/69] GNU IceCat: Really fix. svn path=/nixpkgs/trunk/; revision=19716 --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e6163a30892..5895f0e395c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7156,7 +7156,7 @@ let icecatXulrunner3 = lowPrio (import ../applications/networking/browsers/icecat-3 { application = "xulrunner"; - inherit fetchurl stdenv xz pkgconfig perl zip libjpeg libpng zlib cairo + inherit fetchurl stdenv pkgconfig perl zip libjpeg libpng zlib cairo python dbus dbus_glib freetype fontconfig bzip2 xlibs alsaLib; inherit (gnome) libIDL libgnomeui gnomevfs gtk pango; inherit (pythonPackages) ply; From 279d59708275b3b87dc489e1632c4a4a1a70a0ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 27 Jan 2010 22:13:19 +0000 Subject: [PATCH 27/69] MPICH2 1.2.1. svn path=/nixpkgs/trunk/; revision=19717 --- pkgs/development/libraries/mpich2/default.nix | 35 +++++++++++++++---- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/pkgs/development/libraries/mpich2/default.nix b/pkgs/development/libraries/mpich2/default.nix index 7fb0e009f4a..9e0920eb1c4 100644 --- a/pkgs/development/libraries/mpich2/default.nix +++ b/pkgs/development/libraries/mpich2/default.nix @@ -1,16 +1,34 @@ -{stdenv, fetchurl, python}: +{ stdenv, fetchurl, python, perl }: + +let version = "1.2.1"; in +stdenv.mkDerivation { + name = "mpich2-${version}"; -stdenv.mkDerivation rec { - name = "mpich2-1.0.6p1"; - src = fetchurl { - url = "http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/${name}.tar.gz"; - sha256 = "1k0za8951j5fn89ww6bsy9b4yi989zz7bnd8a6acfr8r0yb8z01q"; + url = "http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/${version}/mpich2-${version}.tar.gz"; + sha256 = "1h91hygal4h33yci7sw76hibf803r9c0mx7kfgmc06h27xa3cirr"; }; - buildInputs = [ python ]; + buildInputs = [ python perl ]; + + patchPhase = + '' for i in $(find -type f -not -name Makefile.\*) + do + if grep -q /usr/bin/env "$i" + then + interpreter="$(cat $i | grep /usr/bin/env | sed -'es|^.*/usr/bin/env \([^ ]\+\).*$|\1|g')" + echo "file \`$i' -> interpreter \`$interpreter'" + path="$(type -P $interpreter)" + echo "\`/usr/bin/env $interpreter' -> \`$path' in \`$i'..." + sed -i "$i" -e "s|/usr/bin/env $interpreter|$path|g" + fi + done + true + ''; meta = { + description = "MPICH2, an implementation of the Message Passing Interface (MPI) standard"; + longDescription = '' MPICH2 is a free high-performance and portable implementation of the Message Passing Interface (MPI) standard, both version 1 and @@ -18,5 +36,8 @@ stdenv.mkDerivation rec { ''; homepage = http://www.mcs.anl.gov/mpi/mpich2/; license = "free, see http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=license"; + + maintainers = [ stdenv.lib.maintainers.ludo ]; + platforms = stdenv.lib.platforms.unix; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5895f0e395c..6f77d1d27ed 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4355,7 +4355,7 @@ let }; mpich2 = import ../development/libraries/mpich2 { - inherit fetchurl stdenv python; + inherit fetchurl stdenv python perl; }; muparser = import ../development/libraries/muparser { From 286e57b783b7c16e53ab4ee95d52794115025e50 Mon Sep 17 00:00:00 2001 From: Alexander Tsamutali Date: Wed, 27 Jan 2010 22:22:35 +0000 Subject: [PATCH 28/69] games/warsow: New package. svn path=/nixpkgs/trunk/; revision=19718 --- pkgs/games/warsow/default.nix | 55 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 6 ++++ 2 files changed, 61 insertions(+) create mode 100644 pkgs/games/warsow/default.nix diff --git a/pkgs/games/warsow/default.nix b/pkgs/games/warsow/default.nix new file mode 100644 index 00000000000..e3d17e855d5 --- /dev/null +++ b/pkgs/games/warsow/default.nix @@ -0,0 +1,55 @@ +{ stdenv, fetchurl, unzip, pkgconfig, zlib, curl, libjpeg, libvorbis +, libXxf86dga, libXxf86vm, libXinerama, SDL, mesa, openal +}: +stdenv.mkDerivation rec { + name = "warsow-${version}"; + version = "0.5"; + src1 = fetchurl { + url = "http://static.warsow.net/release/warsow_${version}_sdk.zip"; + sha256 = "018z83irj6wr5mj4pnya1r4abmg9sqznnkyq0gw9sr9q9dxr7k1m"; + }; + src2 = fetchurl { + url = "http://static.warsow.net/release/warsow_${version}_unified.zip"; + sha256 = "002idzqjq41ygjny9kk31fjx7l9clxy4xm38hc5dky6yfx17ib36"; + }; + unpackPhase = '' + mkdir warsow_${version}_sdk + cd warsow_${version}_sdk + unzip $src1 + cd source + unzip $src2 'basewsw/*' -d release + ''; + inherit openal; + patchPhase = '' + substituteInPlace Makefile --replace "openal-config" "pkg-config openal" + substituteInPlace snd_openal/snd_main.c --replace libopenal.so.0 $openal/lib/libopenal.so + ''; + buildInputs = [ unzip pkgconfig zlib curl libjpeg libvorbis libXxf86dga + libXxf86vm libXinerama SDL mesa openal ]; + installPhase = '' + dest=$out/opt/warsow + cd release + for f in warsow wsw_server wswtv_server; do + substituteInPlace $f --replace BINARY_DIR= BINARY_DIR=$dest + done + ensureDir $dest + ensureDir $out/bin + cp -v {warsow,wsw_server,wswtv_server}.* $dest + cp -rv basewsw libs $dest + cp -v warsow wsw_server wswtv_server $out/bin + ''; + meta = { + description = "A multiplayer FPS designed for competitive gaming."; + longDescription = '' + Set in a futuristic cartoon-like world where rocketlauncher-wielding + pigs and lasergun-carrying cyberpunks roam the streets, Warsow is a + completely free fast-paced first-person shooter (FPS) for Windows, Linux + and Mac OS X. + ''; + homepage = http://www.warsow.net; + # Engine is under GPLv2, everything else is under + license = [ "unfree-redistributable" ]; + maintainers = with stdenv.lib.maintainers; [ astsmtl ]; + platforms = with stdenv.lib.platforms; linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6f77d1d27ed..5619ad356c3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8279,6 +8279,12 @@ let inherit fetchurl stdenv xlibs mesa; }; + warsow = import ../games/warsow { + inherit stdenv fetchurl unzip pkgconfig zlib curl libjpeg libvorbis SDL + mesa openal; + inherit (xlibs) libXxf86dga libXxf86vm libXinerama; + }; + xboard = builderDefsPackage (import ../games/xboard) { inherit (xlibs) libX11 xproto libXt libXaw libSM libICE libXmu libXext libXpm; From fc4d56227caf2425e7eed4c2958488c45dfa5555 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 28 Jan 2010 15:50:04 +0000 Subject: [PATCH 29/69] Updating teeworlds svn path=/nixpkgs/trunk/; revision=19719 --- pkgs/games/teeworlds/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/games/teeworlds/default.nix b/pkgs/games/teeworlds/default.nix index 70852ff85ba..aab99fc4850 100644 --- a/pkgs/games/teeworlds/default.nix +++ b/pkgs/games/teeworlds/default.nix @@ -1,11 +1,11 @@ { fetchurl, stdenv, python, alsaLib, libX11, mesa, SDL }: stdenv.mkDerivation rec { - name = "teeworlds-0.5.1"; + name = "teeworlds-0.5.2"; src = fetchurl { url = "http://www.teeworlds.com/files/${name}-src.tar.gz"; - sha256 = "0y7yfb1n8rrcz8vcng9jch05sc5vl57nvjvd1x0mkm74ki1y6wpc"; + sha256 = "1h7likcqbyr3q8djzlgxmr8fiwwj8is3b01hd5x0qix1z4dsf48q"; }; # Note: Teeworlds requires Python 2.x to compile. Python 3.0 will From 7f213f0403056ba8df9378fbee877d72315febe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 28 Jan 2010 21:13:04 +0000 Subject: [PATCH 30/69] GNU IceCat: Add missing dependency. svn path=/nixpkgs/trunk/; revision=19720 --- pkgs/applications/networking/browsers/icecat-3/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/networking/browsers/icecat-3/default.nix b/pkgs/applications/networking/browsers/icecat-3/default.nix index 373122e4152..66c1a67a39a 100644 --- a/pkgs/applications/networking/browsers/icecat-3/default.nix +++ b/pkgs/applications/networking/browsers/icecat-3/default.nix @@ -1,6 +1,6 @@ { fetchurl, stdenv, pkgconfig, gtk, pango, perl, python, ply, zip, libIDL , libjpeg, libpng, zlib, cairo, dbus, dbus_glib, bzip2, xlibs, alsaLib -, gnomevfs, libgnomeui +, libnotify, gnomevfs, libgnomeui , freetype, fontconfig , application ? "browser" }: @@ -14,7 +14,7 @@ stdenv.mkDerivation { }; buildInputs = [ - libgnomeui gnomevfs alsaLib + libgnomeui libnotify gnomevfs alsaLib pkgconfig gtk perl zip libIDL libjpeg libpng zlib cairo bzip2 python ply dbus dbus_glib pango freetype fontconfig xlibs.libXi xlibs.libX11 xlibs.libXrender xlibs.libXft xlibs.libXt diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5619ad356c3..d7c5b8aaefa 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7149,7 +7149,7 @@ let icecat3 = lowPrio (import ../applications/networking/browsers/icecat-3 { inherit fetchurl stdenv pkgconfig perl zip libjpeg libpng zlib cairo - python dbus dbus_glib freetype fontconfig bzip2 xlibs alsaLib; + python dbus dbus_glib freetype fontconfig bzip2 xlibs alsaLib libnotify; inherit (gnome) libIDL libgnomeui gnomevfs gtk pango; inherit (pythonPackages) ply; }); @@ -7157,7 +7157,7 @@ let icecatXulrunner3 = lowPrio (import ../applications/networking/browsers/icecat-3 { application = "xulrunner"; inherit fetchurl stdenv pkgconfig perl zip libjpeg libpng zlib cairo - python dbus dbus_glib freetype fontconfig bzip2 xlibs alsaLib; + python dbus dbus_glib freetype fontconfig bzip2 xlibs alsaLib libnotify; inherit (gnome) libIDL libgnomeui gnomevfs gtk pango; inherit (pythonPackages) ply; }); From 8a57c8bf357966c0dd57f600f2e530493c4faaad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 28 Jan 2010 22:34:27 +0000 Subject: [PATCH 31/69] Add mpc123, a Musepack command-line player. svn path=/nixpkgs/trunk/; revision=19722 --- pkgs/applications/audio/mpc123/default.nix | 32 ++++++++++++++++++++ pkgs/applications/audio/mpc123/use-gcc.patch | 13 ++++++++ pkgs/top-level/all-packages.nix | 4 +++ 3 files changed, 49 insertions(+) create mode 100644 pkgs/applications/audio/mpc123/default.nix create mode 100644 pkgs/applications/audio/mpc123/use-gcc.patch diff --git a/pkgs/applications/audio/mpc123/default.nix b/pkgs/applications/audio/mpc123/default.nix new file mode 100644 index 00000000000..4ea26b458a7 --- /dev/null +++ b/pkgs/applications/audio/mpc123/default.nix @@ -0,0 +1,32 @@ +{ fetchurl, stdenv, gettext, libmpcdec, libao }: + +let version = "0.2.4"; in +stdenv.mkDerivation rec { + name = "mpc123-${version}"; + + src = fetchurl { + url = "mirror://sourceforge/mpc123/version%20${version}/${name}.tar.gz"; + sha256 = "0sf4pns0245009z6mbxpx7kqy4kwl69bc95wz9v23wgappsvxgy1"; + }; + + patches = [ ./use-gcc.patch ]; + + buildInputs = [ gettext libmpcdec libao ]; + + installPhase = + # XXX: Should install locales too (though there's only 1 available). + '' ensureDir "$out/bin" + cp -v mpc123 "$out/bin" + ''; + + meta = { + homepage = http://mpc123.sourceforge.net/; + + description = "mpc123, a Musepack (.mpc) audio player"; + + license = "GPLv2+"; + + maintainers = [ stdenv.lib.maintainers.ludo ]; + platforms = stdenv.lib.platforms.gnu; # arbitrary choice + }; +} diff --git a/pkgs/applications/audio/mpc123/use-gcc.patch b/pkgs/applications/audio/mpc123/use-gcc.patch new file mode 100644 index 00000000000..ca4cf84591c --- /dev/null +++ b/pkgs/applications/audio/mpc123/use-gcc.patch @@ -0,0 +1,13 @@ +Don't worry, just use GCC and everything's gonna be alright. + +--- mpc123-0.2.4/Makefile 2008-03-21 22:14:38.000000000 +0100 ++++ mpc123-0.2.4/Makefile 2010-01-28 23:26:49.000000000 +0100 +@@ -17,7 +17,7 @@ + # along with this program; if not, write to the Free Software Foundation, + # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +-CC := $(shell which colorgcc || which cc) ++CC := gcc + + TAGSPRG := ctags + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d7c5b8aaefa..fb63148e277 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7402,6 +7402,10 @@ let inherit (xlibs) libX11 xproto; }; + mpc123 = import ../applications/audio/mpc123 { + inherit stdenv fetchurl gettext libao libmpcdec; + }; + mpg321 = import ../applications/audio/mpg321 { inherit stdenv fetchurl libao libmad libid3tag zlib; }; From 0a882d423b5b6ad78ae85ed111916cbf0efaf300 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 29 Jan 2010 00:17:59 +0000 Subject: [PATCH 32/69] * Fix stdenv evaluation - use ${stdenv.shell} instead of ${stdenv.bash}/bin/bash. svn path=/nixpkgs/trunk/; revision=19723 --- pkgs/development/libraries/science/math/blas/default.nix | 2 +- pkgs/development/libraries/science/math/liblapack/default.nix | 2 +- pkgs/development/libraries/scmccid/default.nix | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/science/math/blas/default.nix b/pkgs/development/libraries/science/math/blas/default.nix index 22eced7d070..eeaf28aec3c 100644 --- a/pkgs/development/libraries/science/math/blas/default.nix +++ b/pkgs/development/libraries/science/math/blas/default.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation { buildInputs = [gfortran]; configurePhase = '' - echo >make.inc "SHELL = ${stdenv.bash}/bin/bash" + echo >make.inc "SHELL = ${stdenv.shell}" echo >>make.inc "PLAT = _LINUX" echo >>make.inc "FORTRAN = gfortran" echo >>make.inc "OPTS = -O2 -fPIC" diff --git a/pkgs/development/libraries/science/math/liblapack/default.nix b/pkgs/development/libraries/science/math/liblapack/default.nix index 0c15834f383..240d13105f8 100644 --- a/pkgs/development/libraries/science/math/liblapack/default.nix +++ b/pkgs/development/libraries/science/math/liblapack/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation { patches = [ ./blas-link.patch ]; configurePhase = '' - echo >make.inc "SHELL = ${stdenv.bash}/bin/bash" + echo >make.inc "SHELL = ${stdenv.shell}" echo >>make.inc "PLAT =" echo >>make.inc "FORTRAN = gfortran" echo >>make.inc "OPTS = -O2 -fPIC" diff --git a/pkgs/development/libraries/scmccid/default.nix b/pkgs/development/libraries/scmccid/default.nix index 32c4fe3de89..62c541ef7ba 100644 --- a/pkgs/development/libraries/scmccid/default.nix +++ b/pkgs/development/libraries/scmccid/default.nix @@ -1,5 +1,7 @@ {stdenv, fetchurl, patchelf, libusb}: +assert stdenv ? gcc; + stdenv.mkDerivation rec { name = "scmccid-5.0.11"; From 26ea153e8b24e95c933819c01cdda6c582e9c978 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 29 Jan 2010 00:38:34 +0000 Subject: [PATCH 33/69] svn path=/nixpkgs/trunk/; revision=19724 --- pkgs/os-specific/linux/kernel/linux-2.6.27.nix | 4 ++-- pkgs/os-specific/linux/kernel/linux-2.6.32.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/linux-2.6.27.nix b/pkgs/os-specific/linux/kernel/linux-2.6.27.nix index 7a01af13c16..06790b2a215 100644 --- a/pkgs/os-specific/linux/kernel/linux-2.6.27.nix +++ b/pkgs/os-specific/linux/kernel/linux-2.6.27.nix @@ -3,11 +3,11 @@ args @ { stdenv, fetchurl, userModeLinux ? false, extraConfig ? "", ... }: import ./generic.nix ( rec { - version = "2.6.27.44"; + version = "2.6.27.45"; src = fetchurl { url = "mirror://kernel/linux/kernel/v2.6/linux-${version}.tar.bz2"; - sha256 = "15z64kmbrgxnwrzvwqpw7l59nps6qynbp9hphfyad0vlisccrm1h"; + sha256 = "0hv4pa83ff8kihvjwhxkx01yf5dfrvk9xkn1bzhr9m0rv3s8d6sy"; }; features.iwlwifi = true; diff --git a/pkgs/os-specific/linux/kernel/linux-2.6.32.nix b/pkgs/os-specific/linux/kernel/linux-2.6.32.nix index ab6bb6bb872..b4808a951ea 100644 --- a/pkgs/os-specific/linux/kernel/linux-2.6.32.nix +++ b/pkgs/os-specific/linux/kernel/linux-2.6.32.nix @@ -3,11 +3,11 @@ args @ { stdenv, fetchurl, userModeLinux ? false, extraConfig ? "", ... }: import ./generic.nix ( rec { - version = "2.6.32.6"; + version = "2.6.32.7"; src = fetchurl { url = "mirror://kernel/linux/kernel/v2.6/linux-${version}.tar.bz2"; - sha256 = "08i6pxng47glgmlg10sj454xv7y5d0hdick88jpy6bn51jsc92lk"; + sha256 = "0s6xl3x4gwwibdfb68f6aybssp1rl2inx68a3padrb1l49k6lq44"; }; features.iwlwifi = true; From 0c13a208038701c47831cda150a878e9a82bc7ae Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 29 Jan 2010 06:13:22 +0000 Subject: [PATCH 34/69] Update ECL svn path=/nixpkgs/trunk/; revision=19725 --- pkgs/development/compilers/ecl/src-for-default.nix | 10 +++++----- .../development/compilers/ecl/src-info-for-default.nix | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/development/compilers/ecl/src-for-default.nix b/pkgs/development/compilers/ecl/src-for-default.nix index 8e1753cb41f..fd813243ecc 100644 --- a/pkgs/development/compilers/ecl/src-for-default.nix +++ b/pkgs/development/compilers/ecl/src-for-default.nix @@ -1,9 +1,9 @@ rec { - version="9.6.2"; - name="ecl-9.6.2"; - hash="1847ppfrgfpjwc9qlfcvvsfhkarjz339qzh9mb0fwnqfihrbqpfy"; - url="http://downloads.sourceforge.net/ecls/files/ecls/9.6.0/ecl-${version}.tar.gz"; - advertisedUrl="http://downloads.sourceforge.net/ecls/files/ecls/9.6.0/ecl-9.6.2.tar.gz"; + version="9.12.3"; + name="ecl-9.12.3"; + hash="10p6qncsx8jh3dwfv5l0rbqx1ib7mmvac2dxc6xvj38khkaykwpl"; + url="http://downloads.sourceforge.net/ecls/files/ecls/9.12/ecl-${version}.tgz"; + advertisedUrl="http://downloads.sourceforge.net/ecls/files/ecls/9.12/ecl-9.12.3.tgz"; } diff --git a/pkgs/development/compilers/ecl/src-info-for-default.nix b/pkgs/development/compilers/ecl/src-info-for-default.nix index 84be3b3f527..1f5f3270f53 100644 --- a/pkgs/development/compilers/ecl/src-info-for-default.nix +++ b/pkgs/development/compilers/ecl/src-info-for-default.nix @@ -2,4 +2,5 @@ downloadPage = "http://sourceforge.net/projects/ecls/files/"; baseName = "ecl"; choiceCommand = "head -1 | sed -e 's@/download@@;'\"$skipRedirectSF\""; + sourceRegexp = ".*[.](tar.gz|tgz|tbz2|tar.bz2)"; } From f79a0a323cfcd45a599dba4e3cae23d665b09d27 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 29 Jan 2010 08:04:31 +0000 Subject: [PATCH 35/69] * Urgh. svn path=/nixpkgs/trunk/; revision=19726 --- pkgs/development/libraries/scmccid/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/scmccid/default.nix b/pkgs/development/libraries/scmccid/default.nix index 62c541ef7ba..01dc63353d6 100644 --- a/pkgs/development/libraries/scmccid/default.nix +++ b/pkgs/development/libraries/scmccid/default.nix @@ -1,15 +1,15 @@ {stdenv, fetchurl, patchelf, libusb}: -assert stdenv ? gcc; +assert stdenv ? gcc && stdenv.gcc.libc != null; stdenv.mkDerivation rec { name = "scmccid-5.0.11"; - src = if (stdenv.system == "i686-linux") then (fetchurl { + src = if stdenv.system == "i686-linux" then (fetchurl { url = "http://www.scmmicro.com/support/download/scmccid_5.0.11_linux.tar.gz"; sha256 = "1r5wkarhzl09ncgj55baizf573czw0nplh1pgddzx9xck66kh5bm"; }) - else if (stdenv.system == "x86_64-linux") then (fetchurl { + else if stdenv.system == "x86_64-linux" then (fetchurl { url = "http://www.scmmicro.com/support/download/scmccid_5.0.11_linux_x64.tar.gz"; sha256 = "0k9lzlk01sl4ycfqgrqqy3bildz0mcr1r0kkicgjz96l4s0jgz0i"; }) From f75cf224ee14db7059daa66f8a8e4fb6ff473210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 29 Jan 2010 11:40:39 +0000 Subject: [PATCH 36/69] libffi 3.0.9. svn path=/nixpkgs/trunk/; revision=19728 --- pkgs/development/libraries/libffi/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/libffi/default.nix b/pkgs/development/libraries/libffi/default.nix index 1bcb4579bca..4bf0c05eb28 100644 --- a/pkgs/development/libraries/libffi/default.nix +++ b/pkgs/development/libraries/libffi/default.nix @@ -1,10 +1,11 @@ { fetchurl, stdenv }: stdenv.mkDerivation rec { - name = "libffi-3.0.5"; + name = "libffi-3.0.9"; + src = fetchurl { url = "ftp://sourceware.org/pub/libffi/${name}.tar.gz"; - sha256 = "1i0ms6ilhjzz0691nymnvs5a3b5lf95n6p99l65z2zn83rd7pahf"; + sha256 = "0ln4jbpb6clcsdpb9niqk0frgx4k0xki96wiv067ig0q4cajb7aq"; }; doCheck = true; @@ -34,8 +35,10 @@ stdenv.mkDerivation rec { homepage = http://sources.redhat.com/libffi/; - license = "http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/libffi/LICENSE?rev=1.6&content-type=text/plain&cvsroot=libffi&only_with_tag=MAIN"; + # See http://github.com/atgreen/libffi/blob/master/LICENSE . + license = "free, non-copyleft"; maintainers = [ stdenv.lib.maintainers.ludo ]; + platforms = stdenv.lib.platforms.all; }; } From c61d1424d007a7c30bbe724e13a9e95fdebce845 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 29 Jan 2010 12:26:12 +0000 Subject: [PATCH 37/69] * Spam everybody with failures of the Nixpkgs tarball so that hopefully whoever broke it can fix it ;-) svn path=/nixpkgs/trunk/; revision=19731 --- pkgs/lib/maintainers.nix | 1 + pkgs/top-level/make-tarball.nix | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/lib/maintainers.nix b/pkgs/lib/maintainers.nix index 4b53ad0bb61..fa95d2f64cc 100644 --- a/pkgs/lib/maintainers.nix +++ b/pkgs/lib/maintainers.nix @@ -4,6 +4,7 @@ /* Add your name and email address here. Keep the list alphabetically sorted. */ + all = "Nix Committers " andres = "Andres Loeh "; astsmtl = "Alexander Tsamutali "; eelco = "Eelco Dolstra "; diff --git a/pkgs/top-level/make-tarball.nix b/pkgs/top-level/make-tarball.nix index 1b04e68c2b6..539bb5fd350 100644 --- a/pkgs/top-level/make-tarball.nix +++ b/pkgs/top-level/make-tarball.nix @@ -80,6 +80,6 @@ releaseTools.makeSourceTarball { ''; meta = { - maintainers = [lib.maintainers.eelco]; + maintainers = [ lib.maintainers.all ]; }; } From 69211adabe0b035b5c71e2fdca297ff30c2fe261 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 29 Jan 2010 12:45:11 +0000 Subject: [PATCH 38/69] * Doh. svn path=/nixpkgs/trunk/; revision=19732 --- pkgs/lib/maintainers.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/lib/maintainers.nix b/pkgs/lib/maintainers.nix index fa95d2f64cc..02df80265c5 100644 --- a/pkgs/lib/maintainers.nix +++ b/pkgs/lib/maintainers.nix @@ -4,7 +4,7 @@ /* Add your name and email address here. Keep the list alphabetically sorted. */ - all = "Nix Committers " + all = "Nix Committers "; andres = "Andres Loeh "; astsmtl = "Alexander Tsamutali "; eelco = "Eelco Dolstra "; From e80d65426f43db5a4bc3522ad6307ce11d116bbb Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 29 Jan 2010 15:55:03 +0000 Subject: [PATCH 39/69] * Nix 0.14pre19730. svn path=/nixpkgs/trunk/; revision=19733 --- pkgs/tools/package-management/nix/unstable.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/package-management/nix/unstable.nix b/pkgs/tools/package-management/nix/unstable.nix index 131dcfc7719..699b2f74fa7 100644 --- a/pkgs/tools/package-management/nix/unstable.nix +++ b/pkgs/tools/package-management/nix/unstable.nix @@ -4,11 +4,11 @@ }: stdenv.mkDerivation rec { - name = "nix-0.14pre19652"; + name = "nix-0.14pre19730"; src = fetchurl { - url = "http://hydra.nixos.org/build/259251/download/4/${name}.tar.bz2"; - sha256 = "e96d5e2cc7a86aea0d06f0d81395290d0c259004cc8a56d9eec203d5bb1a9d71"; + url = "http://hydra.nixos.org/build/275242/download/4/${name}.tar.bz2"; + sha256 = "8359230264e1b96bfadf2c719f98f95dc08990d111854c18abb8a5e86092ec75"; }; buildInputs = [perl curl openssl]; From 486ec4bddd4e50c06b65e07456fe71ac420372f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sat, 30 Jan 2010 17:34:49 +0000 Subject: [PATCH 40/69] Coccinelle 0.2.1. svn path=/nixpkgs/trunk/; revision=19736 --- pkgs/development/tools/misc/coccinelle/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/misc/coccinelle/default.nix b/pkgs/development/tools/misc/coccinelle/default.nix index 02de182ff76..6b257f2f21b 100644 --- a/pkgs/development/tools/misc/coccinelle/default.nix +++ b/pkgs/development/tools/misc/coccinelle/default.nix @@ -1,11 +1,11 @@ { fetchurl, stdenv, ocaml, perl, python, ncurses, makeWrapper }: stdenv.mkDerivation rec { - name = "coccinelle-0.2.0"; + name = "coccinelle-0.2.1"; src = fetchurl { url = "http://coccinelle.lip6.fr/distrib/${name}.tgz"; - sha256 = "1mg6r92h8j3kqgy9iv6kk0g96m84wcj71iavgvv9qdbk3qwim8i4"; + sha256 = "06nfk40kq0pxz38pw7j3ldkakr4bx0dlypyfg3gimx8a751i0b22"; }; buildInputs = [ ocaml perl python ncurses makeWrapper ]; From 0e55350a857550e9b3147eace65bdf511d252ee1 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Sat, 30 Jan 2010 19:30:30 +0000 Subject: [PATCH 41/69] update ktorrent to 3.3.3, also make it depend on KDE 4.3 svn path=/nixpkgs/trunk/; revision=19737 --- .../tools/networking/p2p/ktorrent/default.nix | 22 ++++++++++++------- pkgs/top-level/all-packages.nix | 5 +++-- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/pkgs/tools/networking/p2p/ktorrent/default.nix b/pkgs/tools/networking/p2p/ktorrent/default.nix index 00b6f28dfe9..4966a9f9c6e 100644 --- a/pkgs/tools/networking/p2p/ktorrent/default.nix +++ b/pkgs/tools/networking/p2p/ktorrent/default.nix @@ -1,21 +1,27 @@ -{ stdenv, fetchurl, pkgconfig, kdelibs, xlibs, zlib -, libpng, libjpeg, perl, gmp +{ stdenv, fetchurl, pkgconfig, kde, xlibs, zlib +, libpng, libjpeg, perl, gmp, cmake, gettext, boost }: stdenv.mkDerivation { - name = "ktorrent-2.2.7"; + name = "ktorrent-3.3.3"; src = fetchurl { - url = http://ktorrent.org/downloads/2.2.7/ktorrent-2.2.7.tar.bz2; - sha256 = "0wvv294grv07zwdsycfsyhq5fllqyljrcg5g9iwgn84fk3nszlbi"; + url = http://ktorrent.org/downloads/3.3.3/ktorrent-3.3.3.tar.bz2; + sha256 = "1f2hr8q8j1fxd3wa74vavq7b0spdsjfcl3jbyfi9xhk9mxxlm216"; }; buildInputs = [ - pkgconfig kdelibs kdelibs.qt xlibs.xlibs zlib libpng libjpeg perl gmp + pkgconfig xlibs.xlibs zlib libpng libjpeg perl gmp cmake gettext boost ]; - - configureFlags = "--without-arts"; + propagatedBuildInputs = [ + kde.qt4 kde.automoc4 kde.kdelibs kde.phonon kde.qca2 kde.kdepimlibs + ]; + + CMAKE_PREFIX_PATH=kde.kdepimlibs; + cmakeFlags = [ "-DGETTEXT_INCLUDE_DIR=${gettext}/include" ]; + includeAllQtDirs=true; + meta = { homepage = http://ktorrent.org/; description = "A BitTorrent client for KDE"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fb63148e277..c0823688560 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -953,8 +953,9 @@ let }; ktorrent = import ../tools/networking/p2p/ktorrent { - inherit fetchurl stdenv pkgconfig kdelibs - xlibs zlib libpng libjpeg perl gmp; + inherit fetchurl stdenv pkgconfig boost + xlibs zlib libpng libjpeg perl gmp cmake gettext; + kde = kde43; }; less = import ../tools/misc/less { From 5a7228a099273d1050fd5c0c5512a836d0a7d5f4 Mon Sep 17 00:00:00 2001 From: Nicolas Pierron Date: Sun, 31 Jan 2010 12:13:33 +0000 Subject: [PATCH 42/69] Add tex4ht. svn path=/nixpkgs/trunk/; revision=19739 --- pkgs/misc/tex/tex4ht/default.nix | 37 ++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/misc/tex/tex4ht/default.nix diff --git a/pkgs/misc/tex/tex4ht/default.nix b/pkgs/misc/tex/tex4ht/default.nix new file mode 100644 index 00000000000..f565cb1a48c --- /dev/null +++ b/pkgs/misc/tex/tex4ht/default.nix @@ -0,0 +1,37 @@ +{stdenv, fetchurl, tetex}: + +stdenv.mkDerivation rec { + name = "tex4ht-1.0.2009_06_11_1038"; + + src = fetchurl { + url = "http://www.cse.ohio-state.edu/~gurari/TeX4ht/fix/${name}.tar.gz"; + sha1 = "7d46488059316dec3234b6478cd0d2ca8f4d110f"; + }; + + buildInputs = [ tetex ]; + + buildPhase = '' + cd src + for f in tex4ht t4ht htcmd ; do + # -DENVFILE="$out/share/texmf-nix/tex4ht/base/unix/tex4ht.env" + gcc -o $f $f.c -I${tetex}/include -L${tetex}/lib -DHAVE_DIRENT_H -DHAVE_DIRENT_H -DKPATHSEA -lkpathsea + done + cd - + ''; + + installPhase = '' + ensureDir $out/bin + for f in src/tex4ht src/t4ht src/htcmd bin/unix/*; do # */ + mv $f $out/bin/. + done + + ensureDir $out/share + cp -r texmf $out/share/. + ''; + + meta = { + homepage = http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn.html; + # LaTeX Project Public License + license = "LPPL"; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c0823688560..e0ff0a07268 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8740,6 +8740,10 @@ let inherit fetchurl stdenv flex bison zlib libpng ncurses ed; }; + tex4ht = import ../misc/tex/tex4ht { + inherit fetchurl stdenv tetex; + }; + texFunctions = import ../misc/tex/nix { inherit stdenv perl tetex graphviz ghostscript makeFontsConf imagemagick runCommand lib; inherit (haskellPackages) lhs2tex; From 1664ec986aa0faaf13de39efb22f9ec56aebbd2c Mon Sep 17 00:00:00 2001 From: Nicolas Pierron Date: Sun, 31 Jan 2010 12:13:38 +0000 Subject: [PATCH 43/69] Update zsh. svn path=/nixpkgs/trunk/; revision=19740 --- pkgs/shells/zsh/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/shells/zsh/default.nix b/pkgs/shells/zsh/default.nix index eacda19a8de..037ceddfd01 100644 --- a/pkgs/shells/zsh/default.nix +++ b/pkgs/shells/zsh/default.nix @@ -2,11 +2,11 @@ let - version = "4.3.9"; + version = "4.3.10"; documentation = fetchurl { url = "mirror://sourceforge/zsh/zsh-${version}-doc.tar.bz2"; - sha256 = "0rc19q5r8x2yln7synpqzxngm7g4g6idrpgc1i0jsawc48m7dbhm"; + sha256 = "f53d5c434fdb26fc79755279175514507eb1d11cf793ac57270d053ee61f37f9"; }; in @@ -16,7 +16,7 @@ stdenv.mkDerivation { src = fetchurl { url = "mirror://sourceforge/zsh/zsh-${version}.tar.bz2"; - sha256 = "1aw28c5w83vl2ckbvf6ljj00s36icyrnxcm1r6q63863dmn6vpcg"; + sha256 = "63fdc0273eadbb42d164f38b0b79922c0b3df0e97084e746a318276d935a4f7c"; }; configureFlags = "--with-tcsetpgrp --enable-maildir-support --enable-multibyte"; From d5219beafc627bb0d5db59115a06310af895cc9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 1 Feb 2010 09:16:56 +0000 Subject: [PATCH 44/69] GNU IceCat 3.6: Disable WiFi stuff for now. svn path=/nixpkgs/trunk/; revision=19744 --- .../networking/browsers/icecat-3/default.nix | 57 ++++++++++--------- pkgs/top-level/all-packages.nix | 6 +- 2 files changed, 35 insertions(+), 28 deletions(-) diff --git a/pkgs/applications/networking/browsers/icecat-3/default.nix b/pkgs/applications/networking/browsers/icecat-3/default.nix index 66c1a67a39a..4335c63c7c7 100644 --- a/pkgs/applications/networking/browsers/icecat-3/default.nix +++ b/pkgs/applications/networking/browsers/icecat-3/default.nix @@ -1,9 +1,14 @@ { fetchurl, stdenv, pkgconfig, gtk, pango, perl, python, ply, zip, libIDL , libjpeg, libpng, zlib, cairo, dbus, dbus_glib, bzip2, xlibs, alsaLib , libnotify, gnomevfs, libgnomeui -, freetype, fontconfig +, freetype, fontconfig, wirelesstools ? null , application ? "browser" }: +# Build the WiFi stuff on Linux-based systems. +# FIXME: Disable for now until it can actually be built: +# http://thread.gmane.org/gmane.comp.gnu.gnuzilla/1376 . +#assert stdenv.isLinux -> (wirelesstools != null); + let version = "3.6"; in stdenv.mkDerivation { name = "icecat-${version}"; @@ -13,35 +18,35 @@ stdenv.mkDerivation { sha256 = "0fsf8zd8nncg1w1gg2jhlxwkbljvrx4mm9pywasklyi0gvi939ds"; }; - buildInputs = [ - libgnomeui libnotify gnomevfs alsaLib - pkgconfig gtk perl zip libIDL libjpeg libpng zlib cairo bzip2 - python ply dbus dbus_glib pango freetype fontconfig - xlibs.libXi xlibs.libX11 xlibs.libXrender xlibs.libXft xlibs.libXt - ]; + buildInputs = + [ libgnomeui libnotify gnomevfs alsaLib + pkgconfig gtk perl zip libIDL libjpeg libpng zlib cairo bzip2 + python ply dbus dbus_glib pango freetype fontconfig + xlibs.libXi xlibs.libX11 xlibs.libXrender xlibs.libXft xlibs.libXt + ] + ++ (stdenv.lib.optional false /* stdenv.isLinux */ wirelesstools); patches = [ ./skip-gre-registration.patch ./rpath-link.patch ]; - configureFlags = [ - "--enable-application=${application}" - "--enable-libxul" - "--disable-javaxpcom" + configureFlags = + [ "--enable-application=${application}" + "--enable-libxul" + "--disable-javaxpcom" - "--enable-optimize" - "--disable-debug" - "--enable-strip" - "--with-system-jpeg" - "--with-system-zlib" - "--with-system-bz2" - # "--with-system-png" # <-- "--with-system-png won't work because the system's libpng doesn't have APNG support" - "--enable-system-cairo" - #"--enable-system-sqlite" # <-- this seems to be discouraged - "--disable-crashreporter" - ]; - - preConfigure = ''export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -fPIC"''; + "--enable-optimize" + "--disable-debug" + "--enable-strip" + "--with-system-jpeg" + "--with-system-zlib" + "--with-system-bz2" + # "--with-system-png" # <-- "--with-system-png won't work because the system's libpng doesn't have APNG support" + "--enable-system-cairo" + #"--enable-system-sqlite" # <-- this seems to be discouraged + "--disable-crashreporter" + ] + ++ (stdenv.lib.optional true /* (!stdenv.isLinux) */ "--disable-necko-wifi"); postInstall = '' export dontPatchELF=1; @@ -79,8 +84,8 @@ stdenv.mkDerivation { fi # Put the GNU IceCat icon in the right place. - ensureDir $out/lib/$libDir/chrome/icons/default - ln -s ../../../icons/default.xpm $out/lib/$libDir/chrome/icons/default/ + ensureDir "$out/lib/$libDir/chrome/icons/default" + ln -s ../../../icons/default.xpm "$out/lib/$libDir/chrome/icons/default/" ''; meta = { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e0ff0a07268..350c0f15417 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7150,7 +7150,8 @@ let icecat3 = lowPrio (import ../applications/networking/browsers/icecat-3 { inherit fetchurl stdenv pkgconfig perl zip libjpeg libpng zlib cairo - python dbus dbus_glib freetype fontconfig bzip2 xlibs alsaLib libnotify; + python dbus dbus_glib freetype fontconfig bzip2 xlibs alsaLib libnotify + wirelesstools; inherit (gnome) libIDL libgnomeui gnomevfs gtk pango; inherit (pythonPackages) ply; }); @@ -7158,7 +7159,8 @@ let icecatXulrunner3 = lowPrio (import ../applications/networking/browsers/icecat-3 { application = "xulrunner"; inherit fetchurl stdenv pkgconfig perl zip libjpeg libpng zlib cairo - python dbus dbus_glib freetype fontconfig bzip2 xlibs alsaLib libnotify; + python dbus dbus_glib freetype fontconfig bzip2 xlibs alsaLib libnotify + wirelesstools; inherit (gnome) libIDL libgnomeui gnomevfs gtk pango; inherit (pythonPackages) ply; }); From f719b5268e82e58f47383dc3de12ede8858baed4 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 1 Feb 2010 15:12:49 +0000 Subject: [PATCH 45/69] * qemu-kvm: honour $TMPDIR for the qemu-smb temporary directory. This ensures that Nix cleans up the qemu-smb directory after a VM test run (which prevents failures like this one: http://hydra.nixos.org/build/275355/nixlog/31/raw). svn path=/nixpkgs/trunk/; revision=19747 --- pkgs/os-specific/linux/qemu-kvm/default.nix | 2 +- .../linux/qemu-kvm/smb-tmpdir.patch | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 pkgs/os-specific/linux/qemu-kvm/smb-tmpdir.patch diff --git a/pkgs/os-specific/linux/qemu-kvm/default.nix b/pkgs/os-specific/linux/qemu-kvm/default.nix index 1334bbd2e36..945fb05ca62 100644 --- a/pkgs/os-specific/linux/qemu-kvm/default.nix +++ b/pkgs/os-specific/linux/qemu-kvm/default.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { sha256 = "0nmg9dp3h040dkxq5vv4i7ip76v98rnhzqwy4pd88zznawc2k9l2"; }; - patches = [ ./unix-domain.patch ]; + patches = [ ./unix-domain.patch ./smb-tmpdir.patch ]; buildInputs = [zlib SDL alsaLib pkgconfig pciutils]; diff --git a/pkgs/os-specific/linux/qemu-kvm/smb-tmpdir.patch b/pkgs/os-specific/linux/qemu-kvm/smb-tmpdir.patch new file mode 100644 index 00000000000..c30ba9429dd --- /dev/null +++ b/pkgs/os-specific/linux/qemu-kvm/smb-tmpdir.patch @@ -0,0 +1,25 @@ +Honour $TMPDIR for the qemu-smb temporary directory. + +diff -rc -x '*~' qemu-kvm-0.12.2-orig/net/slirp.c qemu-kvm-0.12.2/net/slirp.c +*** qemu-kvm-0.12.2-orig/net/slirp.c 2010-01-18 19:48:25.000000000 +0100 +--- qemu-kvm-0.12.2/net/slirp.c 2010-02-01 15:56:43.000000000 +0100 +*************** +*** 480,486 **** + char smb_cmdline[128]; + FILE *f; + +! snprintf(s->smb_dir, sizeof(s->smb_dir), "/tmp/qemu-smb.%ld-%d", + (long)getpid(), instance++); + if (mkdir(s->smb_dir, 0700) < 0) { + qemu_error("could not create samba server dir '%s'\n", s->smb_dir); +--- 480,489 ---- + char smb_cmdline[128]; + FILE *f; + +! char *tmpdir = getenv("TMPDIR"); +! +! snprintf(s->smb_dir, sizeof(s->smb_dir), "%s/qemu-smb.%ld-%d", +! tmpdir ? tmpdir : "/tmp", + (long)getpid(), instance++); + if (mkdir(s->smb_dir, 0700) < 0) { + qemu_error("could not create samba server dir '%s'\n", s->smb_dir); From 1c92df1384680efac7b6645ad3d220d8cca88b2a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 1 Feb 2010 15:17:34 +0000 Subject: [PATCH 46/69] * Debian 5.0.4. svn path=/nixpkgs/trunk/; revision=19748 --- pkgs/build-support/vm/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/build-support/vm/default.nix b/pkgs/build-support/vm/default.nix index 865b34f131d..93c35cd98b9 100644 --- a/pkgs/build-support/vm/default.nix +++ b/pkgs/build-support/vm/default.nix @@ -970,21 +970,21 @@ rec { } // args); debian50i386 = args: makeImageFromDebDist ({ - name = "debian-5.0.3-lenny-i386"; - fullName = "Debian 5.0.3 Lenny (i386)"; + name = "debian-5.0.4-lenny-i386"; + fullName = "Debian 5.0.4 Lenny (i386)"; packagesList = fetchurl { url = mirror://debian/dists/lenny/main/binary-i386/Packages.bz2; - sha256 = "87886ed314c53a57c6689022c0043c25c3c96c643e3034fc51acae0572b5ff1f"; + sha256 = "6c5ca67fb401a5d29f02557c290bbaee35c457172d548583b510d49eadd0f9ff"; }; urlPrefix = mirror://debian; } // args); debian50x86_64 = args: makeImageFromDebDist ({ - name = "debian-5.0.3-lenny-amd64"; - fullName = "Debian 5.0.3 Lenny (amd64)"; + name = "debian-5.0.4-lenny-amd64"; + fullName = "Debian 5.0.4 Lenny (amd64)"; packagesList = fetchurl { url = mirror://debian/dists/lenny/main/binary-amd64/Packages.bz2; - sha256 = "c51dc5b87d7cd12bd3537bb905428a49869a0f4e0e7cb3546dd8a00fb32db380"; + sha256 = "c3b660b861ed257e82293a350ab868c2ce566bc084d35cc66b7388a881eaf3c5"; }; urlPrefix = mirror://debian; } // args); From 8beaa7ab636051dd0ee1a801bc43f6aecdcc999e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Mon, 1 Feb 2010 16:07:59 +0000 Subject: [PATCH 47/69] Updating eaglemode. svn path=/nixpkgs/trunk/; revision=19749 --- pkgs/applications/misc/eaglemode/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/eaglemode/default.nix b/pkgs/applications/misc/eaglemode/default.nix index 3984590639f..8f29fdc8b75 100644 --- a/pkgs/applications/misc/eaglemode/default.nix +++ b/pkgs/applications/misc/eaglemode/default.nix @@ -1,11 +1,11 @@ { stdenv, fetchurl, perl, libX11, xineLib, libjpeg, libpng, libtiff }: stdenv.mkDerivation { - name = "eaglemode-0.75"; + name = "eaglemode-0.76.0"; src = fetchurl { - url = mirror://sourceforge/eaglemode/eaglemode-0.75.0.tar.bz2; - sha256 = "0iqdf55ff0il5frkl3yq3r27yk9xl30b9ygf3fvrv78a5bzpq8r7"; + url = mirror://sourceforge/eaglemode/eaglemode-0.76.0.tar.bz2; + sha256 = "152v7p9dicm8shwncpcifg4b2l4c61c1qn00469cz38vja67npww"; }; buildInputs = [ perl libX11 xineLib libjpeg libpng libtiff ]; From f278489e980c1a16336974dfd4babfd94c351e9a Mon Sep 17 00:00:00 2001 From: Marco Maggesi Date: Mon, 1 Feb 2010 16:27:35 +0000 Subject: [PATCH 48/69] Fix bugs and improve pkgs/servers/openafs-client svn path=/nixpkgs/trunk/; revision=19750 --- pkgs/servers/openafs-client/default.nix | 23 ++++------------------- pkgs/top-level/all-packages.nix | 10 +++++----- 2 files changed, 9 insertions(+), 24 deletions(-) diff --git a/pkgs/servers/openafs-client/default.nix b/pkgs/servers/openafs-client/default.nix index 8021f7cf9df..330bcc2e863 100644 --- a/pkgs/servers/openafs-client/default.nix +++ b/pkgs/servers/openafs-client/default.nix @@ -1,21 +1,20 @@ { stdenv, fetchurl, autoconf, automake, flex, yacc, - kernel_2_6_28, glibc, ncurses, perl, krb5 }: + kernel, glibc, ncurses, perl, krb5 }: assert stdenv.isLinux; let pname = "openafs"; version = "1.4.11"; - name = "${pname}-${version}"; + name = "${pname}-${version}-${kernel.version}"; webpage = http://www.openafs.org; - kernel = kernel_2_6_28; in stdenv.mkDerivation rec { inherit name; src = fetchurl { - url = "${webpage}/dl/${pname}/${version}/${name}-src.tar.gz"; + url = "${webpage}/dl/${pname}/${version}/${pname}-${version}-src.tar.gz"; sha256 = "ea5377119fd7b5317428644fa427066b9edbde395d997943a448426742d2c5c9"; }; @@ -26,20 +25,6 @@ stdenv.mkDerivation rec { replace_usrbinperl = ./replace-usrbinperl; replace_usrsrc = ./replace-usrsrc; -/* - xargs -IXX -L1 -a ${replace_usrbinenv} \ - substituteInPlace XX --replace "/usr/bin/env" $(type -tp env) - - xargs -IXX -L1 -a ${replace_usrinclude} \ - substituteInPlace XX --replace "/usr/include" "${glibc}/include" - - xargs -IXX -L1 -a ${replace_usrbinperl} \ - substituteInPlace XX --replace "/usr/bin/perl" $(type -tp perl) - - xargs -IXX -L1 -a ${replace_usrsrc} \ - substituteInPlace XX --replace "/usr/src" "$TMP" -*/ - configurePhase = '' ln -s ${kernel}/lib/modules/*/build $TMP/linux @@ -63,9 +48,9 @@ stdenv.mkDerivation rec { ./configure \ --prefix=$out \ --with-linux-kernel-build=$TMP/linux \ - --with-afs-sysname=amd64_linux26 \ --with-krb5-conf=${krb5}/bin/krb5-config \ --sysconfdir=/etc/static + #--with-afs-sysname=amd64_linux26 \ substituteInPlace src/pinstall/install.c --replace "/bin/cp" $(type -tp cp) ''; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 350c0f15417..999be126505 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2936,11 +2936,6 @@ let inherit fetchurl stdenv; }; - openafsClient = import ../servers/openafs-client { - inherit stdenv fetchurl autoconf automake flex yacc; - inherit kernel_2_6_28 glibc ncurses perl krb5; - }; - openocd = import ../development/tools/misc/openocd { inherit fetchurl stdenv libftdi; }; @@ -5733,6 +5728,11 @@ let inherit stdenv fetchurl kernel xlibs gtkLibs zlib; }; + openafsClient = import ../servers/openafs-client { + inherit stdenv fetchurl autoconf automake flex yacc; + inherit kernel glibc ncurses perl krb5; + }; + wis_go7007 = import ../os-specific/linux/wis-go7007 { inherit fetchurl stdenv kernel ncurses fxload; }; From 947e2c71ad31e8e94c8b51963e26229ff2a2e981 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 1 Feb 2010 16:56:10 +0000 Subject: [PATCH 49/69] * openssh updated to 5.3p1. Also enabled the HPN patch by default. svn path=/nixpkgs/trunk/; revision=19752 --- pkgs/tools/networking/openssh/default.nix | 75 +++++++++++++---------- pkgs/top-level/all-packages.nix | 4 +- 2 files changed, 45 insertions(+), 34 deletions(-) diff --git a/pkgs/tools/networking/openssh/default.nix b/pkgs/tools/networking/openssh/default.nix index 8a1d4666342..81ff6803806 100644 --- a/pkgs/tools/networking/openssh/default.nix +++ b/pkgs/tools/networking/openssh/default.nix @@ -6,47 +6,58 @@ assert pamSupport -> pam != null; -stdenv.mkDerivation (rec { - name = "openssh-5.2p1"; +let + + hpnSrc = fetchurl { + url = http://www.psc.edu/networking/projects/hpn-ssh/openssh-5.3p1-hpn13v7.diff.gz; + sha256 = "1kqir6v14z77l0wn9j4jzdqsip5s1ky34w749psvbshbp9dzizn8"; + }; + +in + +stdenv.mkDerivation rec { + name = "openssh-5.3p1"; src = fetchurl { url = "ftp://ftp.nluug.nl/pub/security/OpenSSH/${name}.tar.gz"; - sha256 = "1bpc6i07hlakb9vrxr8zb1yxnc9avsv7kjwrcagdgcyh6w6728s0"; + sha256 = "04pgqmb43p5lr5wrfnvyys8r504brghshm24n60495wn5131gjfh"; }; - buildInputs = [zlib openssl perl - (if pamSupport then pam else null) - ]; + patchPhase = stdenv.lib.optionalString hpnSupport + '' + gunzip -c ${hpnSrc} | patch -p1 + ''; + + buildInputs = + [ zlib openssl perl ] + ++ stdenv.lib.optional pamSupport pam; - configureFlags = " - --with-mantype=man - ${if pamSupport then "--with-pam" else "--without-pam"} - ${if etcDir != null then "--sysconfdir=${etcDir}" else ""} - "; + configureFlags = + '' + --with-mantype=man + ${if pamSupport then "--with-pam" else "--without-pam"} + ${if etcDir != null then "--sysconfdir=${etcDir}" else ""} + ''; - preConfigure = " - configureFlags=\"$configureFlags --with-privsep-path=$out/empty\" - ensureDir $out/empty - "; + preConfigure = + '' + configureFlags="$configureFlags --with-privsep-path=$out/empty" + ensureDir $out/empty + ''; - postInstall = " - # Install ssh-copy-id, it's very useful. - cp contrib/ssh-copy-id $out/bin/ - chmod +x $out/bin/ssh-copy-id - cp contrib/ssh-copy-id.1 $out/share/man/man1/ - "; + postInstall = + '' + # Install ssh-copy-id, it's very useful. + cp contrib/ssh-copy-id $out/bin/ + chmod +x $out/bin/ssh-copy-id + cp contrib/ssh-copy-id.1 $out/share/man/man1/ + ''; installTargets = "install-nosysconf"; -} // -(if hpnSupport then -rec { - hpnSrc = fetchurl { - url = http://www.psc.edu/networking/projects/hpn-ssh/openssh-5.2p1-hpn13v6.diff.gz; - sha256 = "1g91xl1vfg772072qcbcfzyqj7yfvm38xgk8zyy8wsl2g81rb8wh"; - }; - patchPhase = '' - gunzip -c ${hpnSrc} | patch -p1 - ''; + meta = { + homepage = http://www.openssh.org/; + description = "An implementation of the SSH protocol"; + license = "bsd"; + }; } -else {})) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 999be126505..1132fd9d164 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1210,8 +1210,8 @@ let openssh = import ../tools/networking/openssh { inherit fetchurl stdenv zlib openssl pam perl; pamSupport = getPkgConfig "openssh" "pam" true; - hpnSupport = getConfig [ "openssh" "hpn" ] false; - etcDir = getConfig [ "openssh" "etcDir" ] "/etc/ssh"; + hpnSupport = getPkgConfig "openssh" "hpn" true; + etcDir = getPkgConfig "openssh" "etcDir" "/etc/ssh"; }; opensp = import ../tools/text/sgml/opensp { From 0e212964fbf69b12890f41427ea83430e5d88924 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 1 Feb 2010 17:04:07 +0000 Subject: [PATCH 50/69] * openssh: Install the moduli file. svn path=/nixpkgs/trunk/; revision=19753 --- pkgs/tools/networking/openssh/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/networking/openssh/default.nix b/pkgs/tools/networking/openssh/default.nix index 81ff6803806..a46762a4a4f 100644 --- a/pkgs/tools/networking/openssh/default.nix +++ b/pkgs/tools/networking/openssh/default.nix @@ -51,6 +51,9 @@ stdenv.mkDerivation rec { cp contrib/ssh-copy-id $out/bin/ chmod +x $out/bin/ssh-copy-id cp contrib/ssh-copy-id.1 $out/share/man/man1/ + + ensureDir $out/etc/ssh + cp moduli $out/etc/ssh/ ''; installTargets = "install-nosysconf"; From 277e66450be746852c71f490d1528ac94400d8d3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 1 Feb 2010 17:08:35 +0000 Subject: [PATCH 51/69] * fuse updated to 2.8.2. svn path=/nixpkgs/trunk/; revision=19755 --- pkgs/os-specific/linux/fuse/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/fuse/default.nix b/pkgs/os-specific/linux/fuse/default.nix index cbf09e704b2..0c890da77b3 100644 --- a/pkgs/os-specific/linux/fuse/default.nix +++ b/pkgs/os-specific/linux/fuse/default.nix @@ -1,13 +1,13 @@ { stdenv, fetchurl, utillinux }: stdenv.mkDerivation rec { - name = "fuse-2.8.1"; + name = "fuse-2.8.2"; builder = ./builder.sh; src = fetchurl { url = "mirror://sourceforge/fuse/${name}.tar.gz"; - sha256 = "1brfgm2yxy060i6kcdlg30g2d48r6v9nhyxbfscpr6ijrrb10zq0"; + sha256 = "05sfrw4qzhsysdf1qvd89lvin36ry6rvakmm4zjhf3g1f28rwdr6"; }; configureFlags = "--disable-kernel-module"; From b22880b12dfdcbeb75826c01474fb77cd568288a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 1 Feb 2010 18:11:53 +0000 Subject: [PATCH 52/69] * qemu-kvm: increase the size of the buffer used to build the smbd command line. svn path=/nixpkgs/trunk/; revision=19756 --- .../linux/qemu-kvm/smb-tmpdir.patch | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/pkgs/os-specific/linux/qemu-kvm/smb-tmpdir.patch b/pkgs/os-specific/linux/qemu-kvm/smb-tmpdir.patch index c30ba9429dd..6d6c7831d15 100644 --- a/pkgs/os-specific/linux/qemu-kvm/smb-tmpdir.patch +++ b/pkgs/os-specific/linux/qemu-kvm/smb-tmpdir.patch @@ -1,19 +1,27 @@ Honour $TMPDIR for the qemu-smb temporary directory. diff -rc -x '*~' qemu-kvm-0.12.2-orig/net/slirp.c qemu-kvm-0.12.2/net/slirp.c -*** qemu-kvm-0.12.2-orig/net/slirp.c 2010-01-18 19:48:25.000000000 +0100 ---- qemu-kvm-0.12.2/net/slirp.c 2010-02-01 15:56:43.000000000 +0100 +*** qemu-kvm-0.12.2-orig/net/slirp.c 2010-02-01 19:05:24.000000000 +0100 +--- qemu-kvm-0.12.2/net/slirp.c 2010-02-01 19:05:54.000000000 +0100 *************** -*** 480,486 **** - char smb_cmdline[128]; +*** 476,486 **** + struct in_addr vserver_addr) + { + static int instance; +! char smb_conf[128]; +! char smb_cmdline[128]; FILE *f; ! snprintf(s->smb_dir, sizeof(s->smb_dir), "/tmp/qemu-smb.%ld-%d", (long)getpid(), instance++); if (mkdir(s->smb_dir, 0700) < 0) { qemu_error("could not create samba server dir '%s'\n", s->smb_dir); ---- 480,489 ---- - char smb_cmdline[128]; +--- 476,489 ---- + struct in_addr vserver_addr) + { + static int instance; +! char smb_conf[1024]; +! char smb_cmdline[1024]; FILE *f; ! char *tmpdir = getenv("TMPDIR"); From 41e5edb0b380c5766940d671a020871abb3148ea Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 1 Feb 2010 18:44:08 +0000 Subject: [PATCH 53/69] * qemu-kvm: link against libuuid. svn path=/nixpkgs/trunk/; revision=19757 --- pkgs/os-specific/linux/qemu-kvm/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/linux/qemu-kvm/default.nix b/pkgs/os-specific/linux/qemu-kvm/default.nix index 945fb05ca62..9bcb5a28e16 100644 --- a/pkgs/os-specific/linux/qemu-kvm/default.nix +++ b/pkgs/os-specific/linux/qemu-kvm/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, zlib, SDL, alsaLib, pkgconfig, pciutils}: +{ stdenv, fetchurl, zlib, SDL, alsaLib, pkgconfig, pciutils, libuuid }: assert stdenv.isLinux; @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { patches = [ ./unix-domain.patch ./smb-tmpdir.patch ]; - buildInputs = [zlib SDL alsaLib pkgconfig pciutils]; + buildInputs = [ zlib SDL alsaLib pkgconfig pciutils libuuid ]; preBuild = '' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1132fd9d164..71085b08854 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6009,7 +6009,7 @@ let }; qemu_kvm = import ../os-specific/linux/qemu-kvm { - inherit fetchurl stdenv zlib SDL alsaLib pkgconfig pciutils; + inherit fetchurl stdenv zlib SDL alsaLib pkgconfig pciutils libuuid; }; radeontools = import ../os-specific/linux/radeontools { From 936f161c001e677b1772952f288308e21560c392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Mon, 1 Feb 2010 19:55:03 +0000 Subject: [PATCH 54/69] Adding (quite blindly) some gnome packages to get gnucash built. svn path=/nixpkgs/trunk/; revision=19758 --- pkgs/games/tennix/default.nix | 23 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/games/tennix/default.nix diff --git a/pkgs/games/tennix/default.nix b/pkgs/games/tennix/default.nix new file mode 100644 index 00000000000..f67c7a312e8 --- /dev/null +++ b/pkgs/games/tennix/default.nix @@ -0,0 +1,23 @@ +{stdenv, fetchurl, SDL, SDL_mixer, SDL_image, SDL_ttf} : + +stdenv.mkDerivation rec { + name = "tennix-1.0"; + src = fetchurl { + url = "http://icculus.org/tennix/downloads/${name}.tar.gz"; + sha256 = "18rd7h1j5skpkh037misixw9gigzc7qy13vrnrs21rphcfxzpifn"; + }; + + + preConfigure = '' + makeFlags="PREFIX=$out USE_PYTHON=0" + installFlags="PREFIX=$out install" + ''; + + buildInputs = [ SDL SDL_mixer SDL_image SDL_ttf ]; + + meta = { + homepage = http://icculus.org/tennix/ + description = "Tennix 2009 World Tennis Championship Tour"; + license = "GPLv2+"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 71085b08854..d23a8ae569a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8273,6 +8273,10 @@ let inherit (xlibs) libX11; }; + tennix = import ../games/tennix { + inherit stdenv fetchurl SDL SDL_mixer SDL_image SDL_ttf; + }; + /*tpm = import ../games/thePenguinMachine { inherit stdenv fetchurl pil pygame SDL; python24 = python; From 1741bb2597a152821474242ad1a9b37a4d171ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Mon, 1 Feb 2010 19:55:40 +0000 Subject: [PATCH 55/69] Making 'boost' optionally build with -fPIC (with enableStatic, will produce static libraries linkable in a shared object) svn path=/nixpkgs/trunk/; revision=19759 --- pkgs/development/libraries/boost/1.41.0.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/boost/1.41.0.nix b/pkgs/development/libraries/boost/1.41.0.nix index 7b1166fb656..1bd500e270a 100644 --- a/pkgs/development/libraries/boost/1.41.0.nix +++ b/pkgs/development/libraries/boost/1.41.0.nix @@ -5,6 +5,7 @@ , enableMultiThreaded ? true , enableShared ? true , enableStatic ? false +, enablePIC ? false }: let @@ -27,6 +28,8 @@ let (enableShared && enableStatic)) then "tagged" else "system"; + cflags = if (enablePIC) then "cflags=-fPIC cxxflags=-fPIC linkflags=-fPIC" else ""; + in stdenv.mkDerivation { @@ -48,7 +51,7 @@ stdenv.mkDerivation { configureScript = "./bootstrap.sh"; configureFlags = "--with-icu=${icu} --with-python=${python}/bin/python"; - buildPhase = "./bjam -sEXPAT_INCLUDE=${expat}/include -sEXPAT_LIBPATH=${expat}/lib --layout=${finalLayout} variant=${variant} threading=${threading} link=${link} install"; + buildPhase = "./bjam -sEXPAT_INCLUDE=${expat}/include -sEXPAT_LIBPATH=${expat}/lib --layout=${finalLayout} variant=${variant} threading=${threading} link=${link} ${cflags} install"; installPhase = ":"; } From 49f9b96ad3fdfb3e23a3406287df24db8ee6c2f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Mon, 1 Feb 2010 19:58:57 +0000 Subject: [PATCH 56/69] Typo that broke evaluation svn path=/nixpkgs/trunk/; revision=19760 --- pkgs/games/tennix/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/games/tennix/default.nix b/pkgs/games/tennix/default.nix index f67c7a312e8..e06aec68b1a 100644 --- a/pkgs/games/tennix/default.nix +++ b/pkgs/games/tennix/default.nix @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { buildInputs = [ SDL SDL_mixer SDL_image SDL_ttf ]; meta = { - homepage = http://icculus.org/tennix/ + homepage = http://icculus.org/tennix/; description = "Tennix 2009 World Tennis Championship Tour"; license = "GPLv2+"; }; From ed088ba20835baa50607ac27d5f96f0688136d97 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 2 Feb 2010 15:02:29 +0000 Subject: [PATCH 57/69] * Get rid of the ".svn" directories that Hydra includes nowadays. They make the Nixpkgs tarball much larger and slower to unpack. svn path=/nixpkgs/trunk/; revision=19762 --- pkgs/top-level/make-tarball.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/top-level/make-tarball.nix b/pkgs/top-level/make-tarball.nix index 539bb5fd350..5f5938d25ca 100644 --- a/pkgs/top-level/make-tarball.nix +++ b/pkgs/top-level/make-tarball.nix @@ -59,6 +59,8 @@ releaseTools.makeSourceTarball { ''; distPhase = '' + find . -name "\.svn" -exec rm -rvf {} \; -prune + ensureDir $out/tarballs mkdir ../$releaseName cp -prd . ../$releaseName From a697127fcd923ed8b445cc4c2d58c1a78919f597 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 2 Feb 2010 15:49:48 +0000 Subject: [PATCH 58/69] * SQLite updated to 3.6.22. Use the amalgamation tarball since it now installs the pkg-config files that other packages expect. This also makes the dependency on tcl unnecessary. svn path=/nixpkgs/trunk/; revision=19765 --- pkgs/development/libraries/sqlite/default.nix | 25 +++---------------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/pkgs/development/libraries/sqlite/default.nix b/pkgs/development/libraries/sqlite/default.nix index 2f5ed3f5d42..c947edb3d2b 100644 --- a/pkgs/development/libraries/sqlite/default.nix +++ b/pkgs/development/libraries/sqlite/default.nix @@ -1,31 +1,14 @@ -{stdenv, fetchurl, readline, tcl, static ? false}: +{ stdenv, fetchurl }: stdenv.mkDerivation rec { - name = "sqlite-3.6.19"; + name = "sqlite-3.6.22"; - # Note: don't use the "amalgamation" source release, since it - # doesn't install sqlite3.pc. src = fetchurl { - url = "http://www.sqlite.org/${name}.tar.gz"; - sha256 = "7d8649c44fb97b874aa59144faaeb2356ec1fc6a8a7baa1d16e9ff5f1e097003"; + url = "http://www.sqlite.org/sqlite-amalgamation-3.6.22.tar.gz"; + sha256 = "1k5qyl0v2y4fpkh7vvxvb0irpnl71g0ffhfc3ksm40mrhcdq9qk8"; }; - buildInputs = [readline tcl]; - - configureFlags = '' - CFLAGS=-O3 - --enable-load-extension - ${if static then "--disable-shared --enable-static" else ""} - --enable-amalgamation - --enable-threadsafe - --disable-cross-thread-connections - --disable-tcl - --disable-tempstore - --with-readline-inc=-I${readline}/include - ''; - NIX_CFLAGS_COMPILE = "-DSQLITE_ENABLE_COLUMN_METADATA=1"; - NIX_CFLAGS_LINK = "-ldl"; # needed for --enable-load-extension meta = { homepage = http://www.sqlite.org/; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d23a8ae569a..995ecf4d7b0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4674,7 +4674,7 @@ let }; sqlite = import ../development/libraries/sqlite { - inherit fetchurl stdenv readline tcl; + inherit fetchurl stdenv; }; stlport = import ../development/libraries/stlport { From a066167a9e5fde279ef30d29dbe56fa757c3199c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 2 Feb 2010 16:49:07 +0000 Subject: [PATCH 59/69] * Fix building apr on Cygwin. svn path=/nixpkgs/trunk/; revision=19766 --- pkgs/development/libraries/apr/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/apr/default.nix b/pkgs/development/libraries/apr/default.nix index 1b63aee0595..9f28485754a 100644 --- a/pkgs/development/libraries/apr/default.nix +++ b/pkgs/development/libraries/apr/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl}: +{ stdenv, fetchurl }: stdenv.mkDerivation rec { name = "apr-1.3.9"; @@ -8,6 +8,11 @@ stdenv.mkDerivation rec { sha256 = "1qicxnk62d9mjza8vch2wxy4xlq8sa76chwi5cp6bs4cyj9s61ap"; }; + configureFlags = + # Including the Windows headers breaks unistd.h. + # Based on ftp://sourceware.org/pub/cygwin/release/libapr1/libapr1-1.3.8-2-src.tar.bz2 + stdenv.lib.optionalString (stdenv.system == "i686-cygwin") "ac_cv_header_windows_h=no"; + meta = { homepage = http://apr.apache.org/; description = "The Apache Portable Runtime library"; From 90962dc4cbcc32000b273b135390092fc4c13430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Tue, 2 Feb 2010 18:09:58 +0000 Subject: [PATCH 60/69] Making teeworlds executables accept parameters (to configure a teeworlds server for example) svn path=/nixpkgs/trunk/; revision=19768 --- pkgs/games/teeworlds/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/games/teeworlds/default.nix b/pkgs/games/teeworlds/default.nix index aab99fc4850..1185b663a02 100644 --- a/pkgs/games/teeworlds/default.nix +++ b/pkgs/games/teeworlds/default.nix @@ -55,7 +55,7 @@ stdenv.mkDerivation rec { mv -v "$out/bin/$program" "$out/bin/.wrapped-$program" cat > "$out/bin/$program" < Date: Tue, 2 Feb 2010 22:21:56 +0000 Subject: [PATCH 61/69] Adding the game 'pioneers' svn path=/nixpkgs/trunk/; revision=19769 --- pkgs/games/pioneers/default.nix | 19 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 5 +++++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/games/pioneers/default.nix diff --git a/pkgs/games/pioneers/default.nix b/pkgs/games/pioneers/default.nix new file mode 100644 index 00000000000..77e8ab3b92e --- /dev/null +++ b/pkgs/games/pioneers/default.nix @@ -0,0 +1,19 @@ +{stdenv, fetchurl, gtk, pkgconfig, intltool } : + +stdenv.mkDerivation rec { + name = "pioneers-0.12.3"; + src = fetchurl { + url = "mirror://sourceforge/pio/${name}.tar.gz"; + sha256 = "1yqypk5wmia8fqyrg9mn9xw6yfd0fpkxj1355csw1hgx8mh44y1d"; + }; + + buildInputs = [ gtk pkgconfig intltool ]; + + meta = { + homepage = http://pio.sourceforge.net/; + license = "GPLv2+"; + description = "Addicting game based on The Settlers of Catan"; + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 995ecf4d7b0..39adf443a43 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8221,6 +8221,11 @@ let zlib = zlibStatic; }; + pioneers = import ../games/pioneers { + inherit stdenv fetchurl pkgconfig intltool; + inherit (gtkLibs) gtk /*glib gtkmm*/; + }; + quake3demo = import ../games/quake3/wrapper { name = "quake3-demo-${quake3game.name}"; description = "Demo of Quake 3 Arena, a classic first-person shooter"; From 4033c4aa3100a25abdd53a69db96706443b736bd Mon Sep 17 00:00:00 2001 From: Alexander Tsamutali Date: Wed, 3 Feb 2010 00:46:43 +0000 Subject: [PATCH 62/69] games/urbanterror: New nixpkg for viric. svn path=/nixpkgs/trunk/; revision=19770 --- pkgs/games/urbanterror/default.nix | 73 ++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++ 2 files changed, 77 insertions(+) create mode 100644 pkgs/games/urbanterror/default.nix diff --git a/pkgs/games/urbanterror/default.nix b/pkgs/games/urbanterror/default.nix new file mode 100644 index 00000000000..c5e562ced53 --- /dev/null +++ b/pkgs/games/urbanterror/default.nix @@ -0,0 +1,73 @@ +{ stdenv, fetchurl, unzip, SDL, mesa, curl, openal }: +stdenv.mkDerivation rec { + name = "urbanterror-${version}"; + version = "4.1"; + src1 = fetchurl { + url = "http://ftp.snt.utwente.nl/pub/games/urbanterror/UrbanTerror_41_FULL.zip"; + sha256 = "0pr6xpwq8zllc0xsdxl8cfd0zz5fhggw5fsbrizygr6hhdvra1jp"; + }; + src2 = fetchurl { + url = "http://ftp.snt.utwente.nl/pub/games/urbanterror/iourbanterror/source/complete/ioUrbanTerrorSource_2007_12_20.zip"; + sha256 = "1s1wq9m7shhvvk7s4400yrmz7dys501i4c9ln1mglc9dhmi8dmcn"; + }; + unpackPhase = '' + mkdir urbanterror + cd urbanterror + unzip $src1 + unzip $src2 + ''; + # FIXME + #patchPhase = '' + # cd ioUrbanTerrorClientSource + # substituteInPlace code/client/snd_openal.c \ + # --replace libopenal.so.0 ${openal}/lib/libopenal.so + # substituteInPlace code/client/cl_curl.h \ + # --replace libcurl.so.3 ${curl}/lib/libcurl.so + # cd .. + #''; + buildInputs = [ unzip SDL mesa ]; + buildPhase = '' + for d in ioUrbanTerrorClientSource ioUrbanTerrorServerSource + do + cd $d + make + cd .. + done + ''; + installPhase = '' + destDir="$out/opt/urbanterror" + ensureDir "$destDir" + ensureDir "$out/bin" + cp -v ioUrbanTerrorClientSource/build/release-linux-*/ioUrbanTerror.* \ + "$destDir/ioUrbanTerror" + cp -v ioUrbanTerrorServerSource/build/release-linux-*/ioUrTded.* \ + "$destDir/ioUrTded" + cp -rv UrbanTerror/q3ut4 "$destDir" + cat << EOF > "$out/bin/urbanterror" +#!/bin/sh +cd "$destDir" +exec ./ioUrbanTerror "\$@" +EOF + chmod +x "$out/bin/urbanterror" + cat << EOF > "$out/bin/urbanterror-ded" +#!/bin/sh +cd "$destDir" +exec ./ioUrTded "\$@" +EOF + chmod +x "$out/bin/urbanterror-ded" + ''; + meta = { + description = "A multiplayer tactical FPS on top of Quake 3 engine"; + longDescription = '' + Urban Terror is a free multiplayer first person shooter developed by + FrozenSand, that (thanks to the ioquake3-code) does not require + Quake III Arena anymore. Urban Terror can be described as a Hollywood + tactical shooter; somewhat realism based, but the motto is "fun over + realism". This results in a very unique, enjoyable and addictive game. + ''; + homepage = http://www.urbanterror.net; + license = [ "unfree-redistributable" ]; + maintainers = with stdenv.lib.maintainers; [ astsmtl ]; + platforms = with stdenv.lib.platforms; linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 39adf443a43..c61a5f3991c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8291,6 +8291,10 @@ let inherit stdenv fetchurl SDL mesa SDL_image freealut; }; + urbanterror = import ../games/urbanterror { + inherit fetchurl stdenv unzip SDL mesa curl openal; + }; + ut2004demo = import ../games/ut2004demo { inherit fetchurl stdenv xlibs mesa; }; From 096cd4d17d68f0ce8e0a3e7a996569b666c55a61 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 3 Feb 2010 10:51:11 +0000 Subject: [PATCH 63/69] * Contrary to what `configure --help' says, `--enable-threadsafe' is not the default. So turn it on. svn path=/nixpkgs/trunk/; revision=19772 --- pkgs/development/libraries/sqlite/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/sqlite/default.nix b/pkgs/development/libraries/sqlite/default.nix index c947edb3d2b..c869ac7daba 100644 --- a/pkgs/development/libraries/sqlite/default.nix +++ b/pkgs/development/libraries/sqlite/default.nix @@ -8,6 +8,8 @@ stdenv.mkDerivation rec { sha256 = "1k5qyl0v2y4fpkh7vvxvb0irpnl71g0ffhfc3ksm40mrhcdq9qk8"; }; + configureFlags = "--enable-threadsafe"; + NIX_CFLAGS_COMPILE = "-DSQLITE_ENABLE_COLUMN_METADATA=1"; meta = { From 031f72239448318dfb65728c5990448daf467935 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 3 Feb 2010 10:56:10 +0000 Subject: [PATCH 64/69] svn path=/nixpkgs/trunk/; revision=19773 --- pkgs/tools/package-management/nix/unstable.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/package-management/nix/unstable.nix b/pkgs/tools/package-management/nix/unstable.nix index 699b2f74fa7..06c005f6b91 100644 --- a/pkgs/tools/package-management/nix/unstable.nix +++ b/pkgs/tools/package-management/nix/unstable.nix @@ -4,11 +4,11 @@ }: stdenv.mkDerivation rec { - name = "nix-0.14pre19730"; + name = "nix-0.14pre19767"; src = fetchurl { - url = "http://hydra.nixos.org/build/275242/download/4/${name}.tar.bz2"; - sha256 = "8359230264e1b96bfadf2c719f98f95dc08990d111854c18abb8a5e86092ec75"; + url = "http://hydra.nixos.org/build/278172/download/4/${name}.tar.bz2"; + sha256 = "787f39d66b9548c8f56166e280ef53b3696e90d99b79f926e504235760146e04"; }; buildInputs = [perl curl openssl]; From c261d7a8472d003a6dd6bcf331cab609311e2383 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 3 Feb 2010 12:47:23 +0000 Subject: [PATCH 65/69] pkgs/tools/system/ipmitool: updated to version 1.8.11 svn path=/nixpkgs/trunk/; revision=19777 --- pkgs/tools/system/ipmitool/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/system/ipmitool/default.nix b/pkgs/tools/system/ipmitool/default.nix index 87b77a483e3..d4bc1788874 100644 --- a/pkgs/tools/system/ipmitool/default.nix +++ b/pkgs/tools/system/ipmitool/default.nix @@ -2,14 +2,14 @@ let pkgname = "ipmitool"; - version = "1.8.9"; + version = "1.8.11"; in stdenv.mkDerivation { name = "${pkgname}-${version}"; src = fetchurl { url = "mirror://sourceforge/${pkgname}/${pkgname}-${version}.tar.gz"; - sha256 = "1d6bf2595d1fd0dbef206c300cc666d3d079548ba97f727077d61c4736a7e63a"; + sha256 = "5612f4835d89a6f2cede588eef978a05d63435cf2646256300d9785d8020a13e"; }; buildInputs = [ openssl ]; From 715c59b28166122786df14dbde157e67c2fbf466 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 3 Feb 2010 12:47:31 +0000 Subject: [PATCH 66/69] pkgs/tools/system/ipmitool: added optional support for generating statically linked binaries svn path=/nixpkgs/trunk/; revision=19778 --- pkgs/tools/system/ipmitool/default.nix | 5 ++++- pkgs/top-level/all-packages.nix | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/system/ipmitool/default.nix b/pkgs/tools/system/ipmitool/default.nix index d4bc1788874..0a4c4b01ef6 100644 --- a/pkgs/tools/system/ipmitool/default.nix +++ b/pkgs/tools/system/ipmitool/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, openssl }: +{ fetchurl, stdenv, openssl, static ? false }: let pkgname = "ipmitool"; @@ -13,6 +13,9 @@ stdenv.mkDerivation { }; buildInputs = [ openssl ]; + dontDisableStatic = static; + configureFlags = if static then "LDFLAGS=-static --enable-static --disable-shared" else "--enable-shared"; + makeFlags = if static then "AM_LDFLAGS=-all-static" else ""; meta = { description = ''Command-line interface to IPMI-enabled devices''; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c61a5f3991c..e766f3e1343 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -909,6 +909,7 @@ let ipmitool = import ../tools/system/ipmitool { inherit fetchurl stdenv openssl; + static = getPkgConfig "ipmitool" "static" false; }; jdiskreport = import ../tools/misc/jdiskreport { From 167d42970d3d0339b1af2a75230c32cfcbfc7317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 3 Feb 2010 13:37:49 +0000 Subject: [PATCH 67/69] Twisted: Attempt to generate the plug-in cache. svn path=/nixpkgs/trunk/; revision=19782 --- pkgs/top-level/python-packages.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 79e0c453aa4..68967a3162b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -242,6 +242,8 @@ rec { propagatedBuildInputs = [ twisted ]; + postInstall = "twistd --help > /dev/null"; + meta = { description = "Nevow, a web application construction kit for Python"; @@ -549,6 +551,12 @@ rec { propagatedBuildInputs = [ pkgs.ZopeInterface ]; + # Generate Twisted's plug-in cache. Twited users must do it as well. See + # http://twistedmatrix.com/documents/current/core/howto/plugin.html#auto3 + # and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477103 for + # details. + postInstall = "$out/bin/twistd --help > /dev/null"; + meta = { homepage = http://twistedmatrix.com/; From 1e9f08cb2c1d056c444069454a35b1b9c47b22d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 3 Feb 2010 13:37:59 +0000 Subject: [PATCH 68/69] Add setuptools-trial. svn path=/nixpkgs/trunk/; revision=19783 --- pkgs/top-level/python-packages.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 68967a3162b..b55c101167a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -494,6 +494,25 @@ rec { }; }; + setuptoolsTrial = buildPythonPackage { + name = "setuptools-trial-0.5.3"; + + src = fetchurl { + url = "http://pypi.python.org/packages/source/s/setuptools_trial/setuptools_trial-0.5.3.tar.gz"; + sha256 = "0h3mgjsz3z1sjl9j0b6bv4bss8d0przamj4gnjmpyazc633hhlyi"; + }; + + propagatedBuildInputs = [ twisted ]; + + meta = { + description = "setuptools plug-in that helps run unit tests built with the \"Trial\" framework (from Twisted)"; + + homepage = http://allmydata.org/trac/setuptools_trial; + + license = "unspecified"; # ! + }; + }; + simplejson = buildPythonPackage (rec { name = "simplejson-2.0.9"; From b5088abe203ba6c15d2c4c22963f84e7279af5b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 3 Feb 2010 13:38:03 +0000 Subject: [PATCH 69/69] Tahoe-LAFS 1.6.0. svn path=/nixpkgs/trunk/; revision=19784 --- .../networking/p2p/tahoe-lafs/default.nix | 38 +++++++++++++------ pkgs/top-level/all-packages.nix | 3 +- 2 files changed, 28 insertions(+), 13 deletions(-) diff --git a/pkgs/tools/networking/p2p/tahoe-lafs/default.nix b/pkgs/tools/networking/p2p/tahoe-lafs/default.nix index 1bf6f920c4c..0017c13a787 100644 --- a/pkgs/tools/networking/p2p/tahoe-lafs/default.nix +++ b/pkgs/tools/networking/p2p/tahoe-lafs/default.nix @@ -1,13 +1,14 @@ { fetchurl, lib, unzip, buildPythonPackage, twisted, foolscap, nevow -, simplejson, zfec, pycryptopp, pysqlite, nettools }: +, simplejson, zfec, pycryptopp, pysqlite, darcsver, setuptoolsTrial +, setuptoolsDarcs, numpy, nettools }: buildPythonPackage (rec { - name = "tahoe-lafs-1.5.0"; + name = "tahoe-lafs-1.6.0"; namePrefix = ""; src = fetchurl { - url = "http://allmydata.org/source/tahoe/releases/allmydata-tahoe-1.5.0.zip"; - sha256 = "1cgwm7v49mlfsq47k8gw2bz14d6lnls0mr6dc18815pf24z4f00n"; + url = "http://allmydata.org/source/tahoe/releases/allmydata-tahoe-1.6.0.zip"; + sha256 = "10j6s4wqqxb0x6plwvfnabxxl0k8jy1g1dfsrhpfgdi42f25dain"; }; patchPhase = '' @@ -26,18 +27,25 @@ buildPythonPackage (rec { sed -i "src/allmydata/util/iputil.py" \ -es"|_linux_path = '/sbin/ifconfig'|_linux_path = '${nettools}/sbin/ifconfig'|g" + + # Chroots don't have /etc/hosts and /etc/resolv.conf, so work around + # that. + for i in $(find src/allmydata/test -type f) + do + sed -i "$i" -e"s/localhost/127.0.0.1/g" + done ''; - buildInputs = [ unzip ]; + buildInputs = [ unzip ] + ++ [ numpy ]; # Some tests want this - # The `backup' command works best with `pysqlite'. - propagatedBuildInputs = [ - twisted foolscap nevow simplejson zfec pycryptopp pysqlite - ]; + # The `backup' command requires `pysqlite'. + propagatedBuildInputs = + [ twisted foolscap nevow simplejson zfec pycryptopp pysqlite + darcsver setuptoolsTrial + ]; - # FIXME: Many tests try to write to the Nix store or to $HOME, which - # fails. Disable tests until we have a reasonable hack to allow - # them to run. + # The test suite is run in `postInstall'. doCheck = false; postInstall = '' @@ -50,6 +58,12 @@ buildPythonPackage (rec { ensureDir "$out/share/doc/${name}" cp -rv "docs/"* "$out/share/doc/${name}" find "$out/share/doc/${name}" -name Makefile -exec rm -v {} \; + + # Run the tests once everything is installed. + # FIXME: Some of the tests want to run $out/bin/tahoe, which isn't usable + # yet because it gets wrapped later on, in `postFixup'. + export PYTHON_EGG_CACHE="$TMPDIR" + python setup.py trial ''; meta = { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e766f3e1343..d32eb5be7d1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7742,7 +7742,8 @@ let tahoelafs = import ../tools/networking/p2p/tahoe-lafs { inherit fetchurl lib unzip nettools buildPythonPackage; inherit (pythonPackages) twisted foolscap simplejson nevow zfec - pycryptopp pysqlite; + pycryptopp pysqlite darcsver setuptoolsTrial setuptoolsDarcs + numpy; }; tailor = builderDefsPackage (import ../applications/version-management/tailor) {