From 5a437c99d6d4c8e456e5ec11bd782b7cd9c3ecc5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 7 Mar 2011 12:37:01 +0000 Subject: [PATCH 01/16] * Valgrind 3.6.1. svn path=/nixpkgs/trunk/; revision=26191 --- pkgs/development/tools/analysis/valgrind/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/analysis/valgrind/default.nix b/pkgs/development/tools/analysis/valgrind/default.nix index 5638e810edf..6b35cbc4e68 100644 --- a/pkgs/development/tools/analysis/valgrind/default.nix +++ b/pkgs/development/tools/analysis/valgrind/default.nix @@ -1,11 +1,11 @@ { stdenv, fetchurl, perl, gdb, autoconf, automake }: stdenv.mkDerivation rec { - name = "valgrind-3.6.0"; + name = "valgrind-3.6.1"; src = fetchurl { url = "http://valgrind.org/downloads/${name}.tar.bz2"; - sha256 = "0pr8h0q909z15g2i2jrcryhqbshair42rylf3mprhyx4nm9h23xw"; + sha256 = "03kaf8q49r347diryc2p1q5hxsd6hyhxikqdbydh8q7hpi7wrga9"; }; # Perl is needed for `cg_annotate'. From d10651a8b72e3b9c1112a9b1add89d72b9902203 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 7 Mar 2011 17:11:50 +0000 Subject: [PATCH 02/16] * zOMG, a new Pan release! * Delete gmime 2.2.x because the old version of Pan was the only package that needed it. svn path=/nixpkgs/trunk/; revision=26200 --- .../networking/newsreaders/pan/default.nix | 22 ++++++++----------- pkgs/development/libraries/gmime/2.2.x.nix | 17 -------------- pkgs/top-level/all-packages.nix | 3 --- 3 files changed, 9 insertions(+), 33 deletions(-) delete mode 100644 pkgs/development/libraries/gmime/2.2.x.nix diff --git a/pkgs/applications/networking/newsreaders/pan/default.nix b/pkgs/applications/networking/newsreaders/pan/default.nix index 299accef4e5..6d03d639e26 100644 --- a/pkgs/applications/networking/newsreaders/pan/default.nix +++ b/pkgs/applications/networking/newsreaders/pan/default.nix @@ -1,29 +1,25 @@ { spellChecking ? true , stdenv, fetchurl, pkgconfig, gtk, gtkspell ? null -, perl, pcre, gmime, gettext +, perl, pcre, gmime, gettext, intltool }: assert spellChecking -> gtkspell != null; +let version = "0.134"; in + stdenv.mkDerivation { - name = "pan-0.133"; + name = "pan-${version}"; src = fetchurl { - url = http://pan.rebelbase.com/download/releases/0.133/source/pan-0.133.tar.bz2; - sha1 = "a0bd98ea1ba174800896611e3305a6b6d8dbde2f"; + url = "http://pan.rebelbase.com/download/releases/${version}/source/pan-${version}.tar.bz2"; + sha1 = "7ef9385e59edf7d511ad3de6c39482297c820685"; }; - patches = - [ # Build on GCC 4.4. - (fetchurl { - url = "http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/net-nntp/pan/files/pan-0.133-gcc44.patch?rev=1.1"; - sha256 = "05xmgvcpl1gjcfab8xsdy400p55j59hp52fwa4qbwlqy3c35qv1v"; - }) - ]; - - buildInputs = [pkgconfig gtk perl pcre gmime gettext] + buildInputs = [ pkgconfig gtk perl gmime gettext intltool ] ++ stdenv.lib.optional spellChecking gtkspell; + enableParallelBuilding = true; + meta = { description = "A GTK+-based Usenet newsreader good at both text and binaries"; homepage = http://pan.rebelbase.com/; diff --git a/pkgs/development/libraries/gmime/2.2.x.nix b/pkgs/development/libraries/gmime/2.2.x.nix deleted file mode 100644 index dc95dd2019d..00000000000 --- a/pkgs/development/libraries/gmime/2.2.x.nix +++ /dev/null @@ -1,17 +0,0 @@ -{ stdenv, fetchurl, pkgconfig, glib, zlib }: - -stdenv.mkDerivation rec { - name = "gmime-2.2.26"; - - src = fetchurl { - url = "mirror://gnome/sources/gmime/2.2/${name}.tar.gz"; - sha256 = "16inhq6symym9n71kxcndjwrxs2xrz63idvy64yc486wlg54aqfc"; - }; - - buildInputs = [ pkgconfig glib zlib ]; - - meta = { - homepage = http://spruce.sourceforge.net/gmime/; - description = "A C/C++ library for manipulating MIME messages"; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 35f0cbf2b00..6873555d2d0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3155,8 +3155,6 @@ let gmime = callPackage ../development/libraries/gmime { }; - gmime_2_2 = callPackage ../development/libraries/gmime/2.2.x.nix { }; - gmm = callPackage ../development/libraries/gmm { }; gmp = @@ -6504,7 +6502,6 @@ let }; pan = callPackage ../applications/networking/newsreaders/pan { - gmime = gmime_2_2; spellChecking = false; }; From d95300f90fd71b094dccf963d717eb25d5637b59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Tue, 8 Mar 2011 09:19:32 +0000 Subject: [PATCH 03/16] Adding cminpack svn path=/nixpkgs/trunk/; revision=26204 --- .../libraries/cminpack/default.nix | 25 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/libraries/cminpack/default.nix diff --git a/pkgs/development/libraries/cminpack/default.nix b/pkgs/development/libraries/cminpack/default.nix new file mode 100644 index 00000000000..8d8951bd752 --- /dev/null +++ b/pkgs/development/libraries/cminpack/default.nix @@ -0,0 +1,25 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "cminpack-1.1.1"; + + src = fetchurl { + url = http://pr.willowgarage.com/downloads/cminpack-1.1.1.tar.gz; + sha256 = "0bi86c9712i68nyv8d52f7wgyb35kik14iwj4rpxcnz91m7wgacp"; + }; + + patchPhase = '' + sed -i s,/usr/local,$out, Makefile + ''; + + preInstall = '' + ensureDir $out/lib $out/include + ''; + + meta = { + homepage = http://www.ros.org/wiki/cminpack; + license = "BSD"; + description = "Software for solving nonlinear equations and nonlinear least squares problems"; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6873555d2d0..8363ad7153f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2881,6 +2881,8 @@ let inherit (gnome) gtk; }; + cminpack = callPackage ../development/libraries/cminpack { }; + coin3d = callPackage ../development/libraries/coin3d { }; commoncpp2 = callPackage ../development/libraries/commoncpp2 { }; From a136bd7968b2ce244239e0950f8fa2abab4b9ca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Tue, 8 Mar 2011 09:19:37 +0000 Subject: [PATCH 04/16] Adding flann svn path=/nixpkgs/trunk/; revision=26205 --- pkgs/development/libraries/flann/default.nix | 18 ++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 pkgs/development/libraries/flann/default.nix diff --git a/pkgs/development/libraries/flann/default.nix b/pkgs/development/libraries/flann/default.nix new file mode 100644 index 00000000000..eaf4ed8836e --- /dev/null +++ b/pkgs/development/libraries/flann/default.nix @@ -0,0 +1,18 @@ +{stdenv, fetchurl, unzip, cmake, python}: + +stdenv.mkDerivation { + name = "flann-1.6.8"; + + src = fetchurl { + url = http://people.cs.ubc.ca/~mariusm/uploads/FLANN/flann-1.6.8-src.zip; + sha256 = "0ag9k821jy0983gjrfsjnqkl5axklcih0qkpfy72h3643nin0f50"; + }; + + buildInputs = [ unzip cmake python ]; + + meta = { + homepage = http://people.cs.ubc.ca/~mariusm/flann/; + license = "BSD"; + description = "Fast approximate nearest neighbor searches in high dimensional spaces"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8363ad7153f..76eae51572f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2984,6 +2984,8 @@ let singlePrecision = true; }; + flann = callPackage ../development/libraries/flann { }; + fltk11 = callPackage ../development/libraries/fltk/fltk11.nix { }; fltk20 = callPackage ../development/libraries/fltk { }; From dd190a5fb86b33aaa73199fec9f8e4db2218e018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Tue, 8 Mar 2011 09:19:41 +0000 Subject: [PATCH 05/16] Updating cminpack (+ the meta homepage) svn path=/nixpkgs/trunk/; revision=26206 --- pkgs/development/libraries/cminpack/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/cminpack/default.nix b/pkgs/development/libraries/cminpack/default.nix index 8d8951bd752..f070f2dfaef 100644 --- a/pkgs/development/libraries/cminpack/default.nix +++ b/pkgs/development/libraries/cminpack/default.nix @@ -1,11 +1,11 @@ {stdenv, fetchurl}: stdenv.mkDerivation { - name = "cminpack-1.1.1"; + name = "cminpack-1.1.2"; src = fetchurl { - url = http://pr.willowgarage.com/downloads/cminpack-1.1.1.tar.gz; - sha256 = "0bi86c9712i68nyv8d52f7wgyb35kik14iwj4rpxcnz91m7wgacp"; + url = http://devernay.free.fr/hacks/cminpack/cminpack-1.1.2.tar.gz; + sha256 = "0sd8gqk7npyiiiz2jym8q89d9gqx8fig0mnx63swkwmp4lqmmxww"; }; patchPhase = '' @@ -17,7 +17,7 @@ stdenv.mkDerivation { ''; meta = { - homepage = http://www.ros.org/wiki/cminpack; + homepage = http://devernay.free.fr/hacks/cminpack/cminpack.html; license = "BSD"; description = "Software for solving nonlinear equations and nonlinear least squares problems"; }; From 134c00b471ea7227f7d4d1e78f849215689b6d16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Tue, 8 Mar 2011 14:07:11 +0000 Subject: [PATCH 06/16] Fixing the build of awesome with cmake 2.8.4. svn path=/nixpkgs/trunk/; revision=26207 --- .../window-managers/awesome/cmake284.patch | 40 +++++++++++++++++++ .../window-managers/awesome/default.nix | 6 ++- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 pkgs/applications/window-managers/awesome/cmake284.patch diff --git a/pkgs/applications/window-managers/awesome/cmake284.patch b/pkgs/applications/window-managers/awesome/cmake284.patch new file mode 100644 index 00000000000..4af70227805 --- /dev/null +++ b/pkgs/applications/window-managers/awesome/cmake284.patch @@ -0,0 +1,40 @@ +From 1aedd853fcaeeafadd24512f84e6e269f5db0b4e Mon Sep 17 00:00:00 2001 +From: Thomas Moschny +Date: Mon, 21 Feb 2011 17:58:04 +0100 +Subject: [PATCH] Normalize icon path names (fixes #869). + +The elements in ${icon_sources}, as returned by file(GLOB ...) contain +double slashes, could be a bug in cmake. This causes building with +cmake 2.8.4 to fail, due to dependency problems lateron. + +This patch works around the issue by normalizing all path names in +${icon_sources} while appending them to ${ALL_ICONS}, thereby removing +the double slashes. +--- + CMakeLists.txt | 3 ++- + 1 files changed, 2 insertions(+), 1 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 64be9b9..472bec2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -244,14 +244,15 @@ endif() + + # {{{ Theme icons + file(GLOB icon_sources RELATIVE ${SOURCE_DIR} ${SOURCE_DIR}/themes/*/titlebar/*.png) +-set(ALL_ICONS ${icon_sources}) + + foreach(icon ${icon_sources}) + # Copy all icons to the build dir to simplify the following code. + # Source paths are interpreted relative to ${SOURCE_DIR}, target paths + # relative to ${BUILD_DIR}. + get_filename_component(icon_path ${icon} PATH) ++ get_filename_component(icon_name ${icon} NAME) + file(COPY ${icon} DESTINATION ${icon_path}) ++ set(ALL_ICONS ${ALL_ICONS} "${icon_path}/${icon_name}") + endforeach() + + macro(a_icon_convert match replacement input) +-- +1.7.3.4 + diff --git a/pkgs/applications/window-managers/awesome/default.nix b/pkgs/applications/window-managers/awesome/default.nix index 6b35f6afa13..b94b350a848 100644 --- a/pkgs/applications/window-managers/awesome/default.nix +++ b/pkgs/applications/window-managers/awesome/default.nix @@ -22,13 +22,15 @@ stdenv.mkDerivation rec { # We use coreutils for 'env', that will allow then finding 'bash' or 'zsh' in # the awesome lua code. I prefered that instead of adding 'bash' or 'zsh' as # dependencies. - patchPhase = '' + prePatch = '' # Fix the tab completion (supporting bash or zsh) sed s,/usr/bin/env,${coreutils}/bin/env, -i lib/awful/completion.lua.in # Remove the 'root' PATH override (I don't know why they have that) sed /WHOAMI/d -i utils/awsetbg ''; + patches = [ ./cmake284.patch ]; + # Somehow libev does not get into the rpath, although it should. # Something may be wrong in the gcc wrapper. preBuild = '' @@ -42,5 +44,7 @@ stdenv.mkDerivation rec { homepage = http://awesome.naquadah.org/; description = "Highly configurable, dynamic window manager for X"; license = "GPLv2+"; + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; }; } From 117c51cf2a33e65d471f024f7b029813d9710987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 8 Mar 2011 15:01:18 +0000 Subject: [PATCH 07/16] Hydra: Update from SVN. svn path=/nixpkgs/trunk/; revision=26209 --- pkgs/development/tools/misc/hydra/default.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pkgs/development/tools/misc/hydra/default.nix b/pkgs/development/tools/misc/hydra/default.nix index 72654414b23..efaf564d234 100644 --- a/pkgs/development/tools/misc/hydra/default.nix +++ b/pkgs/development/tools/misc/hydra/default.nix @@ -34,10 +34,10 @@ in stdenv.mkDerivation rec { name = "hydra-${version}"; - version = "0.1pre25566"; + version = "0.1pre26202"; src = fetchurl { - url = http://hydra.nixos.org/build/858318/download/1/hydra-0.1pre25566.tar.gz; - sha256 = "6b2dc48d609a69dec117debbd185d71bfb092bc7078f8ca59e29aaf3c9591ca7"; + url = http://hydra.nixos.org/build/956221/download/2/hydra-0.1pre26202.tar.gz; + sha256 = "0v727al406akn9n9ys5kl77kagr5l8yq9zi4nnn9nrcii8pavb99"; }; configureFlags = "--with-nix=${nix}"; @@ -50,7 +50,7 @@ stdenv.mkDerivation rec { rpm dpkg cdrkit])); postInstall = '' - for i in $out/bin/*; do + for i in "$out/bin/"*; do wrapProgram $i \ --prefix PERL5LIB ':' $out/libexec/hydra/lib:$PERL5LIB \ --prefix PATH ':' $out/bin:$hydraPath \ @@ -58,10 +58,12 @@ stdenv.mkDerivation rec { --set HYDRA_HOME $out/libexec/hydra \ --set NIX_RELEASE ${nix.name} done - ''; # */ + ''; meta = { + description = "Hydra, the Nix-based continuous integration system"; + homepage = http://nixos.org/hydra/; + license = "GPLv3+"; platforms = stdenv.lib.platforms.linux; - }; + }; } - From 499b5ca40ab9d31e35a223c70fc7f17d4ce0a203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 8 Mar 2011 23:26:35 +0000 Subject: [PATCH 08/16] GNU GRUB 1.99~rc1. svn path=/nixpkgs/trunk/; revision=26215 --- pkgs/tools/misc/grub/1.9x.nix | 21 ++++---------- .../misc/grub/device-mapper-symlinks.patch | 28 ------------------- 2 files changed, 6 insertions(+), 43 deletions(-) delete mode 100644 pkgs/tools/misc/grub/device-mapper-symlinks.patch diff --git a/pkgs/tools/misc/grub/1.9x.nix b/pkgs/tools/misc/grub/1.9x.nix index 25d56c28511..2fbbf4d2d9a 100644 --- a/pkgs/tools/misc/grub/1.9x.nix +++ b/pkgs/tools/misc/grub/1.9x.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, bison, gettext, ncurses, libusb, freetype, qemu }: +{ fetchurl, stdenv, flex, bison, gettext, ncurses, libusb, freetype, qemu }: let unifont_bdf = fetchurl { url = "http://unifoundry.com/unifont-5.1.20080820.bdf.gz"; @@ -7,14 +7,15 @@ let unifont_bdf = fetchurl { in stdenv.mkDerivation rec { - name = "grub-1.98"; + name = "grub-1.99rc1"; src = fetchurl { - url = "ftp://alpha.gnu.org/gnu/grub/${name}.tar.gz"; - sha256 = "05660x82y2rwrzm0d1c4z07fbh02qwmacsmbbav6fa855s4w3wmy"; + url = "ftp://alpha.gnu.org/gnu/grub/grub-1.99~rc1.tar.gz"; + sha256 = "0llxycgrs5h9n2mlgmkkg1mr2fv1rzmlw4mqb3v9hcaydkx3wczh"; + name = "${name}.tar.gz"; }; - buildInputs = [ bison ncurses libusb freetype gettext ] + buildInputs = [ flex bison ncurses libusb freetype gettext ] ++ stdenv.lib.optional doCheck qemu; preConfigure = @@ -36,16 +37,6 @@ stdenv.mkDerivation rec { -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" \ diff --git a/pkgs/tools/misc/grub/device-mapper-symlinks.patch b/pkgs/tools/misc/grub/device-mapper-symlinks.patch deleted file mode 100644 index 0a21a51de79..00000000000 --- a/pkgs/tools/misc/grub/device-mapper-symlinks.patch +++ /dev/null @@ -1,28 +0,0 @@ -Only in grub-1.97.1-orig/: grub-1.97.1 -diff -rc -x '*~' grub-1.97.1-orig/util/getroot.c grub-1.97.1/util/getroot.c -*** grub-1.97.1-orig/util/getroot.c 2009-11-09 16:48:16.000000000 +0100 ---- grub-1.97.1/util/getroot.c 2010-01-08 00:26:12.000000000 +0100 -*************** -*** 217,224 **** - continue; - - if (S_ISLNK (st.st_mode)) -! /* Don't follow symbolic links. */ -! continue; - - if (S_ISDIR (st.st_mode)) - { ---- 217,229 ---- - continue; - - if (S_ISLNK (st.st_mode)) -! { -! if (strcmp(dir, "mapper") != 0) -! /* Don't follow symbolic links. */ -! continue; -! if (stat (ent->d_name, &st) < 0) -! continue; -! } - - if (S_ISDIR (st.st_mode)) - { From 6e69b4dbd079a22ef19f17213a9c537fa4c45181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 8 Mar 2011 23:26:41 +0000 Subject: [PATCH 09/16] GNU GRUB 1.9 for UEFI. Based on a patch by Shea Levy . svn path=/nixpkgs/trunk/; revision=26216 --- pkgs/tools/misc/grub/1.9x.nix | 18 +++++++++++++++--- pkgs/top-level/all-packages.nix | 1 + 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/grub/1.9x.nix b/pkgs/tools/misc/grub/1.9x.nix index 2fbbf4d2d9a..e917e620bb4 100644 --- a/pkgs/tools/misc/grub/1.9x.nix +++ b/pkgs/tools/misc/grub/1.9x.nix @@ -1,13 +1,17 @@ -{ fetchurl, stdenv, flex, bison, gettext, ncurses, libusb, freetype, qemu }: +{ fetchurl, stdenv, flex, bison, gettext, ncurses, libusb, freetype, qemu +, EFIsupport ? false }: -let unifont_bdf = fetchurl { +let + prefix = "grub${if EFIsupport then "-efi" else ""}"; + version = "1.99rc1"; + unifont_bdf = fetchurl { url = "http://unifoundry.com/unifont-5.1.20080820.bdf.gz"; sha256 = "0s0qfff6n6282q28nwwblp5x295zd6n71kl43xj40vgvdqxv0fxx"; }; in stdenv.mkDerivation rec { - name = "grub-1.99rc1"; + name = "${prefix}-${version}"; src = fetchurl { url = "ftp://alpha.gnu.org/gnu/grub/grub-1.99~rc1.tar.gz"; @@ -43,6 +47,14 @@ stdenv.mkDerivation rec { -e "s|/usr/src/unifont.bdf|$PWD/unifont.bdf|g" ''; + configureFlags = + let arch = if stdenv.system == "i686-linux" then "i386" + else if stdenv.system == "x86_64-linux" then "x86_64" + else abort "unsupported EFI firmware architecture"; + in + stdenv.lib.optionals EFIsupport + [ "--with-platform=efi" "--target=${arch}" "--program-prefix=" ]; + doCheck = false; meta = { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 76eae51572f..0ca43b8dcb5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -747,6 +747,7 @@ let }; grub2 = callPackage ../tools/misc/grub/1.9x.nix { }; + grub2_efi = callPackage ../tools/misc/grub/1.9x.nix { EFIsupport = true; }; gssdp = callPackage ../development/libraries/gssdp { inherit (gnome) libsoup; From 92db39f5867d049becbc2fa31aa253bc8dd9be67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andres=20L=C3=B6h?= Date: Wed, 9 Mar 2011 08:29:12 +0000 Subject: [PATCH 10/16] Added ghc-7.0.2. This is supposed to become the new default version of GHC once the new Haskell Platform is released (but only then). svn path=/nixpkgs/trunk/; revision=26217 --- pkgs/development/compilers/ghc/7.0.2.nix | 45 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 5 +++ 2 files changed, 50 insertions(+) create mode 100644 pkgs/development/compilers/ghc/7.0.2.nix diff --git a/pkgs/development/compilers/ghc/7.0.2.nix b/pkgs/development/compilers/ghc/7.0.2.nix new file mode 100644 index 00000000000..6dc061cd8c1 --- /dev/null +++ b/pkgs/development/compilers/ghc/7.0.2.nix @@ -0,0 +1,45 @@ +{stdenv, fetchurl, ghc, perl, gmp, ncurses}: + +stdenv.mkDerivation rec { + version = "7.0.2"; + + name = "ghc-${version}"; + + # TODO: Does this have to be here, or can it go to meta? + homepage = "http://haskell.org/ghc"; + + src = fetchurl { + url = "http://haskell.org/ghc/dist/${version}/${name}-src.tar.bz2"; + sha256 = "f0551f1af2f008a8a14a888b70c0557e00dd04f9ae309ac91897306cd04a6668"; + }; + + buildInputs = [ghc perl gmp ncurses]; + + buildMK = '' + libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib" + libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp}/include" + ''; + + preConfigure = '' + echo "${buildMK}" > mk/build.mk + ''; + + configureFlags=[ + "--with-gcc=${stdenv.gcc}/bin/gcc" + ]; + + # required, because otherwise all symbols from HSffi.o are stripped, and + # that in turn causes GHCi to abort + stripDebugFlags=["-S" "--keep-file-symbols"]; + + meta = { + inherit homepage; + description = "The Glasgow Haskell Compiler"; + maintainers = [ + stdenv.lib.maintainers.marcweber + stdenv.lib.maintainers.andres + ]; + platforms = stdenv.lib.platforms.linux; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0ca43b8dcb5..4cae65fd7ab 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1980,9 +1980,14 @@ let haskellPackages_ghc6123 = haskellPackagesFun ../development/compilers/ghc/6.12.3.nix false (x : x); + # Will never make it into a platform release, severe bugs; leave at lowPrio. haskellPackages_ghc701 = haskellPackagesFun ../development/compilers/ghc/7.0.1.nix false lowPrio; + # Will hopefully become new default once Haskell Platform 2011 is released. + haskellPackages_ghc702 = + haskellPackagesFun ../development/compilers/ghc/7.0.2.nix false lowPrio; + haskellPackages_ghcHEAD = haskellPackagesFun ../development/compilers/ghc/head.nix false lowPrio; From 9c416145b501e00151d7cfd56d1125b06cfeef53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andres=20L=C3=B6h?= Date: Wed, 9 Mar 2011 08:50:50 +0000 Subject: [PATCH 11/16] Changed ghc versions in release.nix. svn path=/nixpkgs/trunk/; revision=26218 --- pkgs/top-level/release.nix | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/pkgs/top-level/release.nix b/pkgs/top-level/release.nix index dfd21ae572a..57bd22e59f8 100644 --- a/pkgs/top-level/release.nix +++ b/pkgs/top-level/release.nix @@ -398,14 +398,6 @@ with (import ./release-lib.nix); gtk = linux; }; - haskellPackages_ghc6102 = { - ghc = ghcSupported; - }; - - haskellPackages_ghc6103 = { - ghc = ghcSupported; - }; - haskellPackages_ghc6104 = { ghc = ghcSupported; gtk2hs = linux; @@ -419,12 +411,6 @@ with (import ./release-lib.nix); haskellPlatform_2010_1_0_0 = ghcSupported; }; - haskellPackages_ghc6122 = { - darcs = ghcSupported; - ghc = ghcSupported; - haskellPlatform_2010_1_0_0 = ghcSupported; - }; - haskellPackages_ghc6123 = { darcs = ghcSupported; ghc = ghcSupported; @@ -440,6 +426,10 @@ with (import ./release-lib.nix); ghc = ghcSupported; }; + haskellPackages_ghc702 = { + ghc = ghcSupported; + }; + kde3 = { kdebase = linux; kdelibs = linux; From 430228c30f948164c9db09c7c45927d41d8afb9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 9 Mar 2011 10:30:56 +0000 Subject: [PATCH 12/16] GRUB-EFI: Use `throw' instead of `abort'. svn path=/nixpkgs/trunk/; revision=26219 --- pkgs/tools/misc/grub/1.9x.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/misc/grub/1.9x.nix b/pkgs/tools/misc/grub/1.9x.nix index e917e620bb4..041f4f8fedc 100644 --- a/pkgs/tools/misc/grub/1.9x.nix +++ b/pkgs/tools/misc/grub/1.9x.nix @@ -50,7 +50,7 @@ stdenv.mkDerivation rec { configureFlags = let arch = if stdenv.system == "i686-linux" then "i386" else if stdenv.system == "x86_64-linux" then "x86_64" - else abort "unsupported EFI firmware architecture"; + else throw "unsupported EFI firmware architecture"; in stdenv.lib.optionals EFIsupport [ "--with-platform=efi" "--target=${arch}" "--program-prefix=" ]; From 39828662e9a548c27ce044916f4c3e737f47bf4b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 9 Mar 2011 12:04:45 +0000 Subject: [PATCH 13/16] * Linux 2.6.32.32. svn path=/nixpkgs/trunk/; revision=26225 --- pkgs/os-specific/linux/kernel/linux-2.6.32.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/linux-2.6.32.nix b/pkgs/os-specific/linux/kernel/linux-2.6.32.nix index fae560cd478..0fb88c6ca0c 100644 --- a/pkgs/os-specific/linux/kernel/linux-2.6.32.nix +++ b/pkgs/os-specific/linux/kernel/linux-2.6.32.nix @@ -198,11 +198,11 @@ in import ./generic.nix ( rec { - version = "2.6.32.31"; + version = "2.6.32.32"; src = fetchurl { url = "mirror://kernel/linux/kernel/v2.6/longterm/v2.6.32/linux-${version}.tar.bz2"; - sha256 = "1fr0by6aqv9vxglll85kbwjwfj2j6inbikybij3mg70sadq09idh"; + sha256 = "0mrs135d660zwg3a04p9z6lm0znxxjm8waz7gxlghrn5h49rfqpl"; }; config = configWithPlatform stdenv.platform; From 19d1236a5235892fc7f1b0af60bda33cc374d7fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 9 Mar 2011 13:37:03 +0000 Subject: [PATCH 14/16] Updating feh svn path=/nixpkgs/trunk/; revision=26229 --- pkgs/applications/graphics/feh/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/graphics/feh/default.nix b/pkgs/applications/graphics/feh/default.nix index e9d86aca52d..19fc8d8b366 100644 --- a/pkgs/applications/graphics/feh/default.nix +++ b/pkgs/applications/graphics/feh/default.nix @@ -2,11 +2,11 @@ , libXinerama }: stdenv.mkDerivation { - name = "feh-1.6.1"; + name = "feh-1.11.2"; src = fetchurl { - url = http://www.chaosdorf.de/~derf/feh/feh-1.6.1.tar.bz2; - sha256 = "1mv09b34ar0dx4wl22xak2g554xgpylicqy5zbnk3bh66vn9pxz2"; + url = http://www.chaosdorf.de/~derf/feh/feh-1.11.1.tar.bz2; + sha256 = "1rxi0hjp8w1rga48qvq3sgsbsgs4d5q1sq59ld1f7rih1knm2v45"; }; buildInputs = [x11 imlib2 giblib libjpeg libpng libXinerama]; From f5eba6cc5d59b41b085eed2bd3efe6cc32602164 Mon Sep 17 00:00:00 2001 From: Karn Kallio Date: Wed, 9 Mar 2011 18:58:09 +0000 Subject: [PATCH 15/16] Fix grub error "cp cannot stat .... unicode.pf2 -- change postPatch hook to prePatch (postPatch is not run with empty patchset) -- make the share/grub directory and copy unicode.pf2 there svn path=/nixpkgs/trunk/; revision=26239 --- pkgs/tools/misc/grub/1.9x.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/grub/1.9x.nix b/pkgs/tools/misc/grub/1.9x.nix index 041f4f8fedc..fdaf943653b 100644 --- a/pkgs/tools/misc/grub/1.9x.nix +++ b/pkgs/tools/misc/grub/1.9x.nix @@ -41,12 +41,17 @@ stdenv.mkDerivation rec { -e's/qemu-system-i386/qemu-system-x86_64 -nodefaults/g' ''; - postPatch = + prePatch = '' gunzip < "${unifont_bdf}" > "unifont.bdf" sed -i "configure" \ -e "s|/usr/src/unifont.bdf|$PWD/unifont.bdf|g" ''; + postInstall = '' + ensureDir ./share/grub + cp ./unicode.pf2 ./share/grub/ + ''; + configureFlags = let arch = if stdenv.system == "i686-linux" then "i386" else if stdenv.system == "x86_64-linux" then "x86_64" From 400a5b054a6aa61008c2c2876b294eaef6e4e241 Mon Sep 17 00:00:00 2001 From: Karn Kallio Date: Wed, 9 Mar 2011 19:41:51 +0000 Subject: [PATCH 16/16] Remove unnecessary postInstall added to grub expression in r26239, as pointed out by Shea Levy. svn path=/nixpkgs/trunk/; revision=26240 --- pkgs/tools/misc/grub/1.9x.nix | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkgs/tools/misc/grub/1.9x.nix b/pkgs/tools/misc/grub/1.9x.nix index fdaf943653b..ffcc1cc4d4f 100644 --- a/pkgs/tools/misc/grub/1.9x.nix +++ b/pkgs/tools/misc/grub/1.9x.nix @@ -47,11 +47,6 @@ stdenv.mkDerivation rec { -e "s|/usr/src/unifont.bdf|$PWD/unifont.bdf|g" ''; - postInstall = '' - ensureDir ./share/grub - cp ./unicode.pf2 ./share/grub/ - ''; - configureFlags = let arch = if stdenv.system == "i686-linux" then "i386" else if stdenv.system == "x86_64-linux" then "x86_64"