From b4bee8caf5a282cae972c5b25eea05b00fb31253 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sat, 25 Feb 2012 20:18:00 +0000 Subject: [PATCH 01/71] nixUnstable: Run checkPhase after installPhase to work around a test suite bug svn path=/nixpkgs/trunk/; revision=32567 --- pkgs/tools/package-management/nix/unstable.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/package-management/nix/unstable.nix b/pkgs/tools/package-management/nix/unstable.nix index 175ae0693820..7ad69e8353a9 100644 --- a/pkgs/tools/package-management/nix/unstable.nix +++ b/pkgs/tools/package-management/nix/unstable.nix @@ -4,7 +4,7 @@ , stateDir ? "/nix/var" }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (rec { name = "nix-1.0pre31851"; src = fetchurl { @@ -51,4 +51,6 @@ stdenv.mkDerivation rec { homepage = http://nixos.org/; license = "LGPLv2+"; }; -} +} // stdenv.lib.optionalAttrs stdenv.isDarwin { + phases = "$prePhases unpackPhase patchPhase $preConfigurePhases configurePhase $preBuildPhases buildPhase $preInstallPhases installPhase checkPhase fixupPhase $preDistPhases distPhase $postPhases"; +}) From e4ff365eb44fcbf6363c835247103a38a0818768 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 25 Feb 2012 20:26:25 +0000 Subject: [PATCH 02/71] * EC2 AMI tools updated to 1.4.0.5. svn path=/nixpkgs/trunk/; revision=32568 --- .../amazon-ec2-ami-tools/default.nix | 4 +- .../amazon-ec2-ami-tools/writable.patch | 56 ++++++++----------- 2 files changed, 25 insertions(+), 35 deletions(-) diff --git a/pkgs/tools/virtualization/amazon-ec2-ami-tools/default.nix b/pkgs/tools/virtualization/amazon-ec2-ami-tools/default.nix index f6f32a7c5b79..36dc77bcd2d7 100644 --- a/pkgs/tools/virtualization/amazon-ec2-ami-tools/default.nix +++ b/pkgs/tools/virtualization/amazon-ec2-ami-tools/default.nix @@ -1,13 +1,13 @@ { stdenv, fetchurl, unzip, ruby, openssl, makeWrapper }: stdenv.mkDerivation { - name = "ec2-ami-tools-1.4.0.1"; + name = "ec2-ami-tools-1.4.0.5"; buildInputs = [ unzip makeWrapper ]; src = fetchurl { url = http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.zip; - sha256 = "1fjg3gx5k0z8r4apg5whz3yxc3xnz7z5g6j93hf765lfriz1rccz"; + sha256 = "0vhdqmi076ipqj05dd7fn0drbhcvzccdcdhy8br9sp684scg9a75"; }; # Amazon EC2 requires that disk images are writable. If they're diff --git a/pkgs/tools/virtualization/amazon-ec2-ami-tools/writable.patch b/pkgs/tools/virtualization/amazon-ec2-ami-tools/writable.patch index c8d0597b4799..54c2228911eb 100644 --- a/pkgs/tools/virtualization/amazon-ec2-ami-tools/writable.patch +++ b/pkgs/tools/virtualization/amazon-ec2-ami-tools/writable.patch @@ -1,33 +1,23 @@ -diff -rc --exclude '*~' ec2-ami-tools-1.3-45758-orig/lib/ec2/amitools/bundle.rb ec2-ami-tools-1.3-45758/lib/ec2/amitools/bundle.rb -*** ec2-ami-tools-1.3-45758-orig/lib/ec2/amitools/bundle.rb 2009-12-02 22:28:44.000000000 +0100 ---- ec2-ami-tools-1.3-45758/lib/ec2/amitools/bundle.rb 2010-01-22 16:16:13.000000000 +0100 -*************** -*** 80,86 **** - # piped via several processes. The tee is used to allow a - # digest of the file to be calculated without having to re-read - # it from disk. -! tar = EC2::Platform::Current::Tar::Command.new.create.dereference.sparse - tar.add(File::basename( image_file ), File::dirname( image_file )) - openssl = EC2::Platform::Current::Constants::Utility::OPENSSL - pipeline = EC2::Platform::Current::Pipeline.new('image-bundle-pipeline', debug) ---- 80,86 ---- - # piped via several processes. The tee is used to allow a - # digest of the file to be calculated without having to re-read - # it from disk. -! tar = EC2::Platform::Current::Tar::Command.new.create.dereference.sparse.writable - tar.add(File::basename( image_file ), File::dirname( image_file )) - openssl = EC2::Platform::Current::Constants::Utility::OPENSSL - pipeline = EC2::Platform::Current::Pipeline.new('image-bundle-pipeline', debug) -diff -rc --exclude '*~' ec2-ami-tools-1.3-45758-orig/lib/ec2/platform/linux/tar.rb ec2-ami-tools-1.3-45758/lib/ec2/platform/linux/tar.rb -*** ec2-ami-tools-1.3-45758-orig/lib/ec2/platform/linux/tar.rb 2009-12-02 22:28:44.000000000 +0100 ---- ec2-ami-tools-1.3-45758/lib/ec2/platform/linux/tar.rb 2010-01-22 16:16:11.000000000 +0100 -*************** -*** 31,36 **** ---- 31,37 ---- - def update; @options << '-u'; self; end - def sparse; @options << '-S'; self; end - def dereference; @options << '-h'; self; end -+ def writable; @options << '--mode=0755'; self; end - - def archive(filename) - filename = '-' if filename.nil? +diff -ru ec2-ami-tools-1.4.0.5-orig/lib/ec2/amitools/bundle.rb ec2-ami-tools-1.4.0.5/lib/ec2/amitools/bundle.rb +--- ec2-ami-tools-1.4.0.5-orig/lib/ec2/amitools/bundle.rb 2011-12-06 14:57:28.000000000 +0100 ++++ ec2-ami-tools-1.4.0.5/lib/ec2/amitools/bundle.rb 2012-02-25 21:24:57.682427268 +0100 +@@ -80,7 +80,7 @@ + # piped via several processes. The tee is used to allow a + # digest of the file to be calculated without having to re-read + # it from disk. +- tar = EC2::Platform::Current::Tar::Command.new.create.dereference.sparse ++ tar = EC2::Platform::Current::Tar::Command.new.create.dereference.sparse.writable + tar.owner(0).group(0) + tar.add(File::basename( image_file ), File::dirname( image_file )) + openssl = EC2::Platform::Current::Constants::Utility::OPENSSL +diff -ru ec2-ami-tools-1.4.0.5-orig/lib/ec2/platform/linux/tar.rb ec2-ami-tools-1.4.0.5/lib/ec2/platform/linux/tar.rb +--- ec2-ami-tools-1.4.0.5-orig/lib/ec2/platform/linux/tar.rb 2011-12-06 14:57:28.000000000 +0100 ++++ ec2-ami-tools-1.4.0.5/lib/ec2/platform/linux/tar.rb 2012-02-25 21:23:36.342716403 +0100 +@@ -31,6 +31,7 @@ + def update; @options << '-u'; self; end + def sparse; @options << '-S'; self; end + def dereference; @options << '-h'; self; end ++ def writable; @options << '--mode=0755'; self; end + + def archive(filename) + filename = '-' if filename.nil? From 91e3d54b8f62249ff54e288f15354d669aed537d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 26 Feb 2012 11:07:56 +0000 Subject: [PATCH 03/71] * Remove the ruby/default.nix, it's not very useful. svn path=/nixpkgs/trunk/; revision=32572 --- pkgs/development/interpreters/ruby/default.nix | 1 - pkgs/top-level/all-packages.nix | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 pkgs/development/interpreters/ruby/default.nix diff --git a/pkgs/development/interpreters/ruby/default.nix b/pkgs/development/interpreters/ruby/default.nix deleted file mode 100644 index 550edcc004aa..000000000000 --- a/pkgs/development/interpreters/ruby/default.nix +++ /dev/null @@ -1 +0,0 @@ -import ./ruby-19.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bf6af1326a77..50417a72aceb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2766,7 +2766,8 @@ let ruby18 = callPackage ../development/interpreters/ruby/ruby-18.nix { }; ruby19 = callPackage ../development/interpreters/ruby/ruby-19.nix { }; - ruby = callPackage ../development/interpreters/ruby { }; + + ruby = ruby19; rubyLibs = recurseIntoAttrs (callPackage ../development/interpreters/ruby/libs.nix { }); From a488f53a54051910d84724ad99f4c69e19a3cf78 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 26 Feb 2012 11:10:00 +0000 Subject: [PATCH 04/71] * Many buildr Buildfiles rely on RUBYLIB containing the current directory (as was the default in Ruby < 1.9.2). So make sure that's the case when running buildr. svn path=/nixpkgs/trunk/; revision=32573 --- pkgs/development/interpreters/ruby/gem.nix | 3 ++- pkgs/development/interpreters/ruby/patches.nix | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/ruby/gem.nix b/pkgs/development/interpreters/ruby/gem.nix index a64f10e268cc..8ec80b785de0 100644 --- a/pkgs/development/interpreters/ruby/gem.nix +++ b/pkgs/development/interpreters/ruby/gem.nix @@ -31,7 +31,8 @@ let wrapProgram "$prog" \ --prefix GEM_PATH : "$GEM_PATH" \ --prefix RUBYLIB : "${rubygems}/lib" \ - --set RUBYOPT 'rubygems' + --set RUBYOPT rubygems \ + $extraWrapperFlags ''${extraWrapperFlagsArray[@]} done for prog in $out/gems/*/bin/*; do diff --git a/pkgs/development/interpreters/ruby/patches.nix b/pkgs/development/interpreters/ruby/patches.nix index 37f103f7772d..a2d2d753a4af 100644 --- a/pkgs/development/interpreters/ruby/patches.nix +++ b/pkgs/development/interpreters/ruby/patches.nix @@ -61,4 +61,11 @@ in buildInputs = [ jdk ]; JAVA_HOME = jdk; }; + + buildr = { + # Many Buildfiles rely on RUBYLIB containing the current directory + # (as was the default in Ruby < 1.9.2). + extraWrapperFlags = "--prefix RUBYLIB : ."; + }; + } From 91b809a1ecd3218a4b3335f9275d261cc96bd8af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sun, 26 Feb 2012 11:55:41 +0000 Subject: [PATCH 05/71] Updating the nvidia drivers for legacy 173 svn path=/nixpkgs/trunk/; revision=32575 --- pkgs/os-specific/linux/nvidia-x11/legacy173.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/linux/nvidia-x11/legacy173.nix b/pkgs/os-specific/linux/nvidia-x11/legacy173.nix index 638f2e4360e7..541e442f6b17 100644 --- a/pkgs/os-specific/linux/nvidia-x11/legacy173.nix +++ b/pkgs/os-specific/linux/nvidia-x11/legacy173.nix @@ -2,7 +2,7 @@ let - versionNumber = "173.14.27"; + versionNumber = "173.14.31"; in @@ -15,12 +15,12 @@ stdenv.mkDerivation { if stdenv.system == "i686-linux" then fetchurl { url = "http://us.download.nvidia.com/XFree86/Linux-x86/${versionNumber}/NVIDIA-Linux-x86-${versionNumber}-pkg0.run"; - sha256 = "08l3zs7sb8n4vjm1vg3yy1pkj54dq7gfrjashlqwbznaa2cdwknb"; + sha256 = "090rkl1psmcsx3mxb6lnirqipka8vp78y2j7pzqyzl592qpscmg8"; } else if stdenv.system == "x86_64-linux" then fetchurl { url = "http://us.download.nvidia.com/XFree86/Linux-x86_64/${versionNumber}/NVIDIA-Linux-x86_64-${versionNumber}-pkg0.run"; - sha256 = "0pmg5whpk0rmzg8zb7qq2imva2hf346c4pvpz5sjir6346350blw"; + sha256 = "0hs4fd61iha7b2936wj5w5fj3rxmw60jnkgf6l1pl3va7sfw30d2"; } else throw "nvidia-x11 does not support platform ${stdenv.system}"; From c79294e4952c4b3d3b0316ddbf0133137eae6284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sun, 26 Feb 2012 16:21:12 +0000 Subject: [PATCH 06/71] Updating task coach to 1.3.8. svn path=/nixpkgs/trunk/; revision=32577 --- pkgs/top-level/python-packages.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 35de47cc5e52..488fce66febd 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1918,11 +1918,11 @@ let pythonPackages = python.modules // rec { }; taskcoach = buildPythonPackage rec { - name = "TaskCoach-1.3.7"; + name = "TaskCoach-1.3.8"; src = fetchurl { url = "mirror://sourceforge/taskcoach/${name}.tar.gz"; - sha256 = "069hyxc8ypn51a8imfkfqdalp1l4pv09swj2v3bi4hjscq9af6i8"; + sha256 = "0gc277cgnw6f167lrbxlf7rmgyjxwzgkmi77qz9xwvnwcj2l94xn"; }; propagatedBuildInputs = [ wxPython ]; From cb5bbe00fe265cd74ddb45bd1b3fbe7cb052d2a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sun, 26 Feb 2012 20:06:01 +0000 Subject: [PATCH 07/71] Adding the latest zlib, otherwise vlc does not build. This also could be used for a newer cmake, or some trouble there was with libxml2. svn path=/nixpkgs/trunk/; revision=32598 --- pkgs/development/libraries/zlib/latest.nix | 11 +++++++++++ pkgs/top-level/all-packages.nix | 9 ++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/libraries/zlib/latest.nix diff --git a/pkgs/development/libraries/zlib/latest.nix b/pkgs/development/libraries/zlib/latest.nix new file mode 100644 index 000000000000..1333c9fdfdf3 --- /dev/null +++ b/pkgs/development/libraries/zlib/latest.nix @@ -0,0 +1,11 @@ +{stdenv, fetchurl}: + +# To be removed in stdenv-updates, as default.nix is already right there. +stdenv.mkDerivation rec { + name = "zlib-1.2.6"; + + src = fetchurl { + url = "http://www.zlib.net/${name}.tar.gz"; + sha256 = "06x6m33ls1606ni7275q5z392csvh18dgs55kshfnvrfal45w8r1"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 50417a72aceb..d429751bffbf 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4845,6 +4845,9 @@ let fetchurl = fetchurlBoot; }; + # To be removed in stdenv-updates; zlib is already fixed and the latest there + zlib_latest = callPackage ../development/libraries/zlib/latest.nix { }; + zlibStatic = lowPrio (appendToName "static" (import ../development/libraries/zlib { inherit fetchurl stdenv; static = true; @@ -7633,7 +7636,11 @@ let inherit (xlibs) libX11; }; - vlc = callPackage ../applications/video/vlc { }; + vlc = callPackage ../applications/video/vlc { + # To be removed on stdenv-updates. It fails on i686-linux with + # the stdenv zlib. + zlib = zlib_latest; + }; vnstat = callPackage ../applications/networking/vnstat { }; From a9b800c8af3512b6c1b269927b719c0ddbd6f296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sun, 26 Feb 2012 20:47:12 +0000 Subject: [PATCH 08/71] Updating blender to 2.67. Maybe this will build in stdenv-updates too. I remove the blender 2.49; I think I don't need it anymore. svn path=/nixpkgs/trunk/; revision=32599 --- pkgs/applications/misc/blender/2.49.nix | 33 ---------------------- pkgs/applications/misc/blender/default.nix | 20 ++++++------- pkgs/top-level/all-packages.nix | 9 ++---- 3 files changed, 12 insertions(+), 50 deletions(-) delete mode 100644 pkgs/applications/misc/blender/2.49.nix diff --git a/pkgs/applications/misc/blender/2.49.nix b/pkgs/applications/misc/blender/2.49.nix deleted file mode 100644 index 6a66c45b94fc..000000000000 --- a/pkgs/applications/misc/blender/2.49.nix +++ /dev/null @@ -1,33 +0,0 @@ -{stdenv, fetchurl, cmake, mesa, gettext, python, libjpeg, libpng, zlib, openal, SDL -, openexr, libsamplerate, libXi, libtiff, ilmbase, freetype}: - -stdenv.mkDerivation rec { - name = "blender-2.49b"; - - src = fetchurl { - url = "http://download.blender.org/source/${name}.tar.gz"; - sha256 = "1214fp2asij7l1sci2swh46nfjgpm72gk2qafq70xc0hmas4sm93"; - }; - - buildInputs = [ cmake mesa gettext python libjpeg libpng zlib openal SDL openexr libsamplerate - libXi libtiff ilmbase freetype ]; - - cmakeFlags = [ "-DFREETYPE_INC=${freetype}/include" "-DOPENEXR_INC=${openexr}/include/OpenEXR" "-DWITH_OPENCOLLADA=OFF" - "-DPYTHON_LIBPATH=${python}/lib" ]; - - NIX_LDFLAGS = "-lX11"; - NIX_CFLAGS_COMPILE = "-iquote ${ilmbase}/include/OpenEXR -I${python}/include/${python.libPrefix} -I${freetype}/include/freetype2"; - - installPhase = '' - ensureDir $out/bin - cp bin/* $out/bin - ''; - - meta = { - description = "3D Creation/Animation/Publishing System"; - homepage = http://www.blender.org; - # They comment two licenses: GPLv2 and Blender License, but they - # say: "The BL has not been activated yet." - license = "GPLv2+"; - }; -} diff --git a/pkgs/applications/misc/blender/default.nix b/pkgs/applications/misc/blender/default.nix index 75d737e5996e..c291192ef01e 100644 --- a/pkgs/applications/misc/blender/default.nix +++ b/pkgs/applications/misc/blender/default.nix @@ -1,24 +1,24 @@ { stdenv, fetchurl, SDL, cmake, gettext, ilmbase, libXi, libjpeg, libpng, libsamplerate, libtiff, mesa, openal, openexr, openjpeg, -python, zlib }: +python, zlib, boost }: stdenv.mkDerivation rec { - name = "blender-2.57"; + name = "blender-2.62"; src = fetchurl { url = "http://download.blender.org/source/${name}.tar.gz"; - sha256 = "1f4l0zkfmbd8ydzwvmb5jw89y7ywd9k8m2f1b3hrdpgjcqhq3lcb"; + sha256 = "19xfr5vx66p4p3hnqpglpky6f4bh3ay484mdgh7zg6j9f80dp53q"; }; buildInputs = [ cmake mesa gettext python libjpeg libpng zlib openal - SDL openexr libsamplerate libXi libtiff ilmbase openjpeg ]; + SDL openexr libsamplerate libXi libtiff ilmbase openjpeg boost ]; - patchPhase = '' - sed -e "s@/usr/local@${python}@" -i build_files/cmake/FindPythonLibsUnix.cmake - ''; - - cmakeFlags = [ "-DOPENEXR_INC=${openexr}/include/OpenEXR" - "-DWITH_OPENCOLLADA=OFF" "-DWITH_INSTALL_PORTABLE=OFF"]; + cmakeFlags = [ + "-DOPENEXR_INC=${openexr}/include/OpenEXR" + "-DWITH_OPENCOLLADA=OFF" + "-DWITH_INSTALL_PORTABLE=OFF" + "-DPYTHON_LIBPATH=${python}/lib" + ]; NIX_CFLAGS_COMPILE = "-iquote ${ilmbase}/include/OpenEXR -I${python}/include/${python.libPrefix}"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d429751bffbf..e87454999b7f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6449,14 +6449,9 @@ let gnutls = gnutls2; }; - blender = callPackage ../applications/misc/blender/2.49.nix { }; - - blender_2_57 = lowPrio (import ../applications/misc/blender { - inherit stdenv fetchurl SDL cmake gettext ilmbase libjpeg libpng - libsamplerate libtiff mesa openal openexr openjpeg zlib; - inherit (xlibs) libXi; + blender = callPackage ../applications/misc/blender { python = python32; - }); + }; bvi = callPackage ../applications/editors/bvi { }; From 3d028687e9ea7dcac4806de1b83d520c77b93423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sun, 26 Feb 2012 20:56:20 +0000 Subject: [PATCH 09/71] I update krb5, so it may also build on stdenv-updates. svn path=/nixpkgs/trunk/; revision=32600 --- pkgs/development/libraries/kerberos/krb5.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/kerberos/krb5.nix b/pkgs/development/libraries/kerberos/krb5.nix index ae8165638d1a..38272165a281 100644 --- a/pkgs/development/libraries/kerberos/krb5.nix +++ b/pkgs/development/libraries/kerberos/krb5.nix @@ -2,7 +2,7 @@ let pname = "krb5"; - version = "1.6.3"; + version = "1.10"; name = "${pname}-${version}"; webpage = http://web.mit.edu/kerberos/; in @@ -11,8 +11,8 @@ stdenv.mkDerivation (rec { inherit name; src = fetchurl { - url = "${webpage}/dist/krb5/1.6/${name}-signed.tar"; - sha256 = "7a1bd7d4bd326828c8ee382ed2b69ccd6c58762601df897d6a32169d84583d2a"; + url = "${webpage}/dist/krb5/1.10/${name}-signed.tar"; + sha256 = "1pa4m6538drb51gsqxbbxlsnc9fm9ccid9m2s3pv3di5l0a7l8bg"; }; buildInputs = [ perl ncurses yacc ]; From f00e2914e3025ec80988e486cf0522086ea536f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sun, 26 Feb 2012 21:06:55 +0000 Subject: [PATCH 10/71] Removing grub 1.98. It was useful only when we only had 1.99rc1 to boot from raid md devices. In 1.99, all worked. svn path=/nixpkgs/trunk/; revision=32602 --- pkgs/tools/misc/grub/1.98.nix | 79 --------------------------------- pkgs/top-level/all-packages.nix | 2 - 2 files changed, 81 deletions(-) delete mode 100644 pkgs/tools/misc/grub/1.98.nix diff --git a/pkgs/tools/misc/grub/1.98.nix b/pkgs/tools/misc/grub/1.98.nix deleted file mode 100644 index df7d3408b619..000000000000 --- a/pkgs/tools/misc/grub/1.98.nix +++ /dev/null @@ -1,79 +0,0 @@ -{ fetchurl, stdenv, bison, gettext, ncurses, libusb, freetype, qemu }: - -let unifont_bdf = fetchurl { - url = "http://unifoundry.com/unifont-5.1.20080820.bdf.gz"; - sha256 = "0s0qfff6n6282q28nwwblp5x295zd6n71kl43xj40vgvdqxv0fxx"; - }; -in - -stdenv.mkDerivation rec { - name = "grub-1.98"; - - src = fetchurl { - url = "ftp://alpha.gnu.org/gnu/grub/${name}.tar.gz"; - sha256 = "05660x82y2rwrzm0d1c4z07fbh02qwmacsmbbav6fa855s4w3wmy"; - }; - - buildInputs = [ bison ncurses libusb freetype gettext ] - ++ stdenv.lib.optional doCheck qemu; - - preConfigure = - '' for i in "tests/util/"*.in - do - sed -i "$i" -e's|/bin/bash|/bin/sh|g' - done - - # Apparently, the QEMU executable is no longer called - # `qemu-system-i386', even on i386. - # - # In addition, use `-nodefaults' to avoid errors like: - # - # chardev: opening backend "stdio" failed - # qemu: could not open serial device 'stdio': Invalid argument - # - # See . - sed -i "tests/util/grub-shell.in" \ - -e's/qemu-system-i386/qemu-system-x86_64 -nodefaults/g' - ''; - - patches = - [ # The udev rules for LVM create symlinks in /dev/mapper rathe - # than device nodes, causing GRUB to fail to recognize LVM - # volumes. See - # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550704 - # This ugly workaround makes `find_root_device' use stat() on - # files in /dev/mapper instead of lstat(). - ./device-mapper-symlinks.patch - ]; - - postPatch = - '' gunzip < "${unifont_bdf}" > "unifont.bdf" - sed -i "configure" \ - -e "s|/usr/src/unifont.bdf|$PWD/unifont.bdf|g" - ''; - - doCheck = true; - - meta = { - description = "GNU GRUB, the Grand Unified Boot Loader (2.x alpha)"; - - longDescription = - '' GNU GRUB is a Multiboot boot loader. It was derived from GRUB, GRand - Unified Bootloader, which was originally designed and implemented by - Erich Stefan Boleyn. - - 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 - operating system (e.g., GNU). - ''; - - homepage = http://www.gnu.org/software/grub/; - - license = "GPLv3+"; - - maintainers = [ stdenv.lib.maintainers.ludo ]; - platforms = stdenv.lib.platforms.gnu; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e87454999b7f..54e0b73d4a12 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -804,8 +804,6 @@ let grub19x = callPackage ../tools/misc/grub/1.9x.nix { }; - grub198 = callPackage ../tools/misc/grub/1.98.nix { }; - grub2 = grub19x; grub2_efi = callPackage ../tools/misc/grub/1.9x.nix { EFIsupport = true; }; From 7a5a0c24df24bd43c02ecd0e98a3e77809d3d706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sun, 26 Feb 2012 21:23:59 +0000 Subject: [PATCH 11/71] Updating itk to 4.0.0, so they may also build in stdenv-updates. svn path=/nixpkgs/trunk/; revision=32603 --- pkgs/development/libraries/itk/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/itk/default.nix b/pkgs/development/libraries/itk/default.nix index c0088d7a8d60..6be998b691a5 100644 --- a/pkgs/development/libraries/itk/default.nix +++ b/pkgs/development/libraries/itk/default.nix @@ -1,18 +1,19 @@ -{stdenv, fetchurl, cmake, libX11, libuuid}: +{stdenv, fetchurl, cmake, libX11, libuuid, xz}: stdenv.mkDerivation rec { - name = "itk-3.16.0"; + name = "itk-4.0.0"; src = fetchurl { - url = mirror://sourceforge/itk/InsightToolkit-3.16.0.tar.gz; - sha256 = "18r021ib2g94qlajjsny0r6cpc61rmr0zrpb2l0mx1y7j9ckr6ks"; + url = mirror://sourceforge/itk/InsightToolkit-4.0.0.tar.xz; + sha256 = "05z49sw612cbyiaghcsda0xylrkf06jh81ql79si5632w1hpgbd9"; }; cmakeFlags = [ "-DBUILD_TESTING=OFF" "-DBUILD_EXAMPLES=OFF" ]; - # makeFlags = [ "VERBOSE=1" ]; + enableParallelBuilding = true; - buildInputs = [ cmake libX11 libuuid ]; + buildNativeInputs = [ cmake xz ]; + buildInputs = [ libX11 libuuid ]; meta = { description = "Insight Segmentation and Registration Toolkit"; From ae5fefca48ad6b55a4ec9b3e2b94cc5485a8553a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 26 Feb 2012 22:47:28 +0000 Subject: [PATCH 12/71] audacious: updated to version 3.2.1 svn path=/nixpkgs/trunk/; revision=32609 --- pkgs/applications/audio/audacious/default.nix | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/pkgs/applications/audio/audacious/default.nix b/pkgs/applications/audio/audacious/default.nix index 5124ff5d6dd9..edec7dcb41d0 100644 --- a/pkgs/applications/audio/audacious/default.nix +++ b/pkgs/applications/audio/audacious/default.nix @@ -3,22 +3,25 @@ , libvorbis, libcdio, libcddb, flac, ffmpeg }: -stdenv.mkDerivation rec { - name = "audacious-3.0"; - +let + version = "3.2.1"; +in +stdenv.mkDerivation { + name = "audacious-${version}"; + src = fetchurl { - url = "http://distfiles.atheme.org/${name}.tar.gz"; - sha256 = "0kj78hgf73fmbm6y3idir2kavbnnlv0jb9ka0pcsb12sxb994s68"; + url = "http://distfiles.audacious-media-player.org/audacious-${version}.tar.bz2"; + sha256 = "064a8d2887a0f92a1637df9d71b8eefa8064199c04eccfaac725f840cff6eac3"; }; pluginsSrc = fetchurl { - url = "http://distfiles.atheme.org/audacious-plugins-3.0.tar.gz"; - sha256 = "0hhxk1mxnnrb1shshpf1nf8mqpc9q1qpsljwn4jzylcnwy6pq4rw"; + url = "http://distfiles.audacious-media-player.org/audacious-plugins-${version}.tar.bz2"; + sha256 = "5b7d3e52f6b8903bc01ae15651817e990d3348ae6b9734767f354eb2dbfc8c2d"; }; - + # `--enable-amidiplug' is to prevent configure from looking in /proc/asound. configureFlags = "--enable-amidiplug --disable-oss"; - + buildInputs = [ gettext pkgconfig glib gtk libmowgli libmcs libxml2 dbus_glib libmad xlibs.libXcomposite libogg libvorbis flac alsaLib libcdio @@ -51,6 +54,6 @@ stdenv.mkDerivation rec { meta = { description = "Audacious, a media player forked from the Beep Media Player, which was itself an XMMS fork"; homepage = http://audacious-media-player.org/; - maintainers = [ stdenv.lib.maintainers.eelco ]; + maintainers = [ stdenv.lib.maintainers.eelco stdenv.lib.maintainers.simons ]; }; } From 4ff245c5dee25800ab9dbdcba2e9bc540724edc2 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Mon, 27 Feb 2012 06:22:47 +0000 Subject: [PATCH 13/71] Add fresh cmake svn path=/nixpkgs/trunk/; revision=32611 --- .../tools/build-managers/cmake/2.8.7.nix | 61 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++ 2 files changed, 65 insertions(+) create mode 100644 pkgs/development/tools/build-managers/cmake/2.8.7.nix diff --git a/pkgs/development/tools/build-managers/cmake/2.8.7.nix b/pkgs/development/tools/build-managers/cmake/2.8.7.nix new file mode 100644 index 000000000000..c440285671be --- /dev/null +++ b/pkgs/development/tools/build-managers/cmake/2.8.7.nix @@ -0,0 +1,61 @@ +{ fetchurl, stdenv, replace, curl, expat, zlib, bzip2, libarchive +, useNcurses ? false, ncurses, useQt4 ? false, qt4 +, darwinInstallNameToolUtility }: + +with stdenv.lib; + +let + os = stdenv.lib.optionalString; + majorVersion = "2.8"; + minorVersion = "7"; + version = "${majorVersion}.${minorVersion}"; +in + +# WARNING: Do NOT upgrade cmake in trunk: it fails to build on i686-linux +stdenv.mkDerivation rec { + name = "cmake-${os useNcurses "cursesUI-"}${os useQt4 "qt4UI-"}${version}"; + + inherit majorVersion; + + src = fetchurl { + url = "${meta.homepage}files/v${majorVersion}/cmake-${version}.tar.gz"; + sha256 = "130923053d8fe1a2ae032a3f09021f9024bf29d7a04ed10ae04647ff00ecf59f"; + }; + + patches = + # Don't search in non-Nix locations such as /usr, but do search in + # Nixpkgs' Glibc. + optional (stdenv ? glibc) ./search-path.patch; + + buildInputs = [ curl expat zlib bzip2 libarchive ] + ++ optional stdenv.isDarwin darwinInstallNameToolUtility + ++ optional useNcurses ncurses + ++ optional useQt4 qt4; + + CMAKE_PREFIX_PATH = stdenv.lib.concatStringsSep ":" buildInputs; + + configureFlags = + "--docdir=/share/doc/${name} --mandir=/share/man --system-libs" + + stdenv.lib.optionalString useQt4 " --qt-gui"; + + setupHook = ./setup-hook.sh; + + postUnpack = + '' + dontUseCmakeConfigure=1 + source $setupHook + fixCmakeFiles $sourceRoot + ''; + + preConfigure = optionalString (stdenv ? glibc) + '' + substituteInPlace Modules/Platform/UnixPaths.cmake --subst-var-by glibc ${stdenv.glibc} + ''; + + meta = { + homepage = http://www.cmake.org/; + description = "Cross-Platform Makefile Generator"; + platforms = if useQt4 then qt4.meta.platforms else stdenv.lib.platforms.all; + maintainers = [ stdenv.lib.maintainers.urkud ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 54e0b73d4a12..9814f1815794 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2958,6 +2958,10 @@ let }; cmake = callPackage ../development/tools/build-managers/cmake { }; + + cmake_2_8_7 = callPackage ../development/tools/build-managers/cmake/2.8.7.nix { + zlib = zlib_latest; + }; cmake264 = callPackage ../development/tools/build-managers/cmake/264.nix { }; From 3a4916369e1bae461311689a6b2932a3b9dad943 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Mon, 27 Feb 2012 07:00:01 +0000 Subject: [PATCH 14/71] Fix LyX dependencies svn path=/nixpkgs/trunk/; revision=32612 --- pkgs/applications/misc/lyx/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/lyx/default.nix b/pkgs/applications/misc/lyx/default.nix index faddeb70e998..9d48008af36d 100644 --- a/pkgs/applications/misc/lyx/default.nix +++ b/pkgs/applications/misc/lyx/default.nix @@ -1,5 +1,5 @@ # I haven't put much effort into this expressions .. so some optional depencencies may be missing - Marc -{ fetchurl, stdenv, texLive, python, makeWrapper +{ fetchurl, stdenv, texLive, python, makeWrapper, pkgconfig , libX11, qt, xz }: @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { sha256 = "a790951d6ed660b254e82d682b478665f119dd522ab4759fdeb5cd8d42f66f61"; }; - buildInputs = [texLive qt python makeWrapper xz ]; + buildInputs = [texLive qt python makeWrapper xz pkgconfig ]; # don't ask me why it can't find libX11.so.6 postInstall = '' From e6fa414b6426ee9fe610f79c51bd28c80bd5e569 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Mon, 27 Feb 2012 07:10:05 +0000 Subject: [PATCH 15/71] Update and fix Tulip svn path=/nixpkgs/trunk/; revision=32613 --- pkgs/applications/science/misc/tulip/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/science/misc/tulip/default.nix b/pkgs/applications/science/misc/tulip/default.nix index c3e39145dd81..52b93c8e1742 100644 --- a/pkgs/applications/science/misc/tulip/default.nix +++ b/pkgs/applications/science/misc/tulip/default.nix @@ -1,16 +1,16 @@ { fetchurl, stdenv, libxml2, freetype, mesa, glew, qt4 -, cmake, makeWrapper }: +, cmake, makeWrapper, libjpeg }: -let version = "3.6.1"; in +let version = "3.7.0"; in stdenv.mkDerivation rec { name = "tulip-${version}"; src = fetchurl { - url = "mirror://sourceforge/auber/${name}-src.tar.gz"; - sha256 = "0d76zmp7gmid4lc91zz6sp4rzxlga6vfwfqhap04326r4zl4nx1q"; + url = "mirror://sourceforge/auber/tulip/tulip-3.7.0/${name}-src.tar.gz"; + sha256 = "150fj9pdxblvl5sby61cb2kq98r6h8yljk3vq5xizn198d3fz4jq"; }; - buildInputs = [ libxml2 freetype glew mesa qt4 ]; + buildInputs = [ libxml2 freetype glew mesa qt4 libjpeg ]; buildNativeInputs = [ cmake makeWrapper ]; From 617614d220086e2aba6d96633ec2bd7cefd463c0 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 27 Feb 2012 10:11:56 +0000 Subject: [PATCH 16/71] haskell-mathblog: updated to version 0.5 svn path=/nixpkgs/trunk/; revision=32615 --- ...cies-on-SHA-HUnit-and-test-framework.patch | 41 ------------------- pkgs/applications/misc/mathblog/default.nix | 7 +--- 2 files changed, 2 insertions(+), 46 deletions(-) delete mode 100644 pkgs/applications/misc/mathblog/0006-Loosen-dependencies-on-SHA-HUnit-and-test-framework.patch diff --git a/pkgs/applications/misc/mathblog/0006-Loosen-dependencies-on-SHA-HUnit-and-test-framework.patch b/pkgs/applications/misc/mathblog/0006-Loosen-dependencies-on-SHA-HUnit-and-test-framework.patch deleted file mode 100644 index bf524dc957d0..000000000000 --- a/pkgs/applications/misc/mathblog/0006-Loosen-dependencies-on-SHA-HUnit-and-test-framework.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 0fbc8097f98481439e68aeb095a8d7e106924bbe Mon Sep 17 00:00:00 2001 -From: Jonathan Daugherty -Date: Tue, 21 Feb 2012 11:06:57 -0800 -Subject: [PATCH 6/8] Loosen dependencies on SHA, HUnit, and test-framework - ---- - mathblog.cabal | 8 ++++---- - 1 files changed, 4 insertions(+), 4 deletions(-) - -diff --git a/mathblog.cabal b/mathblog.cabal -index ea5498c..371dd12 100644 ---- a/mathblog.cabal -+++ b/mathblog.cabal -@@ -44,7 +44,7 @@ Executable mb - process >= 1.0, - time >= 1.1, - old-locale >= 1.0, -- SHA >= 1.4 && < 1.5, -+ SHA >= 1.4 && < 1.6, - bytestring >= 0.9 && < 1.0, - HStringTemplate >= 0.6 && < 0.7, - ConfigFile >= 1.1 && < 1.2 -@@ -79,12 +79,12 @@ Executable mb-tests - process >= 1.0 && < 1.1, - time >= 1.1, - old-locale >= 1.0 && < 1.1, -- SHA >= 1.4 && < 1.5, -+ SHA >= 1.4 && < 1.6, - bytestring >= 0.9 && < 1.0, - HStringTemplate >= 0.6 && < 0.7, - ConfigFile >= 1.1 && < 1.2, -- HUnit >= 1.2.2 && < 1.2.3, -- test-framework >= 0.3.3 && < 0.4, -+ HUnit >= 1.2.2 && < 1.2.5, -+ test-framework >= 0.3.3 && < 0.6, - test-framework-hunit >= 0.2.6 && < 0.3 - - GHC-Options: -Wall --- -1.7.8 - diff --git a/pkgs/applications/misc/mathblog/default.nix b/pkgs/applications/misc/mathblog/default.nix index fa9dec049600..2944df496f23 100644 --- a/pkgs/applications/misc/mathblog/default.nix +++ b/pkgs/applications/misc/mathblog/default.nix @@ -4,17 +4,14 @@ cabal.mkDerivation (self: { pname = "mathblog"; - version = "0.4"; - sha256 = "0kpawik74hp9k56b858idnlkla3iaalys8mas6c4gf4jfw2w0r3j"; + version = "0.5"; + sha256 = "01iyzrwscqirhcr4622d0n16mr4p54qbvg5m2a0ns36j59xfd79g"; isLibrary = false; isExecutable = true; buildDepends = [ ConfigFile filepath HStringTemplate HUnit pandoc pandocTypes SHA testFramework testFrameworkHunit time ]; - patches = [ - ./0006-Loosen-dependencies-on-SHA-HUnit-and-test-framework.patch - ]; meta = { description = "A program for creating and managing a static weblog with LaTeX math and function graphs"; license = self.stdenv.lib.licenses.bsd3; From 4c93fa4e479d5d301dd8fb234b3fca432eceaca5 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 27 Feb 2012 10:12:03 +0000 Subject: [PATCH 17/71] haskell-persistent: updated to version 0.8.0.1 svn path=/nixpkgs/trunk/; revision=32616 --- pkgs/development/libraries/haskell/persistent/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/persistent/default.nix b/pkgs/development/libraries/haskell/persistent/default.nix index 51fdacfcf2b3..d498aa6edd0a 100644 --- a/pkgs/development/libraries/haskell/persistent/default.nix +++ b/pkgs/development/libraries/haskell/persistent/default.nix @@ -6,8 +6,8 @@ cabal.mkDerivation (self: { pname = "persistent"; - version = "0.8.0"; - sha256 = "0z70ibicfbfripp1x9csfvfhn7k26j78jvvig9ylsjwldhysr7qr"; + version = "0.8.0.1"; + sha256 = "1lsmsx0zxa3h83z29r6h3r94czg7c8apid9mah48f8hxlfynbqhi"; buildDepends = [ aeson attoparsec base64Bytestring blazeHtml conduit liftedBase monadControl mtl pathPieces poolConduit text time transformers From 47fcc7c093cd33a128182da46b8ac8ba8fc7194e Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 27 Feb 2012 10:12:06 +0000 Subject: [PATCH 18/71] pkgs/top-level/all-packages.nix: stripped extraneous whitespace svn path=/nixpkgs/trunk/; revision=32617 --- pkgs/top-level/all-packages.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9814f1815794..911279a90b86 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2764,7 +2764,7 @@ let ruby18 = callPackage ../development/interpreters/ruby/ruby-18.nix { }; ruby19 = callPackage ../development/interpreters/ruby/ruby-19.nix { }; - + ruby = ruby19; rubyLibs = recurseIntoAttrs (callPackage ../development/interpreters/ruby/libs.nix { }); @@ -2958,8 +2958,8 @@ let }; cmake = callPackage ../development/tools/build-managers/cmake { }; - - cmake_2_8_7 = callPackage ../development/tools/build-managers/cmake/2.8.7.nix { + + cmake_2_8_7 = callPackage ../development/tools/build-managers/cmake/2.8.7.nix { zlib = zlib_latest; }; From 9da23d5840e15bc6967974ca0cd91d974cbacea0 Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Mon, 27 Feb 2012 10:55:52 +0000 Subject: [PATCH 19/71] NVidia proprietary driver: version bump svn path=/nixpkgs/trunk/; revision=32618 --- pkgs/os-specific/linux/nvidia-x11/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/linux/nvidia-x11/default.nix b/pkgs/os-specific/linux/nvidia-x11/default.nix index 5b829db09cd0..23d1062cc398 100644 --- a/pkgs/os-specific/linux/nvidia-x11/default.nix +++ b/pkgs/os-specific/linux/nvidia-x11/default.nix @@ -7,7 +7,7 @@ with stdenv.lib; -let versionNumber = "290.10"; in +let versionNumber = "295.20"; in stdenv.mkDerivation { name = "nvidia-x11-${versionNumber}${optionalString (!libsOnly) "-${kernel.version}"}"; @@ -18,12 +18,12 @@ stdenv.mkDerivation { if stdenv.system == "i686-linux" then fetchurl { url = "http://us.download.nvidia.com/XFree86/Linux-x86/${versionNumber}/NVIDIA-Linux-x86-${versionNumber}.run"; - sha256 = "1amdqmgi8rf8mafc5d8jnw6rk1bxrmxc5jm4wm2p8xqzm99qzglr"; + sha256 = "006my8y7dkmzy1y3md1j2p9sy53cvhz7idkjgzizyg05jgac778g"; } else if stdenv.system == "x86_64-linux" then fetchurl { url = "http://us.download.nvidia.com/XFree86/Linux-x86_64/${versionNumber}/NVIDIA-Linux-x86_64-${versionNumber}-no-compat32.run"; - sha256 = "01d4cci1ipnamrxisdvsxjr6d4qbj257b46y0glm6grnw11i3x2g"; + sha256 = "1m69ki94szy7inqc5x2znab9jjqjfyjd4lwvx9qnazq918gdf1kx"; } else throw "nvidia-x11 does not support platform ${stdenv.system}"; From 49cb0810190cd6cee291d414f25558726f964390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Mon, 27 Feb 2012 16:45:35 +0000 Subject: [PATCH 20/71] Updating doxygen to 1.8.0 svn path=/nixpkgs/trunk/; revision=32619 --- pkgs/development/tools/documentation/doxygen/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/documentation/doxygen/default.nix b/pkgs/development/tools/documentation/doxygen/default.nix index 86f2e8cf2b2e..776c0bf450c7 100644 --- a/pkgs/development/tools/documentation/doxygen/default.nix +++ b/pkgs/development/tools/documentation/doxygen/default.nix @@ -1,14 +1,14 @@ { stdenv, fetchurl, perl, flex, bison, qt4 }: let - name = "doxygen-1.7.4"; + name = "doxygen-1.8.0"; in stdenv.mkDerivation { inherit name; src = fetchurl { url = "ftp://ftp.stack.nl/pub/users/dimitri/${name}.src.tar.gz"; - sha256 = "0rnzyp5f8c454fdkgpg5hpxwmx642spgxcpw3blbvnyw8129jp44"; + sha256 = "0cymkk8wpws326aqpsixyzr4pk98xgpzrvxxjm76ar79pcs91ykh"; }; patches = [ ./tmake.patch ]; From 0400423fb17a9d7a2bfcbe409fa48924f07ac43d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 27 Feb 2012 17:22:27 +0000 Subject: [PATCH 21/71] GCC 4.6: Fix erroneous dependency on X libraries when !javaAwtGtk. svn path=/nixpkgs/trunk/; revision=32620 --- pkgs/development/compilers/gcc-4.6/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/compilers/gcc-4.6/default.nix b/pkgs/development/compilers/gcc-4.6/default.nix index 4a3689776330..7160f530a098 100644 --- a/pkgs/development/compilers/gcc-4.6/default.nix +++ b/pkgs/development/compilers/gcc-4.6/default.nix @@ -223,7 +223,7 @@ stdenv.mkDerivation ({ ++ (optional (cloog != null) cloog) ++ (optional (zlib != null) zlib) ++ (optionals langJava [ boehmgc zip unzip ]) - ++ (optionals javaAwtGtk [ gtk libart_lgpl ] ++ xlibs) + ++ (optionals javaAwtGtk ([ gtk libart_lgpl ] ++ xlibs)) ++ (optionals (cross != null) [binutilsCross]) ++ (optionals langAda [gnatboot]) ++ (optionals langVhdl [gnat]) From 27916e6f083e67e4d43986584f5ed41a7d16b54f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 27 Feb 2012 17:22:30 +0000 Subject: [PATCH 22/71] GCC 4.6: Fix the Canadian cross. svn path=/nixpkgs/trunk/; revision=32621 --- pkgs/top-level/all-packages.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 911279a90b86..802904b19031 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1922,9 +1922,6 @@ let gcc46_real = lowPrio (wrapGCC (callPackage ../development/compilers/gcc-4.6 { inherit noSysDirs; - cross = null; - libcCross = null; - binutilsCross = null; ppl = ppl0_11; cloogppl = null; @@ -1932,6 +1929,16 @@ let # bootstrapping a profiled compiler does not work in the sheevaplug: # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43944 profiledCompiler = if stdenv.system == "armv5tel-linux" then false else true; + + # When building `gcc.hostDrv' (a "Canadian cross", with host == target + # and host != build), `cross' must be null but the cross-libc must still + # be passed. + cross = null; + libcCross = if crossSystem != null then libcCross else null; + libpthreadCross = + if crossSystem != null && crossSystem.config == "i586-pc-gnu" + then gnu.libpthreadCross + else null; })); # A non-stripped version of GCC. From 2d7b05d332732740284e4ce5d8f25875bcdbc417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 27 Feb 2012 17:50:44 +0000 Subject: [PATCH 23/71] release-cross: Build `gnu.smbfs.hostDrv', not `gnu.smbfs'. svn path=/nixpkgs/trunk/; revision=32628 --- pkgs/top-level/release-cross.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/release-cross.nix b/pkgs/top-level/release-cross.nix index 71e4944b303c..e6a4798f27b1 100644 --- a/pkgs/top-level/release-cross.nix +++ b/pkgs/top-level/release-cross.nix @@ -182,7 +182,7 @@ in { gnu.hurdCross = nativePlatforms; gnu.mach.hostDrv = nativePlatforms; gnu.mig = nativePlatforms; - gnu.smbfs = nativePlatforms; + gnu.smbfs.hostDrv = nativePlatforms; coreutils.hostDrv = nativePlatforms; ed.hostDrv = nativePlatforms; From 9a42b0b52b37c7771bbfa2a3aa197bb10cd9ec2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 27 Feb 2012 18:28:29 +0000 Subject: [PATCH 24/71] GNU libc: Update the Hurd port. svn path=/nixpkgs/trunk/; revision=32630 --- .../libraries/glibc-2.12/common.nix | 9 ++++----- .../glibc-2.12/hurd-sigstate-functions.patch | 20 ------------------- 2 files changed, 4 insertions(+), 25 deletions(-) delete mode 100644 pkgs/development/libraries/glibc-2.12/hurd-sigstate-functions.patch diff --git a/pkgs/development/libraries/glibc-2.12/common.nix b/pkgs/development/libraries/glibc-2.12/common.nix index 8f0c092d35ca..6a68077ab348 100644 --- a/pkgs/development/libraries/glibc-2.12/common.nix +++ b/pkgs/development/libraries/glibc-2.12/common.nix @@ -12,7 +12,7 @@ cross : let # For GNU/Hurd, see below. - version = if hurdHeaders != null then "20120221" else "2.12.2"; + version = if hurdHeaders != null then "20120223" else "2.12.2"; needsPortsNative = stdenv.isMips || stdenv.isArm; needsPortsCross = cross.arch == "mips" || cross.arch == "arm"; @@ -75,8 +75,7 @@ stdenv.mkDerivation ({ /* Allow nixos and nix handle the locale-archive. */ ./nix-locale-archive.patch - ] - ++ (stdenv.lib.optional (hurdHeaders != null) ./hurd-sigstate-functions.patch); + ]; postPatch = '' # Needed for glibc to build with the gnumake 3.82 @@ -144,8 +143,8 @@ stdenv.mkDerivation ({ # maintained by the Hurd folks, `tschwinge/Roger_Whittaker' branch. # See . url = "git://git.sv.gnu.org/hurd/glibc.git"; - sha256 = "fbc053f23167059af414ae1ba9a65931a9d9afaf7d2efb9eba3e258757d12f7d"; - rev = "b29b3d0ae35be390cab59e4798cbaf9b45fb06e3"; + sha256 = "cecec9dd5a2bafc875c56b058b6d7628a22b250b53747513dec304f31ffdb82d"; + rev = "d3cdecf18e6550b0984a42b43ed48c5fb26501e1"; } else fetchurl { url = "mirror://gnu/glibc/glibc-${version}.tar.bz2"; diff --git a/pkgs/development/libraries/glibc-2.12/hurd-sigstate-functions.patch b/pkgs/development/libraries/glibc-2.12/hurd-sigstate-functions.patch deleted file mode 100644 index d46db7b6393d..000000000000 --- a/pkgs/development/libraries/glibc-2.12/hurd-sigstate-functions.patch +++ /dev/null @@ -1,20 +0,0 @@ -This patch adds a GNU ld version script entry for the `_hurd_sigstate_*' -functions that were introduced to support SA_SIGINFO. A similar patch -should be applied upstream soon. - -diff --git a/hurd/Versions b/hurd/Versions -index 83c8ab1..295cfda 100644 ---- a/hurd/Versions -+++ b/hurd/Versions -@@ -156,6 +156,11 @@ libc { - # functions used in macros & inline functions - __errno_location; - } -+ GLIBC_2.13 { -+ # functions introduced for SA_SIGINFO support and referenced from -+ # -+ _hurd_sigstate_*; -+ } - - %if !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2) - HURD_CTHREADS_0.3 { From 9e371a98c26b9f6745fa97a32ea079c4522daa56 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 27 Feb 2012 20:27:41 +0000 Subject: [PATCH 25/71] haskell-base64-bytestring: downgraded default version to 0.1.0.3 Michael Snoyman reports that version 0.1.1.0 has serious performance issues: > import Data.ByteString.Base64 > import Data.ByteString.Char8 (pack) > import Criterion.Main > > main :: IO () > main = defaultMain > [ bench "encode" $ whnf encode $ pack "qwerty" > ] On version 0.1.0.3, this takes 229.4312 ns. On 0.1.1.0, it takes 3.556598 ms. It looks like the problem is coming from the recent addition of URL encoding (https://github.com/bos/base64-bytestring/commit/f1916d8a86b496cfacd23939b5e3fa10d92abb7b). svn path=/nixpkgs/trunk/; revision=32632 --- .../haskell/base64-bytestring/0.1.0.3.nix | 17 +++++++++++++++++ .../{default.nix => 0.1.1.0.nix} | 0 pkgs/top-level/haskell-packages.nix | 4 +++- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/libraries/haskell/base64-bytestring/0.1.0.3.nix rename pkgs/development/libraries/haskell/base64-bytestring/{default.nix => 0.1.1.0.nix} (100%) diff --git a/pkgs/development/libraries/haskell/base64-bytestring/0.1.0.3.nix b/pkgs/development/libraries/haskell/base64-bytestring/0.1.0.3.nix new file mode 100644 index 000000000000..f974a72347fd --- /dev/null +++ b/pkgs/development/libraries/haskell/base64-bytestring/0.1.0.3.nix @@ -0,0 +1,17 @@ +{ cabal }: + +cabal.mkDerivation (self: { + pname = "base64-bytestring"; + version = "0.1.0.3"; + sha256 = "0d4j8b1d8z9qr1y446bfkj764xgilk8gw2frj0wn0717y8knvmx3"; + meta = { + homepage = "https://github.com/bos/base64-bytestring"; + description = "Fast base64 encoding and deconding for ByteStrings"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + maintainers = [ + self.stdenv.lib.maintainers.andres + self.stdenv.lib.maintainers.simons + ]; + }; +}) diff --git a/pkgs/development/libraries/haskell/base64-bytestring/default.nix b/pkgs/development/libraries/haskell/base64-bytestring/0.1.1.0.nix similarity index 100% rename from pkgs/development/libraries/haskell/base64-bytestring/default.nix rename to pkgs/development/libraries/haskell/base64-bytestring/0.1.1.0.nix diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 90fd84573b11..534cc3aa2f75 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -456,7 +456,9 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); base64String = callPackage ../development/libraries/haskell/base64-string {}; - base64Bytestring = callPackage ../development/libraries/haskell/base64-bytestring {}; + base64Bytestring_0_1_0_3 = callPackage ../development/libraries/haskell/base64-bytestring/0.1.0.3.nix {}; + base64Bytestring_0_1_1_0 = callPackage ../development/libraries/haskell/base64-bytestring/0.1.1.0.nix {}; + base64Bytestring = self.base64Bytestring_0_1_0_3; # Version 0.1.1.0 has serious performance issues. baseUnicodeSymbols = callPackage ../development/libraries/haskell/base-unicode-symbols {}; From e3a27acfdbd48d2e3782702f6bad5adadf66d21f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 27 Feb 2012 21:54:33 +0000 Subject: [PATCH 26/71] QEMU-KVM: Use `smbd' from $PATH. svn path=/nixpkgs/trunk/; revision=32634 --- pkgs/os-specific/linux/qemu-kvm/default.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/os-specific/linux/qemu-kvm/default.nix b/pkgs/os-specific/linux/qemu-kvm/default.nix index aa92b2f2d0d1..c5c7e0b01f0a 100644 --- a/pkgs/os-specific/linux/qemu-kvm/default.nix +++ b/pkgs/os-specific/linux/qemu-kvm/default.nix @@ -13,7 +13,10 @@ stdenv.mkDerivation rec { patches = [ ./smb-tmpdir.patch ./qemu-img-fix-corrupt-vdi.patch ]; - configureFlags = "--audio-drv-list=alsa"; + configureFlags = + [ "--audio-drv-list=alsa" + "--smbd=smbd" # use `smbd' from $PATH + ]; enableParallelBuilding = true; @@ -22,12 +25,6 @@ stdenv.mkDerivation rec { ncurses python glib ]; - preBuild = - '' - # Don't use a hardcoded path to Samba. - substituteInPlace ./net.h --replace /usr/sbin/smbd smbd - ''; - postInstall = '' # extboot.bin isn't installed due to a bug in the Makefile. From 11aceede25573357f562a80fd83ee7875da2f52d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Mon, 27 Feb 2012 22:39:23 +0000 Subject: [PATCH 27/71] Downgrading rigsofrods to a version that might work, where cars may run fast. This rev should be very close to the stablest 0.38. I had to bring an old angelscript in. svn path=/nixpkgs/trunk/; revision=32635 --- .../interpreters/angelscript/2.20.nix | 65 +++++++++++++++++++ pkgs/games/rigsofrods/default.nix | 9 +-- pkgs/top-level/all-packages.nix | 3 + 3 files changed, 73 insertions(+), 4 deletions(-) create mode 100644 pkgs/development/interpreters/angelscript/2.20.nix diff --git a/pkgs/development/interpreters/angelscript/2.20.nix b/pkgs/development/interpreters/angelscript/2.20.nix new file mode 100644 index 000000000000..78225a1b5421 --- /dev/null +++ b/pkgs/development/interpreters/angelscript/2.20.nix @@ -0,0 +1,65 @@ +x@{builderDefsPackage + , unzip + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + []; + + buildInputs = map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames)); + sourceInfo = rec { + baseName="angelscript"; + version="2.20.3"; + name="${baseName}-${version}"; + url="http://www.angelcode.com/angelscript/sdk/files/angelscript_${version}.zip"; + hash="1gyfi35n7vcm9bm0f1q3va4w8b94avc713b6yqzinzg6dmp1x937"; + }; +in +rec { + src = a.fetchurl { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + }; + + inherit (sourceInfo) name version; + inherit buildInputs; + + /* doConfigure should be removed if not needed */ + phaseNames = ["prepareBuild" "doMake" "cleanLib" "doMakeInstall" "installDocs"]; + + prepareBuild = a.fullDepEntry '' + cd angelscript/projects/gnuc + sed -i makefile -e "s@LOCAL = .*@LOCAL = $out@" + ensureDir "$out/lib" "$out/bin" "$out/share" "$out/include" + export SHARED=1 + export VERSION="${version}" + '' ["minInit" "addInputs" "doUnpack" "defEnsureDir"]; + + cleanLib = a.fullDepEntry '' + rm ../../lib/* + '' ["minInit"]; + + installDocs = a.fullDepEntry '' + ensureDir "$out/share/angelscript" + cp -r ../../../docs "$out/share/angelscript" + '' ["defEnsureDir" "prepareBuild"]; + + meta = { + description = "A light-weight scripting library"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + linux; + license = a.lib.licenses.zlib; + }; + passthru = { + updateInfo = { + downloadPage = "http://www.angelcode.com/angelscript/downloads.asp"; + }; + }; +}) x + diff --git a/pkgs/games/rigsofrods/default.nix b/pkgs/games/rigsofrods/default.nix index 4fa897983065..e7f2b3976cdc 100644 --- a/pkgs/games/rigsofrods/default.nix +++ b/pkgs/games/rigsofrods/default.nix @@ -4,12 +4,13 @@ }: stdenv.mkDerivation rec { - version = "0.39.4"; + version = "0.39-svn2267"; name = "rigsofrods-${version}"; - src = fetchurl { - url = mirror://sourceforge/rigsofrods/rigsofrods-source-0.39.4.tar.bz2; - sha256 = "1kpjkski0yllwzdki0rjpqvifjs0fwpgs513y4dv4s9wfwan1qcx"; + src = fetchsvn { + url = https://rigsofrods.svn.sourceforge.net/svnroot/rigsofrods/trunk; + rev = 2267; + sha256 = "19r3v6x1wk3nb1cyixbp1bmdg96h31bxjlsz6zh6qc317wjmy96b"; }; contentPackSrc = fetchurl { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 802904b19031..af83e765f74a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2620,6 +2620,8 @@ let angelscript = callPackage ../development/interpreters/angelscript {}; + angelscript_2_20 = callPackage ../development/interpreters/angelscript/2.20.nix {}; + clisp = callPackage ../development/interpreters/clisp { }; # compatibility issues in 2.47 - at list 2.44.1 is known good @@ -7961,6 +7963,7 @@ let rigsofrods = callPackage ../games/rigsofrods { mygui = myguiSvn; + angelscript = angelscript_2_20; }; rogue = callPackage ../games/rogue { }; From c67edd454c4d9846f2a7aab291b722f35f65d0fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 27 Feb 2012 23:25:54 +0000 Subject: [PATCH 28/71] QEMU-KVM 1.0 (tentative). svn path=/nixpkgs/trunk/; revision=32637 --- pkgs/os-specific/linux/qemu-kvm/1.0.nix | 51 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 52 insertions(+) create mode 100644 pkgs/os-specific/linux/qemu-kvm/1.0.nix diff --git a/pkgs/os-specific/linux/qemu-kvm/1.0.nix b/pkgs/os-specific/linux/qemu-kvm/1.0.nix new file mode 100644 index 000000000000..162fcaee55a6 --- /dev/null +++ b/pkgs/os-specific/linux/qemu-kvm/1.0.nix @@ -0,0 +1,51 @@ +{ stdenv, fetchurl, attr, zlib, SDL, alsaLib, pkgconfig, pciutils, libuuid, vde2 +, libjpeg, libpng, ncurses, python, glib }: + +assert stdenv.isLinux; + +let version = "1.0"; in +stdenv.mkDerivation rec { + name = "qemu-kvm-${version}"; + + src = fetchurl { + url = "mirror://sourceforge/kvm/qemu-kvm/${version}/${name}.tar.gz"; + sha256 = "0vhigv9r9yrhph4wc4mhg99a683iwf121kjigqzg92x2l3ayl4dp"; + }; + + patches = [ ./smb-tmpdir.patch ./qemu-img-fix-corrupt-vdi.patch ]; + postPatch = + '' for i in $(find kvm -type f) + do + sed -i "$i" \ + -e 's|/bin/bash|/bin/sh|g ; + s|/usr/bin/python|${python}/bin/python|g ; + s|/bin/rm|rm|g' + done + ''; + + configureFlags = + [ "--audio-drv-list=alsa" + "--smbd=smbd" # use `smbd' from $PATH + ]; + + enableParallelBuilding = true; + + buildInputs = + [ attr zlib SDL alsaLib pkgconfig pciutils libuuid vde2 libjpeg libpng + ncurses python glib + ]; + + postInstall = + '' + # Libvirt expects us to be called `qemu-kvm'. Otherwise it will + # set the domain type to "qemu" rather than "kvm", which can + # cause architecture selection to misbehave. + ln -sv $(cd $out/bin && echo qemu-system-*) $out/bin/qemu-kvm + ''; + + meta = { + homepage = http://www.linux-kvm.org/; + description = "A full virtualization solution for Linux on x86 hardware containing virtualization extensions"; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index af83e765f74a..8e5d09c55ed9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6043,6 +6043,7 @@ let pwdutils = callPackage ../os-specific/linux/pwdutils { }; qemu_kvm = callPackage ../os-specific/linux/qemu-kvm { }; + qemu_kvm_1_0 = callPackage ../os-specific/linux/qemu-kvm/1.0.nix { }; firmwareLinuxNonfree = callPackage ../os-specific/linux/firmware/firmware-linux-nonfree { }; From 8bcba9e6d4e26c3dfec16eac6c93a745e4ad4320 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 28 Feb 2012 00:09:52 +0000 Subject: [PATCH 29/71] moderncv: upgraded to 0.19 svn path=/nixpkgs/trunk/; revision=32664 --- pkgs/tools/typesetting/tex/texlive/moderncv.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/typesetting/tex/texlive/moderncv.nix b/pkgs/tools/typesetting/tex/texlive/moderncv.nix index b8e27bd93d3b..dfd6fd652c2e 100644 --- a/pkgs/tools/typesetting/tex/texlive/moderncv.nix +++ b/pkgs/tools/typesetting/tex/texlive/moderncv.nix @@ -1,6 +1,6 @@ args: with args; rec { - name = "moderncv-2012.01.16"; + name = "moderncv-0.19"; src = fetchurl { url = "http://mirror.ctan.org/macros/latex/contrib/moderncv.zip"; sha256 = "5cd2117cd2a3572dbc055033ca81ca744ee65918c42d23687e133bb1e6ddd644"; From be0acc8bc1040be42bc6dced65efd30189caac5d Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 28 Feb 2012 00:09:56 +0000 Subject: [PATCH 30/71] hasktags: ctags/etags for haskell sources svn path=/nixpkgs/trunk/; revision=32665 --- .../tools/haskell/hasktags/default.nix | 15 +++++++++++++++ pkgs/top-level/haskell-packages.nix | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 pkgs/development/tools/haskell/hasktags/default.nix diff --git a/pkgs/development/tools/haskell/hasktags/default.nix b/pkgs/development/tools/haskell/hasktags/default.nix new file mode 100644 index 000000000000..a41994746e5b --- /dev/null +++ b/pkgs/development/tools/haskell/hasktags/default.nix @@ -0,0 +1,15 @@ +{ cabal, filepath }: + +cabal.mkDerivation (self: { + pname = "hasktags"; + version = "0.68.2"; + sha256 = "0lb28vj8mhaskw3n7wpjgbj0311ywh76yc0ajczzsiqa3p6mypss"; + isLibrary = false; + isExecutable = true; + buildDepends = [ filepath ]; + meta = { + description = "Produces ctags \"tags\" and etags \"TAGS\" files for Haskell programs"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 534cc3aa2f75..62e518b24190 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1571,6 +1571,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); HaRe = callPackage ../development/tools/haskell/HaRe {}; + hasktags = callPackage ../development/tools/haskell/hasktags {}; + hlint = callPackage ../development/tools/haskell/hlint {}; hslogger = callPackage ../development/tools/haskell/hslogger {}; From bf4ebdc2bbb08b467de8fbedb163c2fb030e41ef Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 28 Feb 2012 00:09:59 +0000 Subject: [PATCH 31/71] haskell-HSH: shell scripting in haskell svn path=/nixpkgs/trunk/; revision=32666 --- .../libraries/haskell/HSH/default.nix | 20 +++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/development/libraries/haskell/HSH/default.nix diff --git a/pkgs/development/libraries/haskell/HSH/default.nix b/pkgs/development/libraries/haskell/HSH/default.nix new file mode 100644 index 000000000000..84e7b85fe65b --- /dev/null +++ b/pkgs/development/libraries/haskell/HSH/default.nix @@ -0,0 +1,20 @@ +{ cabal, filepath, hslogger, MissingH, mtl, regexBase, regexCompat +, regexPosix +}: + +cabal.mkDerivation (self: { + pname = "HSH"; + version = "2.0.3"; + sha256 = "10ndmzwaf9by8wnawl3p1r7wn6hqigfymv7hd99ayf25dsqwnzx2"; + isLibrary = true; + isExecutable = true; + buildDepends = [ + filepath hslogger MissingH mtl regexBase regexCompat regexPosix + ]; + meta = { + homepage = "http://software.complete.org/hsh"; + description = "Library to mix shell scripting with Haskell programs"; + license = "LGPL"; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 62e518b24190..37eb70f4b59f 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -870,6 +870,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); hsemail = callPackage ../development/libraries/haskell/hsemail {}; + HSH = callPackage ../development/libraries/haskell/HSH {}; + HsSyck = callPackage ../development/libraries/haskell/HsSyck {}; HsOpenSSL = callPackage ../development/libraries/haskell/HsOpenSSL {}; From b2356973fe8b6709e86275e57aa03db1e956121e Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 28 Feb 2012 00:10:02 +0000 Subject: [PATCH 32/71] haskell-haskdogs: wrapper around hasktags that fetches sources for dependencies from hackage svn path=/nixpkgs/trunk/; revision=32667 --- .../tools/haskell/haskdogs/default.nix | 16 ++++++++++++++++ pkgs/top-level/haskell-packages.nix | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 pkgs/development/tools/haskell/haskdogs/default.nix diff --git a/pkgs/development/tools/haskell/haskdogs/default.nix b/pkgs/development/tools/haskell/haskdogs/default.nix new file mode 100644 index 000000000000..2a02d92ff415 --- /dev/null +++ b/pkgs/development/tools/haskell/haskdogs/default.nix @@ -0,0 +1,16 @@ +{ cabal, Cabal, filepath, HSH }: + +cabal.mkDerivation (self: { + pname = "haskdogs"; + version = "0.3"; + sha256 = "0aji59sazlhn5yardgrsdpf85fvb0mwn4bpslcjxr7mnmpa7j0kz"; + isLibrary = false; + isExecutable = true; + buildDepends = [ Cabal filepath HSH ]; + meta = { + homepage = "http://github.com/ierton/haskdogs"; + description = "Generate ctags file for haskell project directory and it's deps"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 37eb70f4b59f..8c4e652b34e0 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1573,6 +1573,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); HaRe = callPackage ../development/tools/haskell/HaRe {}; + haskdogs = callPackage ../development/tools/haskell/haskdogs {}; + hasktags = callPackage ../development/tools/haskell/hasktags {}; hlint = callPackage ../development/tools/haskell/hlint {}; From 10e512f2b8b1426bf5e2238a7ff97e6785b719af Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 28 Feb 2012 00:10:05 +0000 Subject: [PATCH 33/71] gogoclient: ipv6 tunnel svn path=/nixpkgs/trunk/; revision=32668 --- .../linux/gogoclient/config-paths.patch | 39 +++++++++++++++++++ pkgs/os-specific/linux/gogoclient/default.nix | 38 ++++++++++++++++++ .../linux/gogoclient/gcc46-include-fix.patch | 22 +++++++++++ pkgs/top-level/all-packages.nix | 2 + 4 files changed, 101 insertions(+) create mode 100644 pkgs/os-specific/linux/gogoclient/config-paths.patch create mode 100644 pkgs/os-specific/linux/gogoclient/default.nix create mode 100644 pkgs/os-specific/linux/gogoclient/gcc46-include-fix.patch diff --git a/pkgs/os-specific/linux/gogoclient/config-paths.patch b/pkgs/os-specific/linux/gogoclient/config-paths.patch new file mode 100644 index 000000000000..88358038bc7e --- /dev/null +++ b/pkgs/os-specific/linux/gogoclient/config-paths.patch @@ -0,0 +1,39 @@ +diff -urN gogoc-1_2-RELEASE/gogoc-tsp/conf/gogoc.conf.in gogoc-1_2-RELEASE-fix/gogoc-tsp/conf/gogoc.conf.in +--- gogoc-1_2-RELEASE/gogoc-tsp/conf/gogoc.conf.in 2009-11-20 17:53:12.000000000 +0100 ++++ gogoc-1_2-RELEASE-fix/gogoc-tsp/conf/gogoc.conf.in 2012-02-25 15:16:12.758849219 +0100 +@@ -224,7 +224,7 @@ + # + # broker_list= + # +-broker_list=tsp-broker-list.txt ++broker_list=/var/lib/gogoc/tsp-broker-list.txt + + # + # Last Server Used File Name: +@@ -234,7 +234,7 @@ + # + # last_server= + # +-last_server=tsp-last-server.txt ++last_server=/var/lib/gogoc/tsp-last-server.txt + + # + # Always Use Last Known Working Server: +@@ -294,7 +294,7 @@ + # + # log_filename= + # +-log_filename=gogoc.log ++log_filename=/var/log/gogoc.log + + # + # Log File Rotation: +@@ -313,7 +313,7 @@ + # + # log_rotation= + # +-log_rotation=yes ++log_rotation=no + + # + # Log File Rotation Size: diff --git a/pkgs/os-specific/linux/gogoclient/default.nix b/pkgs/os-specific/linux/gogoclient/default.nix new file mode 100644 index 000000000000..d1a4bf9feb65 --- /dev/null +++ b/pkgs/os-specific/linux/gogoclient/default.nix @@ -0,0 +1,38 @@ +{stdenv, fetchurl, openssl, nettools, iproute, procps}: + +let baseName = "gogoclient"; + version = "1.2"; +in + +stdenv.mkDerivation rec { + name = "${baseName}-${version}"; + + src = fetchurl { + url = http://gogo6.com/downloads/gogoc-1_2-RELEASE.tar.gz; + sha256 = "a0ef45c0bd1fc9964dc8ac059b7d78c12674bf67ef641740554e166fa99a2f49"; + }; + patches = [./gcc46-include-fix.patch ./config-paths.patch ]; + makeFlags = ["target=linux"]; + installFlags = ["installdir=$(out)"]; + + buildInputs = [openssl]; + + preFixup = '' + ensureDir $out/share/${name} + chmod 444 $out/bin/gogoc.conf + mv $out/bin/gogoc.conf $out/share/${name}/gogoc.conf.sample + rm $out/bin/gogoc.conf.sample + + substituteInPlace "$out/template/linux.sh" \ + --replace "/sbin/ifconfig" "${nettools}/sbin/ifconfig" \ + --replace "/sbin/route" "${nettools}/sbin/route" \ + --replace "/sbin/ip" "${iproute}/sbin/ip" \ + --replace "/sbin/sysctl" "${procps}/sbin/sysctl" + ''; + + meta = { + homepage = http://gogonet.gogo6.com; + description = "Client to connect to the Freenet6 IPv6 tunnel broker service"; + maintainers = [stdenv.lib.maintainers.bluescreen303]; + }; +} diff --git a/pkgs/os-specific/linux/gogoclient/gcc46-include-fix.patch b/pkgs/os-specific/linux/gogoclient/gcc46-include-fix.patch new file mode 100644 index 000000000000..22ecad187d62 --- /dev/null +++ b/pkgs/os-specific/linux/gogoclient/gcc46-include-fix.patch @@ -0,0 +1,22 @@ +diff -urN gogoc-1_2-RELEASE/gogoc-messaging/src/clientmsgsender.cc gogoc-1_2-RELEASE-fix/gogoc-messaging/src/clientmsgsender.cc +--- gogoc-1_2-RELEASE/gogoc-messaging/src/clientmsgsender.cc 2009-11-20 17:34:55.000000000 +0100 ++++ gogoc-1_2-RELEASE-fix/gogoc-messaging/src/clientmsgsender.cc 2012-02-25 15:06:20.764698284 +0100 +@@ -15,6 +15,7 @@ + // ************************************************************************** + #include + #include ++#include + + + namespace gogocmessaging +diff -urN gogoc-1_2-RELEASE/gogoc-messaging/src/servermsgsender.cc gogoc-1_2-RELEASE-fix/gogoc-messaging/src/servermsgsender.cc +--- gogoc-1_2-RELEASE/gogoc-messaging/src/servermsgsender.cc 2009-11-20 17:34:56.000000000 +0100 ++++ gogoc-1_2-RELEASE-fix/gogoc-messaging/src/servermsgsender.cc 2012-02-25 15:06:36.722740288 +0100 +@@ -15,6 +15,7 @@ + // ************************************************************************** + #include + #include ++#include + + + namespace gogocmessaging diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8e5d09c55ed9..e74aba5c27c2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5989,6 +5989,8 @@ let numactl = callPackage ../os-specific/linux/numactl { }; + gogoclient = callPackage ../os-specific/linux/gogoclient { }; + gw6c = builderDefsPackage (import ../os-specific/linux/gw6c) { inherit fetchurl stdenv nettools openssl procps iproute; }; From de9ebc460cb59c014e6d5c2d6c1da022ab680aa2 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 28 Feb 2012 00:10:09 +0000 Subject: [PATCH 34/71] Added meta.maintainers section. svn path=/nixpkgs/trunk/; revision=32669 --- pkgs/development/libraries/haskell/HSH/default.nix | 4 ++++ pkgs/development/tools/haskell/haskdogs/default.nix | 4 ++++ pkgs/development/tools/haskell/hasktags/default.nix | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/pkgs/development/libraries/haskell/HSH/default.nix b/pkgs/development/libraries/haskell/HSH/default.nix index 84e7b85fe65b..51782e82a1e9 100644 --- a/pkgs/development/libraries/haskell/HSH/default.nix +++ b/pkgs/development/libraries/haskell/HSH/default.nix @@ -16,5 +16,9 @@ cabal.mkDerivation (self: { description = "Library to mix shell scripting with Haskell programs"; license = "LGPL"; platforms = self.ghc.meta.platforms; + maintainers = [ + self.stdenv.lib.maintainers.andres + self.stdenv.lib.maintainers.simons + ]; }; }) diff --git a/pkgs/development/tools/haskell/haskdogs/default.nix b/pkgs/development/tools/haskell/haskdogs/default.nix index 2a02d92ff415..2e158abaf898 100644 --- a/pkgs/development/tools/haskell/haskdogs/default.nix +++ b/pkgs/development/tools/haskell/haskdogs/default.nix @@ -12,5 +12,9 @@ cabal.mkDerivation (self: { description = "Generate ctags file for haskell project directory and it's deps"; license = self.stdenv.lib.licenses.bsd3; platforms = self.ghc.meta.platforms; + maintainers = [ + self.stdenv.lib.maintainers.andres + self.stdenv.lib.maintainers.simons + ]; }; }) diff --git a/pkgs/development/tools/haskell/hasktags/default.nix b/pkgs/development/tools/haskell/hasktags/default.nix index a41994746e5b..d3c373ae4df7 100644 --- a/pkgs/development/tools/haskell/hasktags/default.nix +++ b/pkgs/development/tools/haskell/hasktags/default.nix @@ -11,5 +11,9 @@ cabal.mkDerivation (self: { description = "Produces ctags \"tags\" and etags \"TAGS\" files for Haskell programs"; license = self.stdenv.lib.licenses.bsd3; platforms = self.ghc.meta.platforms; + maintainers = [ + self.stdenv.lib.maintainers.andres + self.stdenv.lib.maintainers.simons + ]; }; }) From 81b3becc7ea4e2a1bffcfbe0fb5e6d2b12b7588b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 28 Feb 2012 10:03:40 +0000 Subject: [PATCH 35/71] haskell-epic: updated to version 0.9.3 svn path=/nixpkgs/trunk/; revision=32670 --- pkgs/development/compilers/epic/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/epic/default.nix b/pkgs/development/compilers/epic/default.nix index 33087f23c9ae..9060d313be5a 100644 --- a/pkgs/development/compilers/epic/default.nix +++ b/pkgs/development/compilers/epic/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "epic"; - version = "0.9.2"; - sha256 = "1irvfk8xf627bfzsgbqa56816jkc99rrxpml9ycg2grq7razp9fw"; + version = "0.9.3"; + sha256 = "1x8y3ljha8r52pw83mjfv5i49dq0b7i1xbxg8j9hlvr2vwfa4237"; isLibrary = true; isExecutable = true; buildDepends = [ Cabal mtl ]; From 409e44cbe173532815473b661244efe63899cdd5 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 28 Feb 2012 10:03:45 +0000 Subject: [PATCH 36/71] haskell-idris: updated to version 0.9.2 svn path=/nixpkgs/trunk/; revision=32671 --- pkgs/development/compilers/idris/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/idris/default.nix b/pkgs/development/compilers/idris/default.nix index e030fee76583..f0fd33e439f0 100644 --- a/pkgs/development/compilers/idris/default.nix +++ b/pkgs/development/compilers/idris/default.nix @@ -4,8 +4,8 @@ cabal.mkDerivation (self: { pname = "idris"; - version = "0.9.1"; - sha256 = "1yvw15750mqrvq1kd7bsk3ldq3s0z947c4f93pv7008gq5im4cvr"; + version = "0.9.2"; + sha256 = "0n4dh3vxkjvw8rb5iqm8lvi21q2ljw2pzn453wfcisdadkpv4fh5"; isLibrary = false; isExecutable = true; buildDepends = [ From 026f6e76976095ccec203c114913a851033eef19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 28 Feb 2012 10:08:21 +0000 Subject: [PATCH 37/71] Doxygen: Reinstate version 1.7. svn path=/nixpkgs/trunk/; revision=32672 --- .../tools/documentation/doxygen/1.7.nix | 52 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 9 ++++ 2 files changed, 61 insertions(+) create mode 100644 pkgs/development/tools/documentation/doxygen/1.7.nix diff --git a/pkgs/development/tools/documentation/doxygen/1.7.nix b/pkgs/development/tools/documentation/doxygen/1.7.nix new file mode 100644 index 000000000000..86f2e8cf2b2e --- /dev/null +++ b/pkgs/development/tools/documentation/doxygen/1.7.nix @@ -0,0 +1,52 @@ +{ stdenv, fetchurl, perl, flex, bison, qt4 }: + +let + name = "doxygen-1.7.4"; +in +stdenv.mkDerivation { + inherit name; + + src = fetchurl { + url = "ftp://ftp.stack.nl/pub/users/dimitri/${name}.src.tar.gz"; + sha256 = "0rnzyp5f8c454fdkgpg5hpxwmx642spgxcpw3blbvnyw8129jp44"; + }; + + patches = [ ./tmake.patch ]; + + buildInputs = + [ perl flex bison ] + ++ stdenv.lib.optional (qt4 != null) qt4; + + prefixKey = "--prefix "; + + configureFlags = + [ "--dot dot" ] + ++ stdenv.lib.optional (qt4 != null) "--with-doxywizard"; + + preConfigure = stdenv.lib.optionalString (qt4 != null) + '' + echo "using QTDIR=${qt4}..." + export QTDIR=${qt4} + ''; + + makeFlags = "MAN1DIR=share/man/man1"; + + enableParallelBuilding = true; + + meta = { + license = "GPLv2+"; + homepage = "http://doxygen.org/"; + description = "Doxygen, a source code documentation generator tool"; + + longDescription = '' + Doxygen is a documentation system for C++, C, Java, Objective-C, + Python, IDL (CORBA and Microsoft flavors), Fortran, VHDL, PHP, + C\#, and to some extent D. It can generate an on-line + documentation browser (in HTML) and/or an off-line reference + manual (in LaTeX) from a set of documented source files. + ''; + + maintainers = [stdenv.lib.maintainers.simons]; + platforms = if (qt4 != null) then stdenv.lib.platforms.linux else stdenv.lib.platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e74aba5c27c2..8b9d0ac32f7e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3007,6 +3007,15 @@ let doxygen = lowPrio (doxygen_gui.override { qt4 = null; }); + /* XXX: The LaTeX output with Doxygen 1.8.0 makes LaTeX barf: + + ! You can't use `\/' in vertical mode. + + Thus, keep 1.7 around until a better fix is available. */ + doxygen_1_7 = callPackage ../development/tools/documentation/doxygen/1.7.nix { + qt4 = null; + }; + doxygen_gui = callPackage ../development/tools/documentation/doxygen { }; eggdbus = callPackage ../development/tools/misc/eggdbus { }; From 423b5b47bc44d3edd68a09e29298c5c74c6cbbed Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Tue, 28 Feb 2012 11:53:34 +0000 Subject: [PATCH 38/71] add python pkgs iptools-0.4.0 svn path=/nixpkgs/trunk/; revision=32676 --- pkgs/top-level/python-packages.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 488fce66febd..4feeaa316e0d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -597,6 +597,22 @@ let pythonPackages = python.modules // rec { }; + iptools = buildPythonPackage rec { + version = "0.4.0"; + name = "iptools-${version}"; + + src = fetchurl { + url = "http://pypi.python.org/packages/source/i/iptools/iptools-${version}.tar.gz"; + md5 = "de60e5fab861f29dbf5f4446f8576532"; + }; + + meta = { + description = "Utilities for manipulating IP addresses including a class that can be used to include CIDR network blocks in Django's INTERNAL_IPS setting."; + homepage = http://pypi.python.org/pypi/iptools; + }; + }; + + ipy = buildPythonPackage rec { version = "0.74"; name = "ipy-${version}"; From 051129ac799b08bae0d6f2e3381070adc4e8da2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 28 Feb 2012 14:22:20 +0000 Subject: [PATCH 39/71] Doxygen: Add link to the bug report. svn path=/nixpkgs/trunk/; revision=32677 --- pkgs/top-level/all-packages.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8b9d0ac32f7e..07cfb9ff762f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3007,11 +3007,8 @@ let doxygen = lowPrio (doxygen_gui.override { qt4 = null; }); - /* XXX: The LaTeX output with Doxygen 1.8.0 makes LaTeX barf: - - ! You can't use `\/' in vertical mode. - - Thus, keep 1.7 around until a better fix is available. */ + /* XXX: The LaTeX output with Doxygen 1.8.0 makes LaTeX barf. + See . */ doxygen_1_7 = callPackage ../development/tools/documentation/doxygen/1.7.nix { qt4 = null; }; From 207d5aae28784c6ca9d960fbdfb2cc5dd949dd32 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 28 Feb 2012 15:53:39 +0000 Subject: [PATCH 40/71] * Added SQL::SplitStatement. svn path=/nixpkgs/trunk/; revision=32678 --- pkgs/top-level/perl-packages.nix | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 85d50caf8635..842f127f576c 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -3022,10 +3022,27 @@ rec { url = "mirror://cpan/authors/id/D/DA/DAVEBAIRD/${name}.tar.gz"; sha256 = "1qqh89kz065mkgyg5pjcgbf8qcpzfk8vf1lgkbwynknadmv87zqg"; }; - propagatedBuildInputs = [ - SQLAbstract TestException DBI TestDeep - ]; - buildInputs = [TestPod TestPodCoverage]; + propagatedBuildInputs = + [ SQLAbstract TestException DBI TestDeep ]; + buildInputs = [ TestPod TestPodCoverage ]; + }; + + SQLSplitStatement = buildPerlPackage rec { + name = "SQL-SplitStatement-1.00020"; + src = fetchurl { + url = "mirror://cpan/modules/by-module/SQL/${name}.tar.gz"; + sha256 = "0bqg45k4c9qkb2ypynlwhpvzsl4ssfagmsalys18s5c79ps30z7p"; + }; + buildInputs = [ TestException ]; + propagatedBuildInputs = [ ClassAccessor ListMoreUtils RegexpCommon SQLTokenizer ]; + }; + + SQLTokenizer = buildPerlPackage rec { + name = "SQL-Tokenizer-0.24"; + src = fetchurl { + url = "mirror://cpan/modules/by-module/SQL/${name}.tar.gz"; + sha256 = "1qa2dfbzdlr5qqdam9yn78z5w3al5r8577x06qan8wv58ay6ka7s"; + }; }; SQLTranslator = buildPerlPackage rec { From a70a76086c2553000497ab21dc371bc296c3e3d4 Mon Sep 17 00:00:00 2001 From: Karn Kallio Date: Tue, 28 Feb 2012 16:26:55 +0000 Subject: [PATCH 41/71] Latest version of libzip places zipconf.h where mysqlworkbench cannot find it and so mysqlworkbench does not build. This links it to somewhere mysqlworkbench looks. I think the openoffice build also failed because of this. svn path=/nixpkgs/trunk/; revision=32679 --- pkgs/development/libraries/libzip/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/libraries/libzip/default.nix b/pkgs/development/libraries/libzip/default.nix index 0c490c63411a..48ef55892c8f 100644 --- a/pkgs/development/libraries/libzip/default.nix +++ b/pkgs/development/libraries/libzip/default.nix @@ -10,6 +10,12 @@ stdenv.mkDerivation rec { propagatedBuildInputs = [ zlib ]; + # At least mysqlWorkbench cannot find zipconf.h; I think also openoffice + # had this same problem. This links it somewhere that mysqlworkbench looks. + postInstall = '' + ( cd $out/include ; ln -s ../lib/libzip/include/zipconf.h zipconf.h ) + ''; + meta = { homepage = http://www.nih.at/libzip; description = "A C library for reading, creating and modifying zip archives"; From bd68cc6f5b9680cf3197e3306850a101e7b69fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 28 Feb 2012 17:10:50 +0000 Subject: [PATCH 42/71] nix-build: Honor user-provided `failureHook'. svn path=/nixpkgs/trunk/; revision=32680 --- pkgs/build-support/release/nix-build.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/release/nix-build.nix b/pkgs/build-support/release/nix-build.nix index a32f0e07a0cc..f734e1eefe5a 100644 --- a/pkgs/build-support/release/nix-build.nix +++ b/pkgs/build-support/release/nix-build.nix @@ -12,6 +12,7 @@ , lcovExtraTraceFiles ? [] , src, stdenv , name ? if doCoverageAnalysis then "nix-coverage" else "nix-build" +, failureHook ? null , ... } @ args: stdenv.mkDerivation ( @@ -37,7 +38,8 @@ stdenv.mkDerivation ( fi ''; - failureHook = '' + failureHook = (stdenv.lib.optionalString (failureHook != null) failureHook) + + '' if test -n "$succeedOnFailure"; then if test -n "$keepBuildDirectory"; then KEEPBUILDDIR="$out/`basename $TMPDIR`" From 9a5c6611d09c5dfbbef015e4a7de29f20fc68d65 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 28 Feb 2012 17:34:39 +0000 Subject: [PATCH 43/71] moderncv: updated sha hash svn path=/nixpkgs/trunk/; revision=32681 --- pkgs/tools/typesetting/tex/texlive/moderncv.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/typesetting/tex/texlive/moderncv.nix b/pkgs/tools/typesetting/tex/texlive/moderncv.nix index dfd6fd652c2e..f93724e4af10 100644 --- a/pkgs/tools/typesetting/tex/texlive/moderncv.nix +++ b/pkgs/tools/typesetting/tex/texlive/moderncv.nix @@ -3,7 +3,7 @@ rec { name = "moderncv-0.19"; src = fetchurl { url = "http://mirror.ctan.org/macros/latex/contrib/moderncv.zip"; - sha256 = "5cd2117cd2a3572dbc055033ca81ca744ee65918c42d23687e133bb1e6ddd644"; + sha256 = "0i6nvpkb2fqkgrl26bf431cyckklra0wlcsh0ny2smx3s9y13ljw"; }; buildInputs = [texLive unzip]; From 6c13f317e9b9b44e0e0606a3f1ab987fbec5ece9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 28 Feb 2012 18:40:27 +0000 Subject: [PATCH 44/71] * Latest PostgreSQL releases. svn path=/nixpkgs/trunk/; revision=32684 --- pkgs/servers/sql/postgresql/8.3.x.nix | 4 ++-- pkgs/servers/sql/postgresql/8.4.x.nix | 4 ++-- pkgs/servers/sql/postgresql/9.0.x.nix | 4 ++-- pkgs/servers/sql/postgresql/9.1.x.nix | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/servers/sql/postgresql/8.3.x.nix b/pkgs/servers/sql/postgresql/8.3.x.nix index ba0d57b3654b..c69cb135f7c5 100644 --- a/pkgs/servers/sql/postgresql/8.3.x.nix +++ b/pkgs/servers/sql/postgresql/8.3.x.nix @@ -1,13 +1,13 @@ { stdenv, fetchurl, zlib, ncurses, readline }: -let version = "8.3.17"; in +let version = "8.3.18"; in stdenv.mkDerivation rec { name = "postgresql-${version}"; src = fetchurl { url = "mirror://postgresql/source/v${version}/${name}.tar.bz2"; - sha256 = "0xq8yg8qwd4qvjk6764argaxl6fribyf1xnxmdsk4xfcmgmfw5gv"; + sha256 = "0iip7irc8sqz75w6p52fpdfqs4jlqchpzvp0w5s95w2ri5591d2x"; }; buildInputs = [ zlib ncurses readline ]; diff --git a/pkgs/servers/sql/postgresql/8.4.x.nix b/pkgs/servers/sql/postgresql/8.4.x.nix index 20b9bca5144c..8460a8f41d15 100644 --- a/pkgs/servers/sql/postgresql/8.4.x.nix +++ b/pkgs/servers/sql/postgresql/8.4.x.nix @@ -1,13 +1,13 @@ { stdenv, fetchurl, zlib, ncurses, readline }: -let version = "8.4.10"; in +let version = "8.4.11"; in stdenv.mkDerivation rec { name = "postgresql-${version}"; src = fetchurl { url = "mirror://postgresql/source/v${version}/${name}.tar.bz2"; - sha256 = "1yvwn2qpn2dpgfi496r1zl8b8xy52lb2pprg076pvc37sklq77vl"; + sha256 = "13ww30xv2pwd5hy1x5lsmba4jc59n6f6nz0dc29bb0k2s7qrzg2v"; }; buildInputs = [ zlib ncurses readline ]; diff --git a/pkgs/servers/sql/postgresql/9.0.x.nix b/pkgs/servers/sql/postgresql/9.0.x.nix index 6813bd927c8a..5b9c565d802e 100644 --- a/pkgs/servers/sql/postgresql/9.0.x.nix +++ b/pkgs/servers/sql/postgresql/9.0.x.nix @@ -1,13 +1,13 @@ { stdenv, fetchurl, zlib, readline }: -let version = "9.0.6"; in +let version = "9.0.7"; in stdenv.mkDerivation rec { name = "postgresql-${version}"; src = fetchurl { url = "mirror://postgresql/source/v${version}/${name}.tar.bz2"; - sha256 = "317d99d2ff9e1de8da0cae107bc06c9fd455b1df0c0fb77b8fbb61fb08276056"; + sha256 = "0cyqlr4c9jl4d786s0h8d45vkx6343f664ys2jamyncb3pbjdgns"; }; buildInputs = [ zlib readline ]; diff --git a/pkgs/servers/sql/postgresql/9.1.x.nix b/pkgs/servers/sql/postgresql/9.1.x.nix index 161c3dc2ccf0..63c7255559c1 100644 --- a/pkgs/servers/sql/postgresql/9.1.x.nix +++ b/pkgs/servers/sql/postgresql/9.1.x.nix @@ -1,13 +1,13 @@ { stdenv, fetchurl, zlib, readline }: -let version = "9.1.2"; in +let version = "9.1.3"; in stdenv.mkDerivation rec { name = "postgresql-${version}"; src = fetchurl { url = "mirror://postgresql/source/v${version}/${name}.tar.bz2"; - sha256 = "0c6vwlfxppjvrikqfq6s87sxmxxvsx1qq03bwgk589sv9x8zym4d"; + sha256 = "1mfmqimd3fvvpw60b0haql510l00nhyfgp4wpkcw2ca0c8580ybs"; }; buildInputs = [ zlib readline ]; From 1ad3da0ca888b860bac78a7c11a68e6afbfd3ddc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Tue, 28 Feb 2012 23:01:25 +0000 Subject: [PATCH 45/71] Taking back 32635. An older Rigs of Rods does not work better. Same throttle issues. Let's keep with 0.39.4. svn path=/nixpkgs/trunk/; revision=32685 --- .../interpreters/angelscript/2.20.nix | 65 ------------------- pkgs/games/rigsofrods/default.nix | 9 ++- pkgs/top-level/all-packages.nix | 3 - 3 files changed, 4 insertions(+), 73 deletions(-) delete mode 100644 pkgs/development/interpreters/angelscript/2.20.nix diff --git a/pkgs/development/interpreters/angelscript/2.20.nix b/pkgs/development/interpreters/angelscript/2.20.nix deleted file mode 100644 index 78225a1b5421..000000000000 --- a/pkgs/development/interpreters/angelscript/2.20.nix +++ /dev/null @@ -1,65 +0,0 @@ -x@{builderDefsPackage - , unzip - , ...}: -builderDefsPackage -(a : -let - helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ - []; - - buildInputs = map (n: builtins.getAttr n x) - (builtins.attrNames (builtins.removeAttrs x helperArgNames)); - sourceInfo = rec { - baseName="angelscript"; - version="2.20.3"; - name="${baseName}-${version}"; - url="http://www.angelcode.com/angelscript/sdk/files/angelscript_${version}.zip"; - hash="1gyfi35n7vcm9bm0f1q3va4w8b94avc713b6yqzinzg6dmp1x937"; - }; -in -rec { - src = a.fetchurl { - url = sourceInfo.url; - sha256 = sourceInfo.hash; - }; - - inherit (sourceInfo) name version; - inherit buildInputs; - - /* doConfigure should be removed if not needed */ - phaseNames = ["prepareBuild" "doMake" "cleanLib" "doMakeInstall" "installDocs"]; - - prepareBuild = a.fullDepEntry '' - cd angelscript/projects/gnuc - sed -i makefile -e "s@LOCAL = .*@LOCAL = $out@" - ensureDir "$out/lib" "$out/bin" "$out/share" "$out/include" - export SHARED=1 - export VERSION="${version}" - '' ["minInit" "addInputs" "doUnpack" "defEnsureDir"]; - - cleanLib = a.fullDepEntry '' - rm ../../lib/* - '' ["minInit"]; - - installDocs = a.fullDepEntry '' - ensureDir "$out/share/angelscript" - cp -r ../../../docs "$out/share/angelscript" - '' ["defEnsureDir" "prepareBuild"]; - - meta = { - description = "A light-weight scripting library"; - maintainers = with a.lib.maintainers; - [ - raskin - ]; - platforms = with a.lib.platforms; - linux; - license = a.lib.licenses.zlib; - }; - passthru = { - updateInfo = { - downloadPage = "http://www.angelcode.com/angelscript/downloads.asp"; - }; - }; -}) x - diff --git a/pkgs/games/rigsofrods/default.nix b/pkgs/games/rigsofrods/default.nix index e7f2b3976cdc..4fa897983065 100644 --- a/pkgs/games/rigsofrods/default.nix +++ b/pkgs/games/rigsofrods/default.nix @@ -4,13 +4,12 @@ }: stdenv.mkDerivation rec { - version = "0.39-svn2267"; + version = "0.39.4"; name = "rigsofrods-${version}"; - src = fetchsvn { - url = https://rigsofrods.svn.sourceforge.net/svnroot/rigsofrods/trunk; - rev = 2267; - sha256 = "19r3v6x1wk3nb1cyixbp1bmdg96h31bxjlsz6zh6qc317wjmy96b"; + src = fetchurl { + url = mirror://sourceforge/rigsofrods/rigsofrods-source-0.39.4.tar.bz2; + sha256 = "1kpjkski0yllwzdki0rjpqvifjs0fwpgs513y4dv4s9wfwan1qcx"; }; contentPackSrc = fetchurl { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 07cfb9ff762f..088ee4540446 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2620,8 +2620,6 @@ let angelscript = callPackage ../development/interpreters/angelscript {}; - angelscript_2_20 = callPackage ../development/interpreters/angelscript/2.20.nix {}; - clisp = callPackage ../development/interpreters/clisp { }; # compatibility issues in 2.47 - at list 2.44.1 is known good @@ -7972,7 +7970,6 @@ let rigsofrods = callPackage ../games/rigsofrods { mygui = myguiSvn; - angelscript = angelscript_2_20; }; rogue = callPackage ../games/rogue { }; From d4960f72bec068336819f3258fa67f1b1b4a6bd7 Mon Sep 17 00:00:00 2001 From: Arie Middelkoop Date: Wed, 29 Feb 2012 12:50:17 +0000 Subject: [PATCH 46/71] Added an optional parameter to "make-startupitem" to provide a prefix to the ".desktop" file. svn path=/nixpkgs/trunk/; revision=32686 --- pkgs/build-support/make-startupitem/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/build-support/make-startupitem/default.nix b/pkgs/build-support/make-startupitem/default.nix index 07cdee600d45..dc78b8a704e2 100644 --- a/pkgs/build-support/make-startupitem/default.nix +++ b/pkgs/build-support/make-startupitem/default.nix @@ -2,8 +2,9 @@ # as autostart item. {stdenv, lib}: -{ name # name of the desktop file (without .desktop) -, package # package where the desktop file resides in +{ name # name of the desktop file (without .desktop) +, package # package where the desktop file resides in +, srcPrefix ? "" # additional prefix that the desktop file may have in the 'package' , after ? null , condition ? null , phase ? "2" @@ -20,7 +21,7 @@ stdenv.mkDerivation { buildCommand = '' ensureDir $out/share/autostart target=${name}.desktop - cp ${package}/share/applications/${name}.desktop $target + cp ${package}/share/applications/${srcPrefix}${name}.desktop $target chmod +rw $target echo "X-KDE-autostart-phase=${phase}" >> $target ${lib.optionalString (after != null) ''echo "${after}" >> $target''} @@ -31,4 +32,4 @@ stdenv.mkDerivation { # this will automatically put 'package' in the environment when you # put its startup item in there. propagatedBuildInputs = [ package ]; -} \ No newline at end of file +} From d9f5e277a5471f1c03d14dced75738b62d323b56 Mon Sep 17 00:00:00 2001 From: Arie Middelkoop Date: Wed, 29 Feb 2012 12:51:06 +0000 Subject: [PATCH 47/71] OCamlMakefile update. svn path=/nixpkgs/trunk/; revision=32687 --- .../ocaml-modules/ocamlmake/default.nix | 20 +++++++++++++------ .../ocaml-modules/ocamlmake/setup-hook.sh | 5 +++++ .../ocaml-modules/pycaml/default.nix | 4 ++-- 3 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 pkgs/development/ocaml-modules/ocamlmake/setup-hook.sh diff --git a/pkgs/development/ocaml-modules/ocamlmake/default.nix b/pkgs/development/ocaml-modules/ocamlmake/default.nix index 69386bd75787..23858576efd5 100644 --- a/pkgs/development/ocaml-modules/ocamlmake/default.nix +++ b/pkgs/development/ocaml-modules/ocamlmake/default.nix @@ -1,16 +1,24 @@ {stdenv, fetchurl}: -stdenv.mkDerivation { - name = "ocaml-make-6.33.0"; +let + + version = "6.36.0"; + sha256 = "7c9a771d79bf945050dc7530957f4b61669976177818185e64c002cbfd75e3a2"; + +in stdenv.mkDerivation { + name = "ocaml-make-${version}"; src = fetchurl { - url = "http://www.ocaml.info/ocaml_sources/ocaml-make-6.33.0.tar.gz"; - sha256 = "3054303ba04e4bbbe038e08310fabc3e5a0e3899bbba33d9ac5ed7a1b9d1e05a"; + url = "http://hg.ocaml.info/release/ocaml-make/archive/release-${version}.tar.bz2"; + inherit sha256; }; - phases = [ "unpackPhase" "installPhase" ]; + installPhase = '' + ensureDir "$out/include/" + cp OCamlMakefile "$out/include/" + ''; - installPhase = "cp OCamlMakefile $out"; + setupHook = ./setup-hook.sh; meta = { homepage = "http://www.ocaml.info/home/ocaml_sources.html"; diff --git a/pkgs/development/ocaml-modules/ocamlmake/setup-hook.sh b/pkgs/development/ocaml-modules/ocamlmake/setup-hook.sh new file mode 100644 index 000000000000..876556a7b922 --- /dev/null +++ b/pkgs/development/ocaml-modules/ocamlmake/setup-hook.sh @@ -0,0 +1,5 @@ +addOcamlMakefile () { + export OCAMLMAKEFILE="@out@/include/OCamlMakefile" +} + +envHooks=(${envHooks[@]} addOcamlMakefile) diff --git a/pkgs/development/ocaml-modules/pycaml/default.nix b/pkgs/development/ocaml-modules/pycaml/default.nix index af7207064bae..b6c0df5ac15b 100644 --- a/pkgs/development/ocaml-modules/pycaml/default.nix +++ b/pkgs/development/ocaml-modules/pycaml/default.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation { sha256 = "ff6d863c42b4ef798f50ff5eff77b47b77b5c0d28b6f65364e8a436a216dc591"; }; - buildInputs = [ocaml findlib python]; + buildInputs = [ocaml findlib python ocaml_make]; createFindlibDestdir = true; @@ -26,7 +26,7 @@ stdenv.mkDerivation { # fix some paths to the appropriate store paths. patchPhase = '' - sed -i "Makefile" -e's|/usr/include/OCamlMakefile|${ocaml_make}|g' + sed -i "Makefile" -e's|/usr/include/OCamlMakefile|${ocaml_make}/include/OCamlMakefile|g' sed -i "Makefile" -e's|/usr|${python}|g' ''; From 6e8c9ea906e80e6af78f1ec74213787dac0ad354 Mon Sep 17 00:00:00 2001 From: Arie Middelkoop Date: Wed, 29 Feb 2012 12:53:13 +0000 Subject: [PATCH 48/71] ocaml-mode for emacs. There seem to exist multiple (very old) versions. I'm taking the one shipped with the ocaml compiler, which is hopefully the "most appropriate". svn path=/nixpkgs/trunk/; revision=32688 --- .../editors/emacs-modes/ocaml/default.nix | 30 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/applications/editors/emacs-modes/ocaml/default.nix diff --git a/pkgs/applications/editors/emacs-modes/ocaml/default.nix b/pkgs/applications/editors/emacs-modes/ocaml/default.nix new file mode 100644 index 000000000000..1d81a0b7ff1e --- /dev/null +++ b/pkgs/applications/editors/emacs-modes/ocaml/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchurl, emacs, ocaml }: + +# this package installs the emacs-mode which +# resides in the ocaml compiler sources. + +let version = stdenv.lib.removePrefix "ocaml-" ocaml.name; +in stdenv.mkDerivation { + name = "ocaml-mode-${version}"; + inherit (ocaml) prefixKey src; + + # a quick configure to get the Makefile generated. Since + # we do not build the ocaml itself, we don't really + # need it to support any features. + configureFlags = [ "-no-tk" "-no-curses" "-no-pthread" ]; + + buildInputs = [ emacs ]; + dontBuild = true; + + installPhase = '' + cd emacs; + ensureDir "$out/share/emacs/site-lisp" "$out/bin" + EMACSDIR=$out/share/emacs/site-lisp make simple-install install-ocamltags + ''; + + meta = { + homepage = http://caml.inria.fr; + description = "OCaml mode package for Emacs"; + platforms = stdenv.lib.platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 088ee4540446..6f37b48da689 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6672,6 +6672,8 @@ let haskellMode = callPackage ../applications/editors/emacs-modes/haskell { }; + ocamlMode = callPackage ../applications/editors/emacs-modes/ocaml { }; + hol_light_mode = callPackage ../applications/editors/emacs-modes/hol_light { }; htmlize = callPackage ../applications/editors/emacs-modes/htmlize { }; From 45120513fb73699a0bbeccf26e61d86bad1868d3 Mon Sep 17 00:00:00 2001 From: Arie Middelkoop Date: Wed, 29 Feb 2012 12:54:35 +0000 Subject: [PATCH 49/71] Cosmetic changes to newsreaders/kwooty and dropbox expressions. svn path=/nixpkgs/trunk/; revision=32689 --- pkgs/applications/networking/dropbox/default.nix | 14 +++++++------- .../networking/newsreaders/kwooty/default.nix | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/networking/dropbox/default.nix b/pkgs/applications/networking/dropbox/default.nix index 5e7e921710f0..936fedd1491e 100644 --- a/pkgs/applications/networking/dropbox/default.nix +++ b/pkgs/applications/networking/dropbox/default.nix @@ -23,7 +23,7 @@ let sha256 = "72aeaf00727da9f3fe39386dcf883bb303de928ba43c738fcc5bb62b93eca252"; # relative location where the dropbox libraries are stored - sharedir = "share/dropbox"; + appdir = "opt/dropbox"; # Libraries referenced by dropbox binary. # Be aware that future versions of the dropbox binary may refer @@ -60,17 +60,17 @@ in stdenv.mkDerivation { ''; installPhase = '' - ensureDir "$out/${sharedir}" - cp -r .dropbox-dist/* "$out/${sharedir}/" + ensureDir "$out/${appdir}" + cp -r .dropbox-dist/* "$out/${appdir}/" ensureDir "$out/bin" - ln -s "$out/${sharedir}/dropbox" "$out/bin/dropbox" + ln -s "$out/${appdir}/dropbox" "$out/bin/dropbox" patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 \ - "$out/${sharedir}/dropbox" + "$out/${appdir}/dropbox" - RPATH=${ldpath}:${gcc.gcc}/lib64:$out/${sharedir} + RPATH=${ldpath}:${gcc.gcc}/lib64:$out/${appdir} echo "updating rpaths to: $RPATH" - find "$out/${sharedir}" -type f -a -perm +0100 \ + find "$out/${appdir}" -type f -a -perm +0100 \ -print -exec patchelf --force-rpath --set-rpath "$RPATH" {} \; ensureDir "$out/share/applications" diff --git a/pkgs/applications/networking/newsreaders/kwooty/default.nix b/pkgs/applications/networking/newsreaders/kwooty/default.nix index 003157dd1291..15b1c6c6b4ea 100644 --- a/pkgs/applications/networking/newsreaders/kwooty/default.nix +++ b/pkgs/applications/networking/newsreaders/kwooty/default.nix @@ -32,7 +32,7 @@ in stdenv.mkDerivation { libX11 libXext libXft ]; - meta = with stdenv.lib; { + meta = { description = "Binary news reader of KDE"; }; } From 298f4df4afb5c60bd686f13763ea6e2d0a7080ed Mon Sep 17 00:00:00 2001 From: Arie Middelkoop Date: Wed, 29 Feb 2012 12:55:51 +0000 Subject: [PATCH 50/71] Changed 'myEnvFun' to in addition put a script in 'bin' so that you can run '. load--env' to load your environment. svn path=/nixpkgs/trunk/; revision=32690 --- pkgs/misc/my-env/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/misc/my-env/default.nix b/pkgs/misc/my-env/default.nix index 76080d8e114a..8485346e67b9 100644 --- a/pkgs/misc/my-env/default.nix +++ b/pkgs/misc/my-env/default.nix @@ -45,7 +45,7 @@ mkDerivation { # the buildNativeInputs environment variable. buildNativeInputs = [ ] ++ buildInputs ; name = "env-${name}"; - phases = [ "buildPhase" ]; + phases = [ "buildPhase" "fixupPhase" ]; setupNew = substituteAll { src = ../../stdenv/generic/setup.sh; preHook=""; @@ -56,7 +56,7 @@ mkDerivation { buildPhase = '' set -x - mkdir -p "$out/dev-envs" "$out/nix-support" + mkdir -p "$out/dev-envs" "$out/nix-support" "$out/bin" s="$out/nix-support/setup-new-modified" cp "$setupNew" "$s" # shut some warning up.., do not use set -e @@ -111,6 +111,12 @@ mkDerivation { export PATH echo $name loaded EOF - exit 0 + + cat >> "$out/bin/load-''${name/env-/}-env" << EOF + #!/bin/sh + + source "$out/dev-envs/''${name/env-/}" + EOF + chmod +x "$out/bin/load-''${name/env-/}-env" ''; } From cff68ececb80e32b2047b2c1a1759ef59b8d929d Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Wed, 29 Feb 2012 13:29:59 +0000 Subject: [PATCH 51/71] network-manager: version bump svn path=/nixpkgs/trunk/; revision=32691 --- pkgs/tools/networking/network-manager/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/networking/network-manager/default.nix b/pkgs/tools/networking/network-manager/default.nix index 8ca0be990397..49aacaa4ef9a 100644 --- a/pkgs/tools/networking/network-manager/default.nix +++ b/pkgs/tools/networking/network-manager/default.nix @@ -1,14 +1,14 @@ -{ stdenv, fetchurl, intltool, wirelesstools, pkgconfig, dbus_glib +{ stdenv, fetchurl, intltool, wirelesstools, pkgconfig, dbus_glib, xz , udev, libnl1, libuuid, polkit, gnutls, ppp, dhcp, dhcpcd, iptables , libgcrypt, dnsmasq, avahi }: stdenv.mkDerivation rec { name = "network-manager-${version}"; - version = "0.9.0"; + version = "0.9.2.0"; src = fetchurl { - url = "mirror://gnome/sources/NetworkManager/0.9/NetworkManager-${version}.tar.bz2"; - sha256 = "0kvi767c224zlja65r8gixmhj57292k0gsxa0217lw5i99l2incq"; + url = "mirror://gnome/sources/NetworkManager/0.9/NetworkManager-${version}.tar.xz"; + sha256 = "1pvd49ji7mh8ww2rfbvq6hmmjms5mb7w10fr7ihgzqbg589zjyj3"; }; # Right now we hardcode quite a few paths at build time. Probably we should @@ -27,7 +27,7 @@ stdenv.mkDerivation rec { "--with-dbus-sys-dir=\${out}/etc/dbus-1/system.d" "--with-crypto=gnutls" "--disable-more-warnings" ]; - buildInputs = [ wirelesstools udev libnl1 libuuid polkit ppp ]; + buildInputs = [ wirelesstools udev libnl1 libuuid polkit ppp xz ]; propagatedBuildInputs = [ dbus_glib gnutls libgcrypt ]; From b01a720d65eef145be3e3c6d0f9145a014db83b0 Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Wed, 29 Feb 2012 13:30:01 +0000 Subject: [PATCH 52/71] TOR: version bump svn path=/nixpkgs/trunk/; revision=32692 --- pkgs/tools/security/tor/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/security/tor/default.nix b/pkgs/tools/security/tor/default.nix index 62a75c16b4e4..3d2360196a66 100644 --- a/pkgs/tools/security/tor/default.nix +++ b/pkgs/tools/security/tor/default.nix @@ -1,17 +1,17 @@ { stdenv, fetchurl, libevent, openssl, zlib }: stdenv.mkDerivation rec { - name = "tor-0.2.1.30"; + name = "tor-0.2.2.35"; src = fetchurl { url = "http://www.torproject.org/dist/${name}.tar.gz"; - sha256 = "02g15k8w5r57r9r6lz0sxzzvqx200y397y142cjswsd4zyla2lpk"; + sha256 = "f141a41fffd31494a0f96ebbb6b999eab33ce62d5c31f81222a0acd034adbf3a"; }; - patchPhase = +# patchPhase = # DNS lookups fail in chroots. - '' sed -i "src/or/test.c" -es/localhost/127.0.0.1/g - ''; +# '' sed -i "src/or/test.c" -es/localhost/127.0.0.1/g +# ''; buildInputs = [ libevent openssl zlib ]; From 0def4140f639b1da0b841ca180b36345b733a762 Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Wed, 29 Feb 2012 13:30:04 +0000 Subject: [PATCH 53/71] network-manager-applet: version bump svn path=/nixpkgs/trunk/; revision=32693 --- pkgs/tools/networking/network-manager-applet/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/networking/network-manager-applet/default.nix b/pkgs/tools/networking/network-manager-applet/default.nix index cb0ffe321594..0a8832f4b519 100644 --- a/pkgs/tools/networking/network-manager-applet/default.nix +++ b/pkgs/tools/networking/network-manager-applet/default.nix @@ -1,11 +1,11 @@ { stdenv, fetchurl, intltool, pkgconfig, gtk, glib, libglade , networkmanager, GConf, libnotify, gnome_keyring, dbus_glib -, polkit, xz }: +, polkit, isocodes, xz }: let pn = "network-manager-applet"; major = "0.9"; - version = "${major}.0"; + version = "${major}.2.0"; in stdenv.mkDerivation rec { @@ -13,11 +13,11 @@ stdenv.mkDerivation rec { src = fetchurl { url = "mirror://gnome/sources/${pn}/${major}/${name}.tar.xz"; - sha256 = "097y7c29bgd9wm0im06ka3cd94zssg4s626y5lw7yrypq3hzg18f"; + sha256 = "ebe725d0140f658c6a3f384674c72fba7a7c417df3be0e84ee8f45e6dfc219de"; }; buildInputs = [ gtk libglade networkmanager GConf libnotify gnome_keyring - polkit]; + polkit isocodes ]; buildNativeInputs = [ intltool pkgconfig xz ]; From bf667c93899521f8a6ea4862f9b4949b81e228b9 Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Wed, 29 Feb 2012 13:30:06 +0000 Subject: [PATCH 54/71] Vidalia: packaged svn path=/nixpkgs/trunk/; revision=32694 --- pkgs/tools/security/vidalia/default.nix | 21 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/tools/security/vidalia/default.nix diff --git a/pkgs/tools/security/vidalia/default.nix b/pkgs/tools/security/vidalia/default.nix new file mode 100644 index 000000000000..31de710b3aa1 --- /dev/null +++ b/pkgs/tools/security/vidalia/default.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchurl, cmake, qt4 }: +stdenv.mkDerivation rec { + + name = "vidalia-${version}"; + version = "0.2.15"; + + src = fetchurl { + url = "https://www.torproject.org/dist/vidalia/${name}.tar.gz"; + sha256 = "02c8q6l93w1f9jwnl13jvpzk8vms3lrqz41bs36ny7cfzgczv625"; + }; + + buildInputs = [ cmake qt4 ]; + + meta = with stdenv.lib; { + homepage = https://www.torproject.org/projects/vidalia.html.en; + description = "a cross-platform graphical controller for the Tor software, built using the Qt framework"; + license = licenses.gpl2Plus; + maintainers = [ maintainers.phreedom ]; + platforms = platforms.all; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6f37b48da689..3b0becac70e3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1460,6 +1460,8 @@ let vacuum = callPackage ../applications/networking/instant-messengers/vacuum {}; + vidalia = callPackage ../tools/security/vidalia { }; + vbetool = builderDefsPackage ../tools/system/vbetool { inherit pciutils libx86 zlib; }; From cf8d3fa4b9c5cb5edb23ce257a0f4ad285c323f8 Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Wed, 29 Feb 2012 13:30:10 +0000 Subject: [PATCH 55/71] Apparmor: packaged svn path=/nixpkgs/trunk/; revision=32695 --- pkgs/os-specific/linux/apparmor/default.nix | 93 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 + 2 files changed, 97 insertions(+) create mode 100644 pkgs/os-specific/linux/apparmor/default.nix diff --git a/pkgs/os-specific/linux/apparmor/default.nix b/pkgs/os-specific/linux/apparmor/default.nix new file mode 100644 index 000000000000..8a7d2b9e4581 --- /dev/null +++ b/pkgs/os-specific/linux/apparmor/default.nix @@ -0,0 +1,93 @@ +{ stdenv, fetchurl +, autoconf, automake, libtool, makeWrapper +, perl, bison, flex, glibc, gettext, which, rpm, tetex, LocaleGettext, bash, pam, TermReadKey, RpcXML, swig}: +stdenv.mkDerivation rec { + + name = "apparmor-${version}"; + version = "2.6.1"; + + src = fetchurl { + url = "http://launchpad.net/apparmor/2.6/2.6.1/+download/${name}.tar.gz"; + sha256 = "1x7225xgzyc5agbn41xsip236anr1kmaw70xc94pag82q7c1bc4w"; + }; + + buildInputs = [ autoconf automake libtool perl bison flex gettext which rpm tetex LocaleGettext pam TermReadKey RpcXML swig makeWrapper ]; + + prePatch = '' + substituteInPlace libraries/libapparmor/src/Makefile.in --replace "/usr/include" "${glibc}/include" + substituteInPlace libraries/libapparmor/src/Makefile.am --replace "/usr/include" "${glibc}/include" + substituteInPlace common/Make.rules --replace "/usr/bin/pod2man" "${perl}/bin/pod2man" + substituteInPlace common/Make.rules --replace "/usr/bin/pod2html" "${perl}/bin/pod2html" + + substituteInPlace parser/Makefile --replace "/usr/bin/bison" "${bison}/bin/bison" + substituteInPlace parser/Makefile --replace "/usr/bin/flex" "${flex}/bin/flex" + substituteInPlace parser/Makefile --replace "/usr/include/bits/socket.h" "${glibc}/include/bits/socket.h" + substituteInPlace parser/Makefile --replace "/usr/include/linux/capability.h" "${glibc}/include/linux/capability.h" + + substituteInPlace parser/tst/gen-xtrans.pl --replace "/usr/bin/perl" "${perl}/bin/perl" + substituteInPlace parser/tst/Makefile --replace "/usr/bin/prove" "${perl}/bin/prove" + substituteInPlace parser/tst/Makefile --replace "./caching.sh" "${bash}/bin/bash ./caching.sh" + ''; + + buildPhase ='' + PERL5LIB=$PERL5LIB:$out/lib/perl5/site_perl:$out/lib + + cd libraries/libapparmor + ./autogen.sh + ./configure --prefix=$out --with-perl # see below + make + make check + make install + ensureDir $out/lib/perl5/site_perl/ + cp swig/perl/LibAppArmor.pm $out/lib/perl5/site_perl/ + cp swig/perl/LibAppArmor.bs $out/lib/perl5/site_perl/ +# this is automatically copied elsewhere.... + + cd ../../utils + make + make install DESTDIR=$out BINDIR=$out/bin VENDOR_PERL=/lib/perl5/site_perl + + cd ../parser + make + make install DESTDIR=$out DISTRO=unknown + +# cd ../changehat/mod_apparmor +# make # depends on libapparmor having been built first +# make install + + cd ../changehat/pam_apparmor + make # depends on libapparmor having been built first + make install DESTDIR=$out + + cd ../../profiles +LD_LIBRARY_PATH=$out/lib make +#LD_LIBRARY_PATH=$out/lib make check # depends on the parser having been built first + make install DESTDIR=$out + + ''; + installPhase = '' + for i in $out/bin/*; do + wrapProgram $i --prefix PERL5LIB : "$PERL5LIB:$out/lib/perl5/5.10.1/i686-linux-thread-multi/" + done + ''; + passthru = { + linux_2_6_37_patch = { + name= "apparmor"; + features.apparmor = true; + patch = [ + "${src}/kernel-patches/2.6.37/0001-AppArmor-compatibility-patch-for-v5-network-controll.patch" + "${src}/kernel-patches/2.6.37/0002-AppArmor-compatibility-patch-for-v5-interface.patch" + "${src}/kernel-patches/2.6.37/0003-AppArmor-Allow-dfa-backward-compatibility-with-broke.patch" + ]; + }; + }; + + meta = with stdenv.lib; { + homepage = http://apparmor.net/; + description = "A Linux application security system"; + license = licenses.gpl2; + maintainers = [ maintainers.phreedom ]; + platforms = platforms.linux; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3b0becac70e3..01319636b671 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5302,6 +5302,10 @@ let microcodeIntel = callPackage ../os-specific/linux/microcode/intel.nix { }; + apparmor = callPackage ../os-specific/linux/apparmor { + inherit (perlPackages) LocaleGettext TermReadKey RpcXML; + }; + bcm43xx = callPackage ../os-specific/linux/firmware/bcm43xx { }; bluez = callPackage ../os-specific/linux/bluez { }; From 6e5a378f483c56f87bc57deb2d97443b0f834b31 Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Wed, 29 Feb 2012 13:30:14 +0000 Subject: [PATCH 56/71] Vidalia: version bump svn path=/nixpkgs/trunk/; revision=32696 --- pkgs/tools/security/vidalia/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/vidalia/default.nix b/pkgs/tools/security/vidalia/default.nix index 31de710b3aa1..243604c2c79e 100644 --- a/pkgs/tools/security/vidalia/default.nix +++ b/pkgs/tools/security/vidalia/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { name = "vidalia-${version}"; - version = "0.2.15"; + version = "0.2.17"; src = fetchurl { url = "https://www.torproject.org/dist/vidalia/${name}.tar.gz"; - sha256 = "02c8q6l93w1f9jwnl13jvpzk8vms3lrqz41bs36ny7cfzgczv625"; + sha256 = "0x0vb37h2d5njxmqkss03ybv7b7jw25682xb793mix1m8l0hs44r"; }; buildInputs = [ cmake qt4 ]; From 287f1f0f651c12ba291999b8e1623323597bdb3f Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Wed, 29 Feb 2012 14:29:49 +0000 Subject: [PATCH 57/71] spring-lobby: bump version to 0.139 svn path=/nixpkgs/trunk/; revision=32697 --- pkgs/games/spring/spring-lobby.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/games/spring/spring-lobby.nix b/pkgs/games/spring/spring-lobby.nix index 9365f2e65858..4e34d3807ca7 100644 --- a/pkgs/games/spring/spring-lobby.nix +++ b/pkgs/games/spring/spring-lobby.nix @@ -3,17 +3,17 @@ stdenv.mkDerivation rec { name = "spring-lobby-${version}"; - version = "0.116"; + version = "0.139"; src = fetchurl { url = "http://www.springlobby.info/tarballs/springlobby-${version}.tar.bz2"; - sha256 = "04gb2dc2xc0lj2d14jzz330kn5faffdz3xph9bg2m68b28fv0xsk"; + sha256 = "0ibvv2p4c0qa933mr3hfn5lp8c6h1dycl6k6i1n2gvpa8jr598m5"; }; buildInputs = [ cmake wxGTK openal pkgconfig curl gettext libtorrentRasterbar boost ]; prePatch = '' - substituteInPlace tools/regen_config_header.sh --replace "#!/bin/bash" "#!${bash}/bin/bash" + substituteInPlace tools/regen_config_header.sh --replace "#!/usr/bin/env bash" "#!${bash}/bin/bash" substituteInPlace tools/test-susynclib.awk --replace "#!/usr/bin/awk" "#!${gawk}/bin/awk" substituteInPlace CMakeLists.txt --replace "boost_system-mt" "boost_system" ''; @@ -25,6 +25,6 @@ stdenv.mkDerivation rec { description = "A free cross-platform lobby client for the Spring RTS project."; license = licenses.gpl2; maintainers = [ maintainers.phreedom ]; - platforms = platforms.linux; + platforms = platforms.all; }; } \ No newline at end of file From 55ce36faee4a6a2eba7bd07196d424f37266b83c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 29 Feb 2012 14:35:34 +0000 Subject: [PATCH 58/71] * Updated Leiningen to 1.7.0 (contributed by Phil Hagelberg; added a call to patchShebangs to fix the reference to /bin/bash). svn path=/nixpkgs/trunk/; revision=32698 --- .../tools/build-managers/leiningen/builder.sh | 2 ++ .../tools/build-managers/leiningen/default.nix | 13 ++++++------- .../tools/build-managers/leiningen/lein.patch | 16 ++++++---------- 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/pkgs/development/tools/build-managers/leiningen/builder.sh b/pkgs/development/tools/build-managers/leiningen/builder.sh index 65d318c8f1e4..2ee86d86d77b 100644 --- a/pkgs/development/tools/build-managers/leiningen/builder.sh +++ b/pkgs/development/tools/build-managers/leiningen/builder.sh @@ -15,6 +15,8 @@ cp -v $clojuresrc $out/lib patch --verbose $out_bin -p0 < $patches chmod -v 755 $out_bin +patchShebangs $out + echo "Testing out \"lein version\"..." $out_bin version echo "Success." diff --git a/pkgs/development/tools/build-managers/leiningen/default.nix b/pkgs/development/tools/build-managers/leiningen/default.nix index 61a0374bdad1..efdb578a61b6 100644 --- a/pkgs/development/tools/build-managers/leiningen/default.nix +++ b/pkgs/development/tools/build-managers/leiningen/default.nix @@ -2,17 +2,17 @@ stdenv.mkDerivation rec { pname = "leiningen"; - version = "1.6.2"; + version = "1.7.0"; name = "${pname}-${version}"; src = fetchurl { - url = "https://raw.github.com/technomancy/leiningen/stable/bin/lein-pkg"; - sha256 = "e177a493ed0c4a7874f1391d5cc72cc1e541e55ed3d6e075feec87b5da6f8277"; + url = "https://raw.github.com/technomancy/leiningen/1.7.0/bin/lein-pkg"; + sha256 = "1339f6ffc7bae3171174fc9eae990f5b9710ff2804038e931d531632c57f189c"; }; jarsrc = fetchurl { - url = "https://github.com/downloads/technomancy/leiningen/leiningen-1.6.2-standalone.jar"; - sha256 = "e35272556ece82d9a6a54b86266626da1b5f990ff556639dd7dd1025d6ed4226"; + url = "https://github.com/downloads/technomancy/leiningen/leiningen-1.7.0-standalone.jar"; + sha256 = "501eaa1c2a19ca4ffc2fde1776552cb513d69ee874abb547c40cee92156e50bf"; }; clojuresrc = fetchurl { @@ -30,7 +30,6 @@ stdenv.mkDerivation rec { homepage = https://github.com/technomancy/leiningen; description = "Project automation for Clojure"; license = "EPL"; - platforms = stdenv.lib.platforms.unix; }; -} \ No newline at end of file +} diff --git a/pkgs/development/tools/build-managers/leiningen/lein.patch b/pkgs/development/tools/build-managers/leiningen/lein.patch index 1a7157568e43..2edf1370ff4b 100644 --- a/pkgs/development/tools/build-managers/leiningen/lein.patch +++ b/pkgs/development/tools/build-managers/leiningen/lein.patch @@ -1,15 +1,14 @@ ---- lein-pkg 2012-01-09 20:47:44.000000000 -0800 -+++ lein-pkg-nix 2012-01-09 20:45:01.000000000 -0800 -@@ -70,7 +70,7 @@ +--- lein-pkg 2012-02-28 15:26:40.000000000 -0800 ++++ lein-pkg-nix 2012-02-28 17:17:02.000000000 -0800 +@@ -71,30 +71,14 @@ LEIN_PLUGIN_PATH="$(echo "$DEV_PLUGINS" | tr \\n :)" LEIN_USER_PLUGIN_PATH="$(echo "$(unique_user_plugins)" | tr \\n :)" CLASSPATH="$CLASSPATH:$LEIN_PLUGIN_PATH:$LEIN_USER_PLUGIN_PATH:test/:src/:resources/" -CLOJURE_JAR="/usr/share/java/clojure-1.2.jar:/usr/share/java/asm3.jar:/usr/share/java/asm3-commons.jar" +CLOJURE_JAR="$(dirname $0)/../lib/*clojure-1.2.1.jar" - NULL_DEVICE=/dev/null # apply context specific CLASSPATH entries -@@ -78,23 +78,7 @@ + if [ -f .lein-classpath ]; then CLASSPATH="`cat .lein-classpath`:$CLASSPATH" fi @@ -26,11 +25,8 @@ - -# Do not use installed leiningen jar during self-compilation -if ! { [ "$1" = "compile" ] && -- grep -qsE 'defproject leiningen[[:space:]]+"[[:digit:].]+"' \ -- project.clj ;}; then +- grep -qsE 'defproject leiningen[[:space:]]+"[[:digit:].]+"' \ +- project.clj ;}; then - CLASSPATH="$CLASSPATH":/usr/share/java/leiningen-$LEIN_VERSION.jar -fi +CLASSPATH="$CLASSPATH:$(dirname $0)/../lib/*" - - if [ $DEBUG ]; then - echo $CLASSPATH From ad4b594ccedd91bcdfcdf93dcecc9f077b2465d3 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 29 Feb 2012 17:24:27 +0000 Subject: [PATCH 59/71] haskell-hxt: updated to version 9.2.2 svn path=/nixpkgs/trunk/; revision=32699 --- pkgs/development/libraries/haskell/hxt/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/hxt/default.nix b/pkgs/development/libraries/haskell/hxt/default.nix index cc1827ac3425..0e1668a58183 100644 --- a/pkgs/development/libraries/haskell/hxt/default.nix +++ b/pkgs/development/libraries/haskell/hxt/default.nix @@ -4,8 +4,8 @@ cabal.mkDerivation (self: { pname = "hxt"; - version = "9.2.1"; - sha256 = "0172icb36wx4fb6q3xq7pcs85d2hnn4bznq3wjwhval10mayri8y"; + version = "9.2.2"; + sha256 = "0ichjpshq10b11dyfv1q7rs2m190x3gplx6k54amlxv45nwd1s6r"; buildDepends = [ binary deepseq filepath HUnit hxtCharproperties hxtRegexXmlschema hxtUnicode mtl network parsec From 5f4c5c106acaf8abf368478d14cfd2281f66541d Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 29 Feb 2012 17:24:31 +0000 Subject: [PATCH 60/71] haskell-stm: updated to version 2.3 svn path=/nixpkgs/trunk/; revision=32700 --- pkgs/development/libraries/haskell/stm/2.3.nix | 16 ++++++++++++++++ pkgs/top-level/haskell-packages.nix | 5 +++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 pkgs/development/libraries/haskell/stm/2.3.nix diff --git a/pkgs/development/libraries/haskell/stm/2.3.nix b/pkgs/development/libraries/haskell/stm/2.3.nix new file mode 100644 index 000000000000..7057ede7052e --- /dev/null +++ b/pkgs/development/libraries/haskell/stm/2.3.nix @@ -0,0 +1,16 @@ +{ cabal }: + +cabal.mkDerivation (self: { + pname = "stm"; + version = "2.3"; + sha256 = "1321l1qkmvnqdw73i21jnh2b8c1iw1mxjbp23hmqdvljjb9mlzsm"; + meta = { + description = "Software Transactional Memory"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + maintainers = [ + self.stdenv.lib.maintainers.andres + self.stdenv.lib.maintainers.simons + ]; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 8c4e652b34e0..00217ee68add 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -148,7 +148,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); regexBase = self.regexBase_0_93_2; # 7.4.1 ok regexCompat = self.regexCompat_0_93_1; # 7.4.1 ok regexPosix = self.regexPosix_0_95_1; # 7.4.1 ok - stm = self.stm_2_2_0_1; # 7.4.1 ok + stm = self.stm_2_3; # 7.4.1 ok syb = self.syb_0_3_6; # 7.4.1 ok xhtml = self.xhtml_3000_2_0_5; # 7.4.1 ok zlib = self.zlib_0_5_3_3; # 7.4.1 ok @@ -1287,7 +1287,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); stm_2_1_1_2 = callPackage ../development/libraries/haskell/stm/2.1.1.2.nix {}; stm_2_1_2_1 = callPackage ../development/libraries/haskell/stm/2.1.2.1.nix {}; stm_2_2_0_1 = callPackage ../development/libraries/haskell/stm/2.2.0.1.nix {}; - stm = self.stm_2_1_1_2; + stm_2_3 = callPackage ../development/libraries/haskell/stm/2.3.nix {}; + stm = self.stm_2_3; storableComplex = callPackage ../development/libraries/haskell/storable-complex {}; From 708e6f487d6e136bad9954e61d324a14866347b9 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 29 Feb 2012 17:30:39 +0000 Subject: [PATCH 61/71] haskell-HSH: updated to version 2.0.4 svn path=/nixpkgs/trunk/; revision=32701 --- pkgs/development/libraries/haskell/HSH/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/HSH/default.nix b/pkgs/development/libraries/haskell/HSH/default.nix index 51782e82a1e9..ad6ee08bffdf 100644 --- a/pkgs/development/libraries/haskell/HSH/default.nix +++ b/pkgs/development/libraries/haskell/HSH/default.nix @@ -4,8 +4,8 @@ cabal.mkDerivation (self: { pname = "HSH"; - version = "2.0.3"; - sha256 = "10ndmzwaf9by8wnawl3p1r7wn6hqigfymv7hd99ayf25dsqwnzx2"; + version = "2.0.4"; + sha256 = "1ddpazmk82716hqd1riqs7vnl4aildgwkjgk80iam49df9p5b8v8"; isLibrary = true; isExecutable = true; buildDepends = [ From 43153fa269086faf82c6100fc0da9482f6cf3c98 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 29 Feb 2012 17:30:42 +0000 Subject: [PATCH 62/71] haskell-authenticate: updated to version 1.0.0.1 svn path=/nixpkgs/trunk/; revision=32702 --- pkgs/development/libraries/haskell/authenticate/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/authenticate/default.nix b/pkgs/development/libraries/haskell/authenticate/default.nix index 8818aa2d9727..6aa1e4498402 100644 --- a/pkgs/development/libraries/haskell/authenticate/default.nix +++ b/pkgs/development/libraries/haskell/authenticate/default.nix @@ -5,8 +5,8 @@ cabal.mkDerivation (self: { pname = "authenticate"; - version = "1.0.0"; - sha256 = "0a163dhi69gh6zmi43jidxlaknbk1y0frjlwijdf7fp073rh0p87"; + version = "1.0.0.1"; + sha256 = "0wrbr7kwd4g8idd6i4ghvpd5q7nq0b8zx5qphqvkbs128m0r308d"; buildDepends = [ aeson attoparsec blazeBuilder blazeBuilderConduit caseInsensitive conduit httpConduit httpTypes network tagsoup text transformers From 31dc88f597adae42186c3c74f4c52eb4fef91a97 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 29 Feb 2012 17:30:44 +0000 Subject: [PATCH 63/71] haskell-clientsession: updated to version 0.7.4.1 svn path=/nixpkgs/trunk/; revision=32703 --- pkgs/development/libraries/haskell/clientsession/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/clientsession/default.nix b/pkgs/development/libraries/haskell/clientsession/default.nix index a59b3b9ef0e4..d4a770d34b74 100644 --- a/pkgs/development/libraries/haskell/clientsession/default.nix +++ b/pkgs/development/libraries/haskell/clientsession/default.nix @@ -4,8 +4,8 @@ cabal.mkDerivation (self: { pname = "clientsession"; - version = "0.7.4"; - sha256 = "050mg3rzyld4v2b9v1pc1q563sp7sffiapvr8ks8f46ibl17lvss"; + version = "0.7.4.1"; + sha256 = "1fnrngbx86zcvh0ybv7ans132d216ayxdzlgw0x4qh0sw9r3w2ip"; buildDepends = [ base64Bytestring cereal cprngAes cryptoApi cryptocipher entropy skein tagged From 3c88baeec8fbe5e260f71203d719ee4405997d58 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 29 Feb 2012 17:30:47 +0000 Subject: [PATCH 64/71] haskell-convertible: updated to version 1.0.11.1 svn path=/nixpkgs/trunk/; revision=32704 --- pkgs/development/libraries/haskell/convertible/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/convertible/default.nix b/pkgs/development/libraries/haskell/convertible/default.nix index 5497500c0a86..a3fa0208e2d0 100644 --- a/pkgs/development/libraries/haskell/convertible/default.nix +++ b/pkgs/development/libraries/haskell/convertible/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "convertible"; - version = "1.0.11.0"; - sha256 = "0qkz760ddshmglmrf47a01978c9zhxfss44b6vmfkwwfcjb7da2b"; + version = "1.0.11.1"; + sha256 = "1r50a2rpfsx0s7dv8ww5xck33b1mhy73gfilffrbqd4hxjgnxlj6"; isLibrary = true; isExecutable = true; buildDepends = [ mtl text time ]; From 4fc8cd9777a5f203fe890c35f64d1055172d46ca Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 29 Feb 2012 17:30:49 +0000 Subject: [PATCH 65/71] haskell-testpack: updated to version 2.1.2 svn path=/nixpkgs/trunk/; revision=32705 --- pkgs/development/libraries/haskell/testpack/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/testpack/default.nix b/pkgs/development/libraries/haskell/testpack/default.nix index 35b619166a4f..bb729ef31201 100644 --- a/pkgs/development/libraries/haskell/testpack/default.nix +++ b/pkgs/development/libraries/haskell/testpack/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "testpack"; - version = "2.1.1"; - sha256 = "1z8g3xhvy901h7kr7q4wcms5b23xniskrgxfpq42w4b34acwvhmg"; + version = "2.1.2"; + sha256 = "12dhl8svy0wmdwlvkp0p0j6wr6vgv4hrjcpdv48kc5rcwjvh8xif"; buildDepends = [ HUnit mtl QuickCheck random ]; meta = { homepage = "http://hackage.haskell.org/cgi-bin/hackage-scripts/package/testpack"; From a631f6de6a6f3a6429d494081bfabd7c55019d05 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 29 Feb 2012 17:30:52 +0000 Subject: [PATCH 66/71] haskell-utility-ht: updated to version 0.0.8 svn path=/nixpkgs/trunk/; revision=32706 --- pkgs/development/libraries/haskell/utility-ht/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/utility-ht/default.nix b/pkgs/development/libraries/haskell/utility-ht/default.nix index 6b79e4cdda84..9a90eb5dd9f8 100644 --- a/pkgs/development/libraries/haskell/utility-ht/default.nix +++ b/pkgs/development/libraries/haskell/utility-ht/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "utility-ht"; - version = "0.0.7.1"; - sha256 = "0k097kyv6rxjvg1drnphv2mg882xx2lk098hs557fcsr16w658ma"; + version = "0.0.8"; + sha256 = "02sm1xj5xa65hpkvl2yk89d9dlg3c2ap8qcviq9zj10asmsbzyd8"; meta = { description = "Various small helper functions for Lists, Maybes, Tuples, Functions"; license = self.stdenv.lib.licenses.bsd3; From 81e6c12bb3997db1c4f6dfebcfc1ac5c6f870fd0 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 29 Feb 2012 19:24:44 +0000 Subject: [PATCH 67/71] haskell-IfElse: added version 0.85 svn path=/nixpkgs/trunk/; revision=32707 --- .../libraries/haskell/IfElse/default.nix | 17 +++++++++++++++++ pkgs/top-level/haskell-packages.nix | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 pkgs/development/libraries/haskell/IfElse/default.nix diff --git a/pkgs/development/libraries/haskell/IfElse/default.nix b/pkgs/development/libraries/haskell/IfElse/default.nix new file mode 100644 index 000000000000..632de1f30e5b --- /dev/null +++ b/pkgs/development/libraries/haskell/IfElse/default.nix @@ -0,0 +1,17 @@ +{ cabal, mtl }: + +cabal.mkDerivation (self: { + pname = "IfElse"; + version = "0.85"; + sha256 = "1kfx1bwfjczj93a8yqz1n8snqiq5655qgzwv1lrycry8wb1vzlwa"; + buildDepends = [ mtl ]; + meta = { + description = "Anaphoric and miscellaneous useful control-flow"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + maintainers = [ + self.stdenv.lib.maintainers.andres + self.stdenv.lib.maintainers.simons + ]; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 00217ee68add..31d8ef454b8f 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -911,6 +911,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); hxtUnicode = callPackage ../development/libraries/haskell/hxt-unicode {}; + IfElse = callPackage ../development/libraries/haskell/IfElse {}; + ieee754 = callPackage ../development/libraries/haskell/ieee754 {}; instantGenerics = callPackage ../development/libraries/haskell/instant-generics {}; From d18d66bd5fab748ef661f3be424fdd9cf1377924 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 29 Feb 2012 19:24:47 +0000 Subject: [PATCH 68/71] haskell-filestore: updated to version 0.4.1 svn path=/nixpkgs/trunk/; revision=32708 --- pkgs/development/libraries/haskell/filestore/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/filestore/default.nix b/pkgs/development/libraries/haskell/filestore/default.nix index db4412238437..0abd073c51c0 100644 --- a/pkgs/development/libraries/haskell/filestore/default.nix +++ b/pkgs/development/libraries/haskell/filestore/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "filestore"; - version = "0.4.0.4"; - sha256 = "14rp2689gjnk9pqk2xv4m3q3icgfvbik32c2d6gx4l2y7n78dsbx"; + version = "0.4.1"; + sha256 = "02ki6b4rbmk463qmmqia7igkrsr7h1kxal94k6pikkikylx2f8r7"; buildDepends = [ Diff filepath parsec split time utf8String xml ]; meta = { homepage = "http://johnmacfarlane.net/repos/filestore"; From 49a9e3959349b11fb0887118e1ab5973b6d59e6b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 29 Feb 2012 19:24:49 +0000 Subject: [PATCH 69/71] haskell-gitit: updated to version 0.9 svn path=/nixpkgs/trunk/; revision=32709 --- .../libraries/haskell/gitit/default.nix | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/pkgs/development/libraries/haskell/gitit/default.nix b/pkgs/development/libraries/haskell/gitit/default.nix index 65aab04f9147..b9fc9fa3ae9c 100644 --- a/pkgs/development/libraries/haskell/gitit/default.nix +++ b/pkgs/development/libraries/haskell/gitit/default.nix @@ -1,21 +1,22 @@ -{ cabal, cgi, ConfigFile, feed, filepath, filestore, ghcPaths -, happstackServer, happstackUtil, highlightingKate, hslogger -, HStringTemplate, HTTP, json, mtl, network, pandoc, pandocTypes -, parsec, random, recaptcha, safe, SHA, syb, text, time, url -, utf8String, xhtml, xml, xssSanitize, zlib +{ cabal, blazeHtml, cgi, ConfigFile, feed, filepath, filestore +, ghcPaths, happstackServer, happstackUtil, highlightingKate +, hslogger, HStringTemplate, HTTP, json, mtl, network, pandoc +, pandocTypes, parsec, random, recaptcha, safe, SHA, syb, tagsoup +, text, time, url, utf8String, xhtml, xml, xssSanitize, zlib }: cabal.mkDerivation (self: { pname = "gitit"; - version = "0.8.1"; - sha256 = "1b5i6fm68vwhlvgz0m7xxzklkxc2c6lrqyqfqyjs93p5j0aqgvfn"; + version = "0.9"; + sha256 = "00kjfmczj5m3b8r8djdpad8d27s44z7pf76yyc0sdja1f3bd4mlp"; isLibrary = true; isExecutable = true; buildDepends = [ - cgi ConfigFile feed filepath filestore ghcPaths happstackServer - happstackUtil highlightingKate hslogger HStringTemplate HTTP json - mtl network pandoc pandocTypes parsec random recaptcha safe SHA syb - text time url utf8String xhtml xml xssSanitize zlib + blazeHtml cgi ConfigFile feed filepath filestore ghcPaths + happstackServer happstackUtil highlightingKate hslogger + HStringTemplate HTTP json mtl network pandoc pandocTypes parsec + random recaptcha safe SHA syb tagsoup text time url utf8String + xhtml xml xssSanitize zlib ]; meta = { homepage = "http://gitit.net"; From 41b3f46f788ee4caef2334c5f94924ae9bdeaa06 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 29 Feb 2012 20:38:33 +0000 Subject: [PATCH 70/71] haskell-yesod: updated to version 0.10.1.1 svn path=/nixpkgs/trunk/; revision=32710 --- pkgs/development/libraries/haskell/yesod/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/yesod/default.nix b/pkgs/development/libraries/haskell/yesod/default.nix index 435aa7492bb3..2ab9b5683134 100644 --- a/pkgs/development/libraries/haskell/yesod/default.nix +++ b/pkgs/development/libraries/haskell/yesod/default.nix @@ -7,8 +7,8 @@ cabal.mkDerivation (self: { pname = "yesod"; - version = "0.10.1"; - sha256 = "1m4prrpxdcj7qn755as37kn66f7didparhar520anr9cryn0wfr9"; + version = "0.10.1.1"; + sha256 = "1d64kx0jfk1d1r4k8r57y5wz84pjxs481qdnzgjfv279y467fki6"; isLibrary = true; isExecutable = true; buildDepends = [ From 57b612cb050778c4ded12fe8e45de26b91eeef70 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 29 Feb 2012 22:50:33 +0000 Subject: [PATCH 71/71] vpnc: added patch to fix the 'Error: either "to" is duplicate, or "ipid" is a garbage' bug Further details are at: http://www.rz.uni-konstanz.de/activekb/questions/250/VPNC+unter+Ubuntu+11.10+%22Error%3A+either+%22to%22+is+duplicate%2C+or+%22ipid%22+is+a+garbage.%22 svn path=/nixpkgs/trunk/; revision=32712 --- pkgs/tools/networking/vpnc/default.nix | 2 +- pkgs/tools/networking/vpnc/vpnc-script.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 pkgs/tools/networking/vpnc/vpnc-script.patch diff --git a/pkgs/tools/networking/vpnc/default.nix b/pkgs/tools/networking/vpnc/default.nix index 88ef6bd8e59a..8619cd954090 100644 --- a/pkgs/tools/networking/vpnc/default.nix +++ b/pkgs/tools/networking/vpnc/default.nix @@ -7,7 +7,7 @@ stdenv.mkDerivation rec { sha256 = "1128860lis89g1s21hqxvap2nq426c9j4bvgghncc1zj0ays7kj6"; }; - patches = [ ./makefile.patch ]; + patches = [ ./makefile.patch ./vpnc-script.patch ]; # The `etc/vpnc/vpnc-script' script relies on `which' and on # `ifconfig' as found in net-tools (not GNU Inetutils). diff --git a/pkgs/tools/networking/vpnc/vpnc-script.patch b/pkgs/tools/networking/vpnc/vpnc-script.patch new file mode 100644 index 000000000000..67a86d5d58fa --- /dev/null +++ b/pkgs/tools/networking/vpnc/vpnc-script.patch @@ -0,0 +1,12 @@ +diff -ubr vpnc-0.5.3-orig/vpnc-script.in vpnc-0.5.3/vpnc-script.in +--- vpnc-0.5.3-orig/vpnc-script.in 2012-02-29 23:03:35.289636602 +0100 ++++ vpnc-0.5.3/vpnc-script.in 2012-02-29 23:03:59.597307445 +0100 +@@ -116,7 +116,7 @@ + + if [ -n "$IPROUTE" ]; then + fix_ip_get_output () { +- sed 's/cache//;s/metric \?[0-9]\+ [0-9]\+//g;s/hoplimit [0-9]\+//g' ++ sed 's/cache//;s/metric \?[0-9]\+ [0-9]\+//g;s/hoplimit [0-9]\+//g;s/ipid 0x....//g' + } + + set_vpngateway_route() {