From 26bcec389713d5fb756f687250ad02fdd8e3a3aa Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 27 Jan 2012 13:39:47 +0000 Subject: [PATCH 001/179] * Bump nixUnstable. svn path=/nixpkgs/trunk/; revision=31880 --- pkgs/tools/package-management/nix/unstable.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/package-management/nix/unstable.nix b/pkgs/tools/package-management/nix/unstable.nix index de17381fec9d..175ae0693820 100644 --- a/pkgs/tools/package-management/nix/unstable.nix +++ b/pkgs/tools/package-management/nix/unstable.nix @@ -5,11 +5,11 @@ }: stdenv.mkDerivation rec { - name = "nix-1.0pre31729"; + name = "nix-1.0pre31851"; src = fetchurl { - url = "http://hydra.nixos.org/build/1867511/download/4/${name}.tar.bz2"; - sha256 = "c2e33d5837a686c42deaab1cfcf8ec0e13b0c841d936086d773a2415e4141d2d"; + url = "http://hydra.nixos.org/build/1937677/download/4/${name}.tar.bz2"; + sha256 = "36f07b6b701da74f07d8c8cc43044306e570b6837555ad523701d86e5f567568"; }; buildNativeInputs = [ perl pkgconfig ]; From 41445f89c326b03d6e302168fe5616dddf089621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 27 Jan 2012 14:40:58 +0000 Subject: [PATCH 002/179] TeXLive/ModernCV: Fix source hash. svn path=/nixpkgs/trunk/; revision=31881 --- pkgs/misc/tex/texlive/moderncv.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/misc/tex/texlive/moderncv.nix b/pkgs/misc/tex/texlive/moderncv.nix index 6d5de0764e3f..9e3f68f36b10 100644 --- a/pkgs/misc/tex/texlive/moderncv.nix +++ b/pkgs/misc/tex/texlive/moderncv.nix @@ -3,7 +3,7 @@ rec { name = "moderncv-2012.01.16"; src = fetchurl { url = "http://mirror.ctan.org/macros/latex/contrib/moderncv.zip"; - sha256 = "a9d2de7fc03c35c4084915b2788c8d7acfb695f9e27f6cd81427a7dd1a64cb54"; + sha256 = "1sfpj76p0z128rvxw0svh7dfrvf3zhmi3v7bkzfkll4byij34ni0"; }; buildInputs = [texLive unzip]; From 29ca4d272fbec01d97532ee76304760c448e2ed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Fri, 27 Jan 2012 15:11:17 +0000 Subject: [PATCH 003/179] Updating gdb. I did not update the 'bleeding edge' thing though. That should be better named to "one git checkout" instead of bleeding edge. svn path=/nixpkgs/trunk/; revision=31883 --- pkgs/applications/office/openoffice/libreoffice.nix | 2 +- pkgs/development/tools/misc/gdb/default.nix | 6 ++++-- pkgs/top-level/all-packages.nix | 2 -- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/office/openoffice/libreoffice.nix b/pkgs/applications/office/openoffice/libreoffice.nix index 5fde0cfa2850..10d0c3dbaf45 100644 --- a/pkgs/applications/office/openoffice/libreoffice.nix +++ b/pkgs/applications/office/openoffice/libreoffice.nix @@ -8,7 +8,7 @@ , langs ? [ "en-US" "ca" "ru" "eo" "fr" "nl" "de" "en-GB" ] }: -throw "The expression for libreoffice is still not ready" +# throw "The expression for libreoffice is still not ready" stdenv.mkDerivation rec { name = "libreoffice-3.4.5.2"; diff --git a/pkgs/development/tools/misc/gdb/default.nix b/pkgs/development/tools/misc/gdb/default.nix index cd2eb6cc02da..e9c424ccf11a 100644 --- a/pkgs/development/tools/misc/gdb/default.nix +++ b/pkgs/development/tools/misc/gdb/default.nix @@ -14,7 +14,7 @@ let basename = if bleedingEdgeVersion then "gdb-7.3.20110726" - else "gdb-7.3.1"; + else "gdb-7.4"; # Whether (cross-)building for GNU/Hurd. This is an approximation since # having `stdenv ? cross' doesn't tell us if we're building `hostDrv' and @@ -40,7 +40,7 @@ stdenv.mkDerivation rec { url = "mirror://gnu/gdb/${basename}.tar.bz2"; # md5 is provided by the annoucement page # http://www.gnu.org/s/gdb/download/ANNOUNCEMENT - md5 = "b89a5fac359c618dda97b88645ceab47"; + md5 = "95a9a8305fed4d30a30a6dc28ff9d060"; }; # I think python is not a native input, but I leave it @@ -75,6 +75,8 @@ stdenv.mkDerivation rec { rm -v $out/share/info/{standards,configure,bfd}.info ''; + enableParallelBuilding = true; + # TODO: Investigate & fix the test failures. doCheck = false; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d40609fee4a2..413256665542 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3154,13 +3154,11 @@ let uisp = callPackage ../development/tools/misc/uisp { }; gdb = callPackage ../development/tools/misc/gdb { - readline = readline5; hurd = gnu.hurdCross; inherit (gnu) mig; }; gdbCross = callPackage ../development/tools/misc/gdb { - readline = readline5; target = crossSystem; }; From 3c5fee52438885032b56c50708b1b09dec6b62c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Fri, 27 Jan 2012 15:14:29 +0000 Subject: [PATCH 004/179] I revert the previous change to libreoffice. svn path=/nixpkgs/trunk/; revision=31885 --- pkgs/applications/office/openoffice/libreoffice.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/office/openoffice/libreoffice.nix b/pkgs/applications/office/openoffice/libreoffice.nix index 10d0c3dbaf45..5fde0cfa2850 100644 --- a/pkgs/applications/office/openoffice/libreoffice.nix +++ b/pkgs/applications/office/openoffice/libreoffice.nix @@ -8,7 +8,7 @@ , langs ? [ "en-US" "ca" "ru" "eo" "fr" "nl" "de" "en-GB" ] }: -# throw "The expression for libreoffice is still not ready" +throw "The expression for libreoffice is still not ready" stdenv.mkDerivation rec { name = "libreoffice-3.4.5.2"; From afc0aea6d16a1012d17094c346f4cf81db08587c Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Fri, 27 Jan 2012 16:31:54 +0000 Subject: [PATCH 005/179] kalzium: patch pushed upstream svn path=/nixpkgs/trunk/; revision=31886 --- .../kdeedu/kalzium-find-libfacile.patch | 88 ------------------- pkgs/desktops/kde-4.8/kdeedu/kalzium.nix | 2 - 2 files changed, 90 deletions(-) delete mode 100644 pkgs/desktops/kde-4.8/kdeedu/kalzium-find-libfacile.patch diff --git a/pkgs/desktops/kde-4.8/kdeedu/kalzium-find-libfacile.patch b/pkgs/desktops/kde-4.8/kdeedu/kalzium-find-libfacile.patch deleted file mode 100644 index 0324ee74eabe..000000000000 --- a/pkgs/desktops/kde-4.8/kdeedu/kalzium-find-libfacile.patch +++ /dev/null @@ -1,88 +0,0 @@ -diff --git a/cmake/modules/FindLibfacile.cmake b/cmake/modules/FindLibfacile.cmake -index bef726e..043c65f 100644 ---- a/cmake/modules/FindLibfacile.cmake -+++ b/cmake/modules/FindLibfacile.cmake -@@ -4,7 +4,6 @@ - # LIBFACILE_FOUND - system has Libfacile - # LIBFACILE_INCLUDE_DIR - the Libfacile include directory - # LIBFACILE_LIBRARIES - Link these to use Libfacile --# LIBFACILE_DEFINITIONS - Compiler switches required for using Libfacile - # - # Copyright (c) 2006, Carsten Niehaus, - # Copyright (c) 2006, Montel Laurent, -@@ -14,35 +13,20 @@ - - find_package(OCaml) - --set(LIBFACILE_FOUND FALSE) -- - if( OCAML_FOUND ) -- find_file(LIBFACILE_LIBRARIES NAMES facile.a -- PATHS -- ${OCAMLC_DIR}/facile/ -+ find_library(LIBFACILE_LIBRARIES NAMES facile.a -+ HINTS ${OCAMLC_DIR} -+ PATH_SUFFIXES facile ocaml/facile - ) -- #message(STATUS "LIBFACILE_LIBRARIES :<${LIBFACILE_LIBRARIES}>") -- find_path(LIBFACILE_INCLUDE_DIR NAMES facile.a -- PATHS -- ${OCAMLC_DIR}/ -- PATH_SUFFIXES facile -+ find_path(LIBFACILE_INCLUDE_DIR NAMES facile.cmi -+ HINTS ${OCAMLC_DIR} -+ PATH_SUFFIXES facile lib/ocaml/facile - ) -- #message(STATUS "LIBFACILE_INCLUDE_DIR <${LIBFACILE_INCLUDE_DIR}>") -- if(LIBFACILE_INCLUDE_DIR AND LIBFACILE_LIBRARIES) -- set(LIBFACILE_FOUND TRUE) -- endif(LIBFACILE_INCLUDE_DIR AND LIBFACILE_LIBRARIES) - endif(OCAML_FOUND) - -- --if(LIBFACILE_FOUND) -- if(NOT Libfacile_FIND_QUIETLY) -- message(STATUS "Found Libfacile: ${LIBFACILE_LIBRARIES}") -- endif(NOT Libfacile_FIND_QUIETLY) --else(LIBFACILE_FOUND) -- if(Libfacile_FIND_REQUIRED) -- message(FATAL_ERROR "Could not find Libfacile") -- endif(Libfacile_FIND_REQUIRED) --endif(LIBFACILE_FOUND) -+include(FindPackageHandleStandardArgs) -+find_package_handle_standard_args(Libfacile DEFAULT_MSG LIBFACILE_INCLUDE_DIR -+ LIBFACILE_LIBRARIES OCAML_FOUND) - - # show the LIBFACILE_INCLUDE_DIR and LIBFACILE_LIBRARIES variables only in the advanced view - mark_as_advanced(LIBFACILE_INCLUDE_DIR LIBFACILE_LIBRARIES ) -diff --git a/src/CMakeOCamlInstructions.cmake b/src/CMakeOCamlInstructions.cmake -index 40b6755..de89253 100644 ---- a/src/CMakeOCamlInstructions.cmake -+++ b/src/CMakeOCamlInstructions.cmake -@@ -2,7 +2,7 @@ link_directories (${OCAMLC_DIR}) - - macro(OCAML_MLI_TO_CMI _cmi _mli) - add_custom_command(OUTPUT ${_cmi} -- COMMAND ${OCAML_OCAMLC_EXECUTABLE} ARGS -o ${_cmi} -I +facile -c ${_mli} -+ COMMAND ${OCAML_OCAMLC_EXECUTABLE} ARGS -o ${_cmi} -I ${LIBFACILE_INCLUDE_DIR} -c ${_mli} - DEPENDS ${_mli} ${ARGN} - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) - set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${_cmi}) -@@ -10,7 +10,7 @@ endmacro(OCAML_MLI_TO_CMI) - - macro(OCAML_ML_TO_CMX _cmx _ml) - add_custom_command(OUTPUT ${_cmx} -- COMMAND ${OCAML_OCAMLOPT_EXECUTABLE} ARGS -o ${_cmx} -I +facile -c ${_ml} -+ COMMAND ${OCAML_OCAMLOPT_EXECUTABLE} ARGS -o ${_cmx} -I ${LIBFACILE_INCLUDE_DIR} -c ${_ml} - DEPENDS ${_ml} ${ARGN} - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) - set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${_cmx}) -@@ -58,7 +58,7 @@ ocaml_ml_to_cmx(${CMAKE_CURRENT_BINARY_DIR}/lexer.cmx ${CMAKE_CURRENT_SOURCE_DIR - # object files - - add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/modwrap.o -- COMMAND ${OCAML_OCAMLOPT_EXECUTABLE} -I +facile -c ${CMAKE_CURRENT_SOURCE_DIR}/solver/modwrap.c -o ${CMAKE_CURRENT_BINARY_DIR}/modwrap.o -+ COMMAND ${OCAML_OCAMLOPT_EXECUTABLE} -I ${LIBFACILE_INCLUDE_DIR} -c ${CMAKE_CURRENT_SOURCE_DIR}/solver/modwrap.c -o ${CMAKE_CURRENT_BINARY_DIR}/modwrap.o - DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/solver/modwrap.c ${CMAKE_CURRENT_BINARY_DIR}/solver.o - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) - set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${CMAKE_CURRENT_BINARY_DIR}/modwrap.o) diff --git a/pkgs/desktops/kde-4.8/kdeedu/kalzium.nix b/pkgs/desktops/kde-4.8/kdeedu/kalzium.nix index 298aba06c8ef..69ab5dfc4736 100644 --- a/pkgs/desktops/kde-4.8/kdeedu/kalzium.nix +++ b/pkgs/desktops/kde-4.8/kdeedu/kalzium.nix @@ -2,8 +2,6 @@ kde { buildInputs = [ kdelibs facile ocaml eigen openbabel avogadro ]; - patches = [ ./kalzium-find-libfacile.patch ]; - meta = { description = "Periodic Table of Elements"; }; From ed92080b8de117bdd151dffb9eced708bea63459 Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Fri, 27 Jan 2012 18:56:31 +0000 Subject: [PATCH 006/179] icewm-1.3.7 svn path=/nixpkgs/trunk/; revision=31890 --- .../window-managers/icewm/default.nix | 22 +++++++++++-------- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/pkgs/applications/window-managers/icewm/default.nix b/pkgs/applications/window-managers/icewm/default.nix index 632bc50c8690..000f0e55bb41 100644 --- a/pkgs/applications/window-managers/icewm/default.nix +++ b/pkgs/applications/window-managers/icewm/default.nix @@ -1,29 +1,33 @@ -{ stdenv, fetchurl, gettext, libjpeg, libtiff, libungif, libpng, imlib -, xlibs, automake, pkgconfig, gtk }: +{ stdenv, fetchurl, gettext, libjpeg, libtiff, libungif, libpng, freetype +, fontconfig, xlibs, automake, pkgconfig, gdk_pixbuf }: stdenv.mkDerivation rec { - name = "icewm-1.3.6"; + name = "icewm-1.3.7"; buildInputs = - [ gettext libjpeg libtiff libungif libpng imlib + [ gettext libjpeg libtiff libungif libpng xlibs.libX11 xlibs.libXft xlibs.libXext xlibs.libXinerama xlibs.libXrandr - pkgconfig gtk + xlibs.libICE xlibs.libSM freetype fontconfig + pkgconfig gdk_pixbuf ]; src = fetchurl { url = "mirror://sourceforge/icewm/${name}.tar.gz"; - sha256 = "1pr7rc10rddwvy4ncng4mf5fpxd1nqjsw34xba9ngsg32rg57b91"; + sha256 = "0yw813d8amrl0n1fvdiyznxah92wcylj9kj1qhjc6h73d827h6na"; }; - NIX_LDFLAGS = "-lfontconfig"; - # The fuloong2f is not supported by 1.3.6 still + # + # Don't know whether 1.3.7 supports fuloong2f and don't know how to test it + # on x86_64 hardware. So I left this 'cp' -- urkud + preConfigure = '' - cp ${automake}/share/automake*/config.{sub,guess} . + cp -v ${automake}/share/automake*/config.{sub,guess} . ''; meta = { description = "A window manager for the X Window System"; homepage = http://www.icewm.org/; + platforms = stdenv.lib.platforms.unix; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 413256665542..e5842d618bd7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7041,9 +7041,7 @@ let icecat3Wrapper = wrapFirefox { browser = icecat3Xul; browserName = "icecat"; desktopName = "IceCat"; }; - icewm = callPackage ../applications/window-managers/icewm { - inherit (gtkLibs) gtk; - }; + icewm = callPackage ../applications/window-managers/icewm { }; id3v2 = callPackage ../applications/audio/id3v2 { }; From bbe935774d3521f65b5e8fc21d51ef1827ce8007 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 27 Jan 2012 20:31:00 +0000 Subject: [PATCH 007/179] haskell-GLFW: added version 0.5.0.1 svn path=/nixpkgs/trunk/; revision=31893 --- .../libraries/haskell/GLFW/default.nix | 19 +++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/development/libraries/haskell/GLFW/default.nix diff --git a/pkgs/development/libraries/haskell/GLFW/default.nix b/pkgs/development/libraries/haskell/GLFW/default.nix new file mode 100644 index 000000000000..1a9179b98777 --- /dev/null +++ b/pkgs/development/libraries/haskell/GLFW/default.nix @@ -0,0 +1,19 @@ +{ cabal, libX11, mesa, OpenGL }: + +cabal.mkDerivation (self: { + pname = "GLFW"; + version = "0.5.0.1"; + sha256 = "1zjxw0fn1am9n4bwqn8jwp14cdgyg1cv5v8rrg2bisggw7wdc4c6"; + buildDepends = [ OpenGL ]; + extraLibraries = [ libX11 mesa ]; + meta = { + homepage = "http://haskell.org/haskellwiki/GLFW"; + description = "A Haskell binding for GLFW"; + 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 15cb3336262d..c9e8796668cb 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -703,6 +703,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); libc = pkgs.stdenv.gcc.libc; }; + GLFW = callPackage ../development/libraries/haskell/GLFW {}; + glib = callPackage ../development/libraries/haskell/glib { glib = pkgs.glib; libc = pkgs.stdenv.gcc.libc; From 47c3e4b2a3dbd9761ea24237a17e9b5f336bcd9c Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 27 Jan 2012 20:31:03 +0000 Subject: [PATCH 008/179] haskell-zlib: added version 0.5.3.2 This version is disabled for all versions of GHC older than 7.2, because it won't build. Upstream has been notified. svn path=/nixpkgs/trunk/; revision=31894 --- .../libraries/haskell/zlib/0.5.3.2.nix | 17 +++++++++++++++++ pkgs/top-level/haskell-packages.nix | 13 +++++++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 pkgs/development/libraries/haskell/zlib/0.5.3.2.nix diff --git a/pkgs/development/libraries/haskell/zlib/0.5.3.2.nix b/pkgs/development/libraries/haskell/zlib/0.5.3.2.nix new file mode 100644 index 000000000000..6370c5560b83 --- /dev/null +++ b/pkgs/development/libraries/haskell/zlib/0.5.3.2.nix @@ -0,0 +1,17 @@ +{ cabal, zlib }: + +cabal.mkDerivation (self: { + pname = "zlib"; + version = "0.5.3.2"; + sha256 = "1a5xr59bw7hpgd7fwkpgkrpib7i46dsip7285pccvi2934k0628q"; + extraLibraries = [ zlib ]; + meta = { + description = "Compression and decompression in the gzip and zlib formats"; + 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 c9e8796668cb..9a7c7cab1f7c 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -151,7 +151,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); stm = self.stm_2_2_0_1; # 7.2 ok, 7.3 ok syb = self.syb_0_3_6; # 7.2 ok, 7.3 ok xhtml = self.xhtml_3000_2_0_1; # 7.2 ok, 7.3 ok - zlib = self.zlib_0_5_3_1; # 7.2 ok, 7.3 ok + zlib = self.zlib_0_5_3_2; # 7.2 ok, 7.3 ok HTTP = self.HTTP_4000_2_2; # 7.2 ok, 7.3 ok deepseq = self.deepseq_1_1_0_2; # 7.2 ok, 7.3 ok text = self.text_0_11_1_13; # 7.2 ok, 7.3 ok @@ -210,6 +210,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); haskellPlatform = self.haskellPlatform_2011_4_0_0; mtl1 = self.mtl_1_1_1_1; repaExamples = null; # don't pick this version of 'repa-examples' during nix-env -u + zlib_0_5_3_2 = null; # don't pick this version of 'zlib' during nix-env -u }; haskellPlatform_2011_4_0_0 = @@ -252,6 +253,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); haskellPlatform = self.haskellPlatform_2011_2_0_1; mtl1 = self.mtl_1_1_1_1; repaExamples = null; # don't pick this version of 'repa-examples' during nix-env -u + zlib_0_5_3_2 = null; # don't pick this version of 'zlib' during nix-env -u }; haskellPlatform_2011_2_0_1 = @@ -294,6 +296,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); haskellPlatform = self.haskellPlatform_2011_2_0_0; mtl1 = self.mtl_1_1_1_1; repaExamples = null; # don't pick this version of 'repa-examples' during nix-env -u + zlib_0_5_3_2 = null; # don't pick this version of 'zlib' during nix-env -u }; haskellPlatform_2011_2_0_0 = @@ -332,6 +335,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); self : self.haskellPlatformArgs_2010_2_0_0 self // { haskellPlatform = self.haskellPlatform_2010_2_0_0; repaExamples = null; # don't pick this version of 'repa-examples' during nix-env -u + zlib_0_5_3_2 = null; # don't pick this version of 'zlib' during nix-env -u deepseq = self.deepseq_1_1_0_2; # deviating from Haskell platform here, to make some packages (notably statistics) compile }; @@ -371,6 +375,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); haskellPlatform = self.haskellPlatform_2010_1_0_0; extensibleExceptions = self.extensibleExceptions_0_1_1_0; repaExamples = null; # don't pick this version of 'repa-examples' during nix-env -u + zlib_0_5_3_2 = null; # don't pick this version of 'zlib' during nix-env -u }; haskellPlatform_2010_1_0_0 = @@ -410,6 +415,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); extensibleExceptions = self.extensibleExceptions_0_1_1_0; text = self.text_0_11_0_6; repaExamples = null; # don't pick this version of 'repa-examples' during nix-env -u + zlib_0_5_3_2 = null; # don't pick this version of 'zlib' during nix-env -u }; haskellPlatform_2009_2_0_2 = @@ -1486,7 +1492,10 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); zlib_0_5_3_1 = callPackage ../development/libraries/haskell/zlib/0.5.3.1.nix { inherit (pkgs) zlib; }; - zlib = self.zlib_0_5_0_0; + zlib_0_5_3_2 = callPackage ../development/libraries/haskell/zlib/0.5.3.2.nix { + inherit (pkgs) zlib; + }; + zlib = self.zlib_0_5_3_2; zlibBindings = callPackage ../development/libraries/haskell/zlib-bindings {}; From c3883364c648580abe28be752d6f226922ea1613 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 27 Jan 2012 20:31:06 +0000 Subject: [PATCH 009/179] haskell-ansi-wl-pprint: updated to version 0.6.4 svn path=/nixpkgs/trunk/; revision=31895 --- pkgs/development/libraries/haskell/ansi-wl-pprint/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/ansi-wl-pprint/default.nix b/pkgs/development/libraries/haskell/ansi-wl-pprint/default.nix index 468b35136a33..5730588ab9e4 100755 --- a/pkgs/development/libraries/haskell/ansi-wl-pprint/default.nix +++ b/pkgs/development/libraries/haskell/ansi-wl-pprint/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "ansi-wl-pprint"; - version = "0.6.3"; - sha256 = "1cpkfn1ld0sjysksdsxxwwy1b17s4smmzk8y88y9mb81vgwlalkl"; + version = "0.6.4"; + sha256 = "0zrhzkmc5ki6q9ac5l16lhnyf9z2raj78gj9n0a7530rcv4ak3k0"; isLibrary = true; isExecutable = true; buildDepends = [ ansiTerminal ]; From 45312449cc04770ba08455a78e9d8ca3c9492405 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 27 Jan 2012 20:31:09 +0000 Subject: [PATCH 010/179] haskell-test-framework-hunit: updated to version 0.2.7 svn path=/nixpkgs/trunk/; revision=31896 --- .../libraries/haskell/test-framework-hunit/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/test-framework-hunit/default.nix b/pkgs/development/libraries/haskell/test-framework-hunit/default.nix index e196322190de..e280d497beed 100644 --- a/pkgs/development/libraries/haskell/test-framework-hunit/default.nix +++ b/pkgs/development/libraries/haskell/test-framework-hunit/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "test-framework-hunit"; - version = "0.2.6"; - sha256 = "1ivgyh71wwvrrgnk3fp6hsfssvy39jikhjdzr7x68pv1ca7f247r"; + version = "0.2.7"; + sha256 = "1c7424i5vnggzncwiwqqwq7ir7kaijif2waqmss5pn6db3gj33fc"; buildDepends = [ extensibleExceptions HUnit testFramework ]; meta = { homepage = "http://batterseapower.github.com/test-framework/"; From 2be13ee0042a8be466147d6f484ab2fb40043023 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 27 Jan 2012 20:31:12 +0000 Subject: [PATCH 011/179] haskell-test-framework-quickcheck: updated to version 0.2.8 svn path=/nixpkgs/trunk/; revision=31897 --- .../libraries/haskell/test-framework-quickcheck/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/test-framework-quickcheck/default.nix b/pkgs/development/libraries/haskell/test-framework-quickcheck/default.nix index 20d86feaa1b7..db70ec18a98e 100644 --- a/pkgs/development/libraries/haskell/test-framework-quickcheck/default.nix +++ b/pkgs/development/libraries/haskell/test-framework-quickcheck/default.nix @@ -4,8 +4,8 @@ cabal.mkDerivation (self: { pname = "test-framework-quickcheck"; - version = "0.2.7"; - sha256 = "065nazli8vh9dz8xi71gwzlwy81anfd471jhz6hv3m893cc9vvx8"; + version = "0.2.8"; + sha256 = "0ca6s7dnrdr9s2gdpfb74lswlj2lj091crk89m3yqjcadchkh3vl"; buildDepends = [ deepseq extensibleExceptions QuickCheck random testFramework ]; From 8cc520bd88db4d8426e9f3f051cd2996bee297f5 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 27 Jan 2012 20:31:15 +0000 Subject: [PATCH 012/179] haskell-test-framework-quickcheck2: updated to version 0.2.12 svn path=/nixpkgs/trunk/; revision=31898 --- .../libraries/haskell/test-framework-quickcheck2/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/test-framework-quickcheck2/default.nix b/pkgs/development/libraries/haskell/test-framework-quickcheck2/default.nix index e3787bbd0575..8e3698ab0003 100644 --- a/pkgs/development/libraries/haskell/test-framework-quickcheck2/default.nix +++ b/pkgs/development/libraries/haskell/test-framework-quickcheck2/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "test-framework-quickcheck2"; - version = "0.2.10"; - sha256 = "12c37m74idjydxshgms9ib9ii2rpvy4647kra2ards1w2jmnr6w3"; + version = "0.2.12"; + sha256 = "08qr2lh1akjy5daxxk1sy59sg94hvv5s5njs9x6lrx648hy7y8iy"; buildDepends = [ extensibleExceptions QuickCheck random testFramework ]; From fb5c1e068739c05daaf52bf8057e419dd4b178ca Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 27 Jan 2012 20:31:17 +0000 Subject: [PATCH 013/179] haskell-test-framework: updated to version 0.4.2.1 svn path=/nixpkgs/trunk/; revision=31899 --- pkgs/development/libraries/haskell/test-framework/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/test-framework/default.nix b/pkgs/development/libraries/haskell/test-framework/default.nix index 64a45206b6e2..7fa6dcae0cee 100644 --- a/pkgs/development/libraries/haskell/test-framework/default.nix +++ b/pkgs/development/libraries/haskell/test-framework/default.nix @@ -4,8 +4,8 @@ cabal.mkDerivation (self: { pname = "test-framework"; - version = "0.4.2.0"; - sha256 = "0a74ajlmwsajrj06k22zqwnyxqfrpbd9xplf4b1swafp7y952ind"; + version = "0.4.2.1"; + sha256 = "1021drmg1k4b844rwsjfbvajai4irrxc9aa7g6rk5n246a2nh9if"; isLibrary = true; isExecutable = true; buildDepends = [ From 999502f95c07761a6288f792b9e65b9c3ded2116 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 27 Jan 2012 20:31:20 +0000 Subject: [PATCH 014/179] haskell-zlib-bindings: updated to version 0.0.3 svn path=/nixpkgs/trunk/; revision=31900 --- pkgs/development/libraries/haskell/zlib-bindings/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/zlib-bindings/default.nix b/pkgs/development/libraries/haskell/zlib-bindings/default.nix index 66068cb5d0f2..86ab3ad1aaba 100644 --- a/pkgs/development/libraries/haskell/zlib-bindings/default.nix +++ b/pkgs/development/libraries/haskell/zlib-bindings/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "zlib-bindings"; - version = "0.0.2"; - sha256 = "01ksbrlcn9g74ql0388zfa02abmrpkw654y2ayybzgygzdb51mnk"; + version = "0.0.3"; + sha256 = "0hi74pc9lc11j7bvaka2fpy3cdql2z7232nxpjffjk7prqrc0q8d"; buildDepends = [ zlib ]; meta = { homepage = "http://github.com/snoyberg/zlib-bindings"; From 415b2bb145c45a567eebb49bd526a071e38ee620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Fri, 27 Jan 2012 20:40:44 +0000 Subject: [PATCH 015/179] Adding cppnetlib 0.9.2. The last I found in their github. svn path=/nixpkgs/trunk/; revision=31901 --- .../libraries/cppnetlib/default.nix | 40 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++ 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/libraries/cppnetlib/default.nix diff --git a/pkgs/development/libraries/cppnetlib/default.nix b/pkgs/development/libraries/cppnetlib/default.nix new file mode 100644 index 000000000000..3eab580c6a89 --- /dev/null +++ b/pkgs/development/libraries/cppnetlib/default.nix @@ -0,0 +1,40 @@ +{stdenv, fetchurl, cmake, openssl, boost}: + +stdenv.mkDerivation rec { + name = "cpp-netlib-0.9.2"; + + src = fetchurl { + url = "https://github.com/downloads/cpp-netlib/cpp-netlib/${name}.tar.bz2"; + sha256 = "0llmiyp9l7byavwdyb7vpks27yfv3g85170bm81paps748bcyb1p"; + }; + + buildInputs = [ cmake boost openssl ]; + + /* Tests fail to build ... + https://github.com/cpp-netlib/cpp-netlib/issues/85 + + Once working, we could do: + checkTarget = "test"; + doCheck = true; + */ + + preConfigure = '' + sed -i /test/d CMakeLists.txt + ''; + + /* The build phase just builds examples. That's at least some testing. + That's how to install the lib - copy the headers. */ + installPhase = '' + # We are at sourcepath/build + mkdir -p $out/include + cp -R ../boost $out/include/ + mkdir -p $out/lib + cp -R libs/network/src/*.a $out/lib/ + ''; + + meta = { + homepage = http://cpp-netlib.github.com/; + description = "Provides application layer network support at boost style"; + license = "boost"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e5842d618bd7..6bd8f9382448 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3333,6 +3333,10 @@ let cppunit = callPackage ../development/libraries/cppunit { }; + cppnetlib = callPackage ../development/libraries/cppnetlib { + boost = boostFull; + }; + cracklib = callPackage ../development/libraries/cracklib { }; cryptopp = callPackage ../development/libraries/crypto++ { }; From 8c1f88549d55a3b02b6fa7174ce55956f7645367 Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Sat, 28 Jan 2012 09:04:48 +0000 Subject: [PATCH 016/179] fontforge-20100222 svn path=/nixpkgs/trunk/; revision=31902 --- pkgs/tools/misc/fontforge/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/fontforge/default.nix b/pkgs/tools/misc/fontforge/default.nix index 9402fad22870..d5a1bf42a129 100644 --- a/pkgs/tools/misc/fontforge/default.nix +++ b/pkgs/tools/misc/fontforge/default.nix @@ -5,7 +5,7 @@ }: let - version = "20090408"; + version = "20110222"; name = "fontforge-${version}"; in @@ -14,7 +14,7 @@ stdenv.mkDerivation { src = fetchurl { url = "mirror://sourceforge/fontforge/fontforge_full-${version}.tar.bz2"; - sha256 = "1s9a1mgbr5sv5jx6rdj2v3p6s52hgjr9wqd1aq57kn9whc8ny8y4"; + sha256 = "0gj342iyd2qmza523r84m65fm7bymcfd4lbllywbfjzq4s0838lg"; }; configureFlags = lib.optionalString withX11 "--with-gui=gdraw"; From 37d2e2e917b6880814a388e126867994cabf044d Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 28 Jan 2012 10:20:50 +0000 Subject: [PATCH 017/179] gmp: renamed nix files to conform with coding guidelines svn path=/nixpkgs/trunk/; revision=31903 --- pkgs/development/libraries/gmp/{4.nix => 4.3.2.nix} | 0 pkgs/development/libraries/gmp/{default.nix => 5.0.1.nix} | 0 pkgs/top-level/all-packages.nix | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename pkgs/development/libraries/gmp/{4.nix => 4.3.2.nix} (100%) rename pkgs/development/libraries/gmp/{default.nix => 5.0.1.nix} (100%) diff --git a/pkgs/development/libraries/gmp/4.nix b/pkgs/development/libraries/gmp/4.3.2.nix similarity index 100% rename from pkgs/development/libraries/gmp/4.nix rename to pkgs/development/libraries/gmp/4.3.2.nix diff --git a/pkgs/development/libraries/gmp/default.nix b/pkgs/development/libraries/gmp/5.0.1.nix similarity index 100% rename from pkgs/development/libraries/gmp/default.nix rename to pkgs/development/libraries/gmp/5.0.1.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6bd8f9382448..ed2587061ba5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3629,7 +3629,7 @@ let else # We temporarily leave gmp 4 here, waiting for a new ppl/cloog-ppl that # would build well with gmp 5. - makeOverridable (import ../development/libraries/gmp/4.nix) { + makeOverridable (import ../development/libraries/gmp/4.3.2.nix) { inherit stdenv fetchurl m4; cxx = false; }; From 7d9442e2c37dd0a10d743b887bd82fc5f09e1c47 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 28 Jan 2012 10:20:57 +0000 Subject: [PATCH 018/179] Removed obsolete comment. svn path=/nixpkgs/trunk/; revision=31904 --- pkgs/top-level/all-packages.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ed2587061ba5..fe0ac245c3d6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2220,10 +2220,8 @@ let haskellPackagesFun ../development/compilers/ghc/7.0.3.nix ghc6101Binary (x : x.ghc703Prefs) false false lowPrio; - # Current default version: 7.0.4 - # Note that the platform isn't officially released for ghc-7.0.4, but - # it works without problems. - + # Current default version: 7.0.4. + # # The following items are a bit convoluted, but they serve the # following purpose: # - for the default version of GHC, both profiling and From 4b36b6132ff2de7a758b51eeae2c529a2edff0f9 Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Sat, 28 Jan 2012 12:44:42 +0000 Subject: [PATCH 019/179] Introduce libiconvOrNull and libiconvOrGlibc One can use these attrs instead of custom 'if ... then libiconv else null'. This way we can maintain the correct 'if ... then' check in one place. NB: I don't know what is the correct condition, so I use stdenv.isLinux. Feel free to fix this. svn path=/nixpkgs/trunk/; revision=31906 --- pkgs/top-level/all-packages.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fe0ac245c3d6..8c1733925c24 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4054,6 +4054,10 @@ let libiconv = callPackage ../development/libraries/libiconv { }; + libiconvOrNull = if gcc ? libc then null else libiconv; + + libiconvOrLibc = if gcc ? libc then gcc.libc else libiconv; + libid3tag = callPackage ../development/libraries/libid3tag { }; libidn = callPackage ../development/libraries/libidn { }; From 9d67ff2a4830343197378dc84e8dec93d941c4b9 Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Sat, 28 Jan 2012 13:06:07 +0000 Subject: [PATCH 020/179] Remove glib-1.x and its reverse dependencies Nobody told me that he uses generator or xmms, so I'm removing this old stuff. svn path=/nixpkgs/trunk/; revision=31907 --- pkgs/applications/audio/xmms/alsa.patch | 1475 ----------------- pkgs/applications/audio/xmms/default.nix | 21 - pkgs/development/libraries/glib/1.2.x.nix | 12 - pkgs/development/libraries/glib/gcc34.patch | 20 - pkgs/development/libraries/gtk+/1.2.x.nix | 12 - pkgs/misc/emulators/generator/default.nix | 13 - pkgs/misc/emulators/generator/soundcard.patch | 20 - pkgs/top-level/all-packages.nix | 18 - 8 files changed, 1591 deletions(-) delete mode 100644 pkgs/applications/audio/xmms/alsa.patch delete mode 100644 pkgs/applications/audio/xmms/default.nix delete mode 100644 pkgs/development/libraries/glib/1.2.x.nix delete mode 100644 pkgs/development/libraries/glib/gcc34.patch delete mode 100644 pkgs/development/libraries/gtk+/1.2.x.nix delete mode 100644 pkgs/misc/emulators/generator/default.nix delete mode 100644 pkgs/misc/emulators/generator/soundcard.patch diff --git a/pkgs/applications/audio/xmms/alsa.patch b/pkgs/applications/audio/xmms/alsa.patch deleted file mode 100644 index 62cf7354fd25..000000000000 --- a/pkgs/applications/audio/xmms/alsa.patch +++ /dev/null @@ -1,1475 +0,0 @@ -diff -rc xmms-1.2.10-orig/Output/alsa/alsa.h xmms-1.2.10/Output/alsa/alsa.h -*** xmms-1.2.10-orig/Output/alsa/alsa.h 2004-01-11 17:27:26.000000000 +0100 ---- xmms-1.2.10/Output/alsa/alsa.h 2006-01-27 00:28:49.000000000 +0100 -*************** -*** 50,57 **** - char *mixer_device; - int buffer_time; - int period_time; - gboolean debug; -- gboolean mmap; - struct - { - int left, right; ---- 50,57 ---- - char *mixer_device; - int buffer_time; - int period_time; -+ int thread_buffer_time; - gboolean debug; - struct - { - int left, right; -*************** -*** 65,72 **** - void alsa_about(void); - void alsa_configure(void); - int alsa_get_mixer(snd_mixer_t **mixer, int card); -- snd_mixer_elem_t* alsa_get_mixer_elem(snd_mixer_t *mixer, char *name, int index); -- int alsa_setup_mixer(void); - void alsa_save_config(void); - - void alsa_get_volume(int *l, int *r); ---- 65,70 ---- -diff -rc xmms-1.2.10-orig/Output/alsa/audio.c xmms-1.2.10/Output/alsa/audio.c -*** xmms-1.2.10-orig/Output/alsa/audio.c 2004-01-28 00:09:39.000000000 +0100 ---- xmms-1.2.10/Output/alsa/audio.c 2006-01-27 00:28:49.000000000 +0100 -*************** -*** 17,52 **** - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ - - #include "alsa.h" - #include - #include - - static snd_pcm_t *alsa_pcm = NULL; -- static snd_pcm_status_t *alsa_status = NULL; -- static snd_pcm_channel_area_t *areas = NULL; - - static snd_output_t *logs = NULL; - -! static int alsa_bps = 0; -! static guint64 alsa_total_written = 0; - - /* Set/Get volume */ - static snd_mixer_elem_t *pcm_element = NULL; - static snd_mixer_t *mixer = NULL; - -! static gboolean mmap, force_start, going, paused; - -! static gpointer buffer; - -- static int alsa_can_pause; - - struct snd_format { - unsigned int rate; - unsigned int channels; - snd_pcm_format_t format; - AFormat xmms_format; - }; - - static struct snd_format *inputf = NULL; ---- 17,72 ---- - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -+ * -+ * -+ * CHANGES -+ * -+ * 2005.01.05 Takashi Iwai -+ * Impelemented the multi-threaded mode with an audio-thread. -+ * Many fixes and cleanups. - */ - - #include "alsa.h" - #include -+ #include - #include - - static snd_pcm_t *alsa_pcm = NULL; - - static snd_output_t *logs = NULL; - -! static guint64 alsa_total_written = 0; /* input bytes */ -! static guint64 alsa_hw_written = 0; /* output bytes */ -! static gint output_time_offset = 0; -! -! /* device buffer/period sizes in bytes */ -! static int hw_buffer_size, hw_period_size; /* in output bytes */ -! static int hw_buffer_size_in, hw_period_size_in; /* in input bytes */ - - /* Set/Get volume */ - static snd_mixer_elem_t *pcm_element = NULL; - static snd_mixer_t *mixer = NULL; - -! static gboolean going, paused; - -! static gboolean alsa_can_pause; -! -! /* for audio thread */ -! static pthread_t audio_thread; /* audio loop thread */ -! static int thread_buffer_size; /* size of intermediate buffer in bytes */ -! static char *thread_buffer; /* audio intermediate buffer */ -! static int rd_index, wr_index; /* current read/write position in int-buffer */ -! static gboolean pause_request; /* pause status currently requested */ -! static gint flush_request; /* flush status (time) currently requested */ - - - struct snd_format { - unsigned int rate; - unsigned int channels; - snd_pcm_format_t format; - AFormat xmms_format; -+ int sample_bits; -+ int bps; - }; - - static struct snd_format *inputf = NULL; -*************** -*** 54,61 **** - static struct snd_format *outputf = NULL; - - static int alsa_setup(struct snd_format *f); -! static void alsa_mmap_audio(char *data, int length); -! static void alsa_write_audio(gpointer data, int length); - - static struct snd_format * snd_format_from_xmms(AFormat fmt, int rate, int channels); - ---- 74,80 ---- - static struct snd_format *outputf = NULL; - - static int alsa_setup(struct snd_format *f); -! static void alsa_write_audio(char *data, int length); - - static struct snd_format * snd_format_from_xmms(AFormat fmt, int rate, int channels); - -*************** -*** 71,92 **** - } format_table[] = - {{FMT_S16_LE, SND_PCM_FORMAT_S16_LE}, - {FMT_S16_BE, SND_PCM_FORMAT_S16_BE}, -! {FMT_S16_NE, -! #ifdef WORDS_BIGENDIAN -! SND_PCM_FORMAT_S16_BE -! #else -! SND_PCM_FORMAT_S16_LE -! #endif -! }, - {FMT_U16_LE, SND_PCM_FORMAT_U16_LE}, - {FMT_U16_BE, SND_PCM_FORMAT_U16_BE}, -! {FMT_U16_NE, -! #ifdef WORDS_BIGENDIAN -! SND_PCM_FORMAT_U16_BE -! #else -! SND_PCM_FORMAT_U16_LE -! #endif -! }, - {FMT_U8, SND_PCM_FORMAT_U8}, - {FMT_S8, SND_PCM_FORMAT_S8}, - }; ---- 90,99 ---- - } format_table[] = - {{FMT_S16_LE, SND_PCM_FORMAT_S16_LE}, - {FMT_S16_BE, SND_PCM_FORMAT_S16_BE}, -! {FMT_S16_NE, SND_PCM_FORMAT_S16}, - {FMT_U16_LE, SND_PCM_FORMAT_U16_LE}, - {FMT_U16_BE, SND_PCM_FORMAT_U16_BE}, -! {FMT_U16_NE, SND_PCM_FORMAT_U16}, - {FMT_U8, SND_PCM_FORMAT_U8}, - {FMT_S8, SND_PCM_FORMAT_S8}, - }; -*************** -*** 106,281 **** - } - } - -! int alsa_playing(void) -! { -! if (!going || paused) -! return FALSE; -! -! return(snd_pcm_state(alsa_pcm) == SND_PCM_STATE_RUNNING); -! } -! -! static void xrun_recover(void) -! { -! int err; -! -! if (alsa_cfg.debug) -! { -! snd_pcm_status_alloca(&alsa_status); -! if ((err = snd_pcm_status(alsa_pcm, alsa_status)) < 0) -! g_warning("xrun_recover(): snd_pcm_status() failed"); -! else -! { -! printf("Status:\n"); -! snd_pcm_status_dump(alsa_status, logs); -! } -! } -! -! if (snd_pcm_state(alsa_pcm) == SND_PCM_STATE_XRUN) -! { -! if ((err = snd_pcm_prepare(alsa_pcm)) < 0) -! g_warning("xrun_recover(): snd_pcm_prepare() failed."); -! } -! } -! -! static snd_pcm_sframes_t alsa_get_avail(void) -! { -! snd_pcm_sframes_t ret; -! if ((ret = snd_pcm_avail_update(alsa_pcm)) == -EPIPE) -! xrun_recover(); -! else if (ret < 0) -! { -! g_warning("alsa_get_avail(): snd_pcm_avail_update() failed: %s", -! snd_strerror(-ret)); -! return 0; -! } -! else -! return ret; -! if ((ret = snd_pcm_avail_update(alsa_pcm)) < 0) -! { -! g_warning("alsa_get_avail(): snd_pcm_avail_update() failed: %s", -! snd_strerror(-ret)); -! return 0; -! } -! return ret; -! } -! -! int alsa_free(void) -! { -! if (paused) -! return 0; -! else -! { -! int err; -! if (force_start && -! snd_pcm_state(alsa_pcm) == SND_PCM_STATE_PREPARED) -! { -! if ((err = snd_pcm_start(alsa_pcm)) < 0) -! g_warning("alsa_free(): snd_pcm_start() " -! "failed: %s", snd_strerror(-err)); -! else -! debug("Stream started"); -! } -! force_start = TRUE; -! -! return snd_pcm_frames_to_bytes(alsa_pcm, alsa_get_avail()); -! } -! } -! -! void alsa_pause(short p) -! { -! debug("alsa_pause"); -! if (p) -! paused = TRUE; -! -! if (alsa_can_pause) -! snd_pcm_pause(alsa_pcm, p); -! else if (p) -! snd_pcm_drop(alsa_pcm); -! -! if (!p) -! paused = FALSE; -! } -! -! void alsa_close(void) -! { -! int err, started; -! -! debug("Closing device"); -! -! started = going; -! going = 0; -! -! pcm_element = NULL; -! -! if (mixer) -! { -! snd_mixer_close(mixer); -! mixer = NULL; -! } -! -! if (alsa_pcm != NULL) -! { -! if (started) -! if ((err = snd_pcm_drop(alsa_pcm)) < 0) -! g_warning("alsa_pcm_drop() failed: %s", -! snd_strerror(-err)); -! -! if ((err = snd_pcm_close(alsa_pcm)) < 0) -! g_warning("alsa_pcm_close() failed: %s", -! snd_strerror(-err)); -! alsa_pcm = NULL; -! } -! -! if (mmap) { -! g_free(buffer); -! buffer = NULL; -! -! g_free(areas); -! areas = NULL; -! } -! -! xmms_convert_buffers_destroy(convertb); -! convertb = NULL; -! g_free(inputf); -! inputf = NULL; -! g_free(effectf); -! effectf = NULL; -! -! alsa_save_config(); -! -! debug("Device closed"); -! } -! -! static void alsa_reopen(struct snd_format *f) -! { -! unsigned int tmp = alsa_get_written_time(); -! -! if (alsa_pcm != NULL) -! { -! snd_pcm_close(alsa_pcm); -! alsa_pcm = NULL; -! } -! -! if (mmap) { -! g_free(buffer); -! buffer = NULL; -! -! g_free(areas); -! areas = NULL; -! } -! -! if (alsa_setup(f) < 0) -! g_warning("Failed to reopen the audio device"); -! -! alsa_total_written = tmp; -! snd_pcm_prepare(alsa_pcm); -! } -! -! void alsa_flush(int time) -! { -! alsa_total_written = (guint64) time * alsa_bps / 1000; -! } -! - static void parse_mixer_name(char *str, char **name, int *index) - { - char *end; ---- 113,121 ---- - } - } - -! /* -! * mixer stuff -! */ - static void parse_mixer_name(char *str, char **name, int *index) - { - char *end; -*************** -*** 337,343 **** - } - - -! snd_mixer_elem_t* alsa_get_mixer_elem(snd_mixer_t *mixer, char *name, int index) - { - snd_mixer_selem_id_t *selem_id; - snd_mixer_elem_t* elem; ---- 177,183 ---- - } - - -! static snd_mixer_elem_t* alsa_get_mixer_elem(snd_mixer_t *mixer, char *name, int index) - { - snd_mixer_selem_id_t *selem_id; - snd_mixer_elem_t* elem; -*************** -*** 353,359 **** - return elem; - } - -! int alsa_setup_mixer(void) - { - char *name; - long int a, b; ---- 193,199 ---- - return elem; - } - -! static int alsa_setup_mixer(void) - { - char *name; - long int a, b; -*************** -*** 406,411 **** ---- 246,260 ---- - return 0; - } - -+ static void alsa_cleanup_mixer(void) -+ { -+ pcm_element = NULL; -+ if (mixer) { -+ snd_mixer_close(mixer); -+ mixer = NULL; -+ } -+ } -+ - void alsa_get_volume(int *l, int *r) - { - static gboolean first = TRUE; -*************** -*** 461,485 **** - } - - - int alsa_get_output_time(void) - { - snd_pcm_sframes_t delay; -! ssize_t db = 0; - -! if (!going) - return 0; - -! if (!snd_pcm_delay(alsa_pcm, &delay)) -! db = snd_pcm_frames_to_bytes(alsa_pcm, delay); -! -! if (db < alsa_total_written) -! return ((alsa_total_written - db) * 1000 / alsa_bps); -! return 0; - } - - int alsa_get_written_time(void) - { -! return (alsa_total_written * 1000 / alsa_bps); - } - - #define STEREO_ADJUST(type, type2, endian) \ ---- 310,512 ---- - } - - -+ /* -+ * audio stuff -+ */ -+ -+ int alsa_playing(void) -+ { -+ if (!going || paused || alsa_pcm == NULL) -+ return FALSE; -+ -+ return(snd_pcm_state(alsa_pcm) == SND_PCM_STATE_RUNNING); -+ } -+ -+ -+ /* handle generic errors */ -+ static int alsa_handle_error(int err) -+ { -+ switch (err) { -+ case -EPIPE: /* XRUN */ -+ if (alsa_cfg.debug) { -+ snd_pcm_status_t *alsa_status; -+ snd_pcm_status_alloca(&alsa_status); -+ if (snd_pcm_status(alsa_pcm, alsa_status) < 0) -+ g_warning("xrun_recover(): snd_pcm_status() failed"); -+ else { -+ printf("Status:\n"); -+ snd_pcm_status_dump(alsa_status, logs); -+ } -+ } -+ return snd_pcm_prepare(alsa_pcm); -+ -+ case -ESTRPIPE: /* suspend */ -+ while ((err = snd_pcm_resume(alsa_pcm)) == -EAGAIN) -+ sleep(1); /* wait until suspend flag is released */ -+ if (err < 0) { -+ g_warning("suspend_recover(): snd_pcm_resume() failed."); -+ return snd_pcm_prepare(alsa_pcm); -+ } -+ break; -+ } -+ -+ return err; -+ } -+ -+ /* update and get the available space on h/w buffer (in frames) */ -+ static snd_pcm_sframes_t alsa_get_avail(void) -+ { -+ snd_pcm_sframes_t ret; -+ -+ if (alsa_pcm == NULL) -+ return 0; -+ -+ while ((ret = snd_pcm_avail_update(alsa_pcm)) < 0) { -+ ret = alsa_handle_error(ret); -+ if (ret < 0) { -+ g_warning("alsa_get_avail(): snd_pcm_avail_update() failed: %s", -+ snd_strerror(-ret)); -+ return 0; -+ } -+ } -+ return ret; -+ } -+ -+ /* do pause operation */ -+ static void alsa_do_pause(gboolean p) -+ { -+ if (paused == p) -+ return; -+ -+ if (alsa_pcm) { -+ if (alsa_can_pause) { -+ snd_pcm_pause(alsa_pcm, p); -+ } else if (p) { -+ snd_pcm_drop(alsa_pcm); -+ snd_pcm_prepare(alsa_pcm); -+ } -+ } -+ paused = p; -+ } -+ -+ void alsa_pause(short p) -+ { -+ debug("alsa_pause"); -+ pause_request = p; -+ } -+ -+ /* close PCM and release associated resources */ -+ static void alsa_close_pcm(void) -+ { -+ if (alsa_pcm) { -+ int err; -+ snd_pcm_drop(alsa_pcm); -+ if ((err = snd_pcm_close(alsa_pcm)) < 0) -+ g_warning("alsa_pcm_close() failed: %s", -+ snd_strerror(-err)); -+ alsa_pcm = NULL; -+ } -+ } -+ -+ /* reopen ALSA PCM */ -+ static int alsa_reopen(struct snd_format *f) -+ { -+ /* remember the current position */ -+ output_time_offset += (alsa_hw_written * 1000) / outputf->bps; -+ alsa_hw_written = 0; -+ -+ alsa_close_pcm(); -+ -+ return alsa_setup(f); -+ } -+ -+ /* do flush (drop) operation */ -+ static void alsa_do_flush(int time) -+ { -+ if (alsa_pcm) { -+ snd_pcm_drop(alsa_pcm); -+ snd_pcm_prepare(alsa_pcm); -+ } -+ /* correct the offset */ -+ output_time_offset = time; -+ alsa_total_written = (guint64) time * inputf->bps / 1000; -+ rd_index = wr_index = alsa_hw_written = 0; -+ } -+ -+ void alsa_flush(int time) -+ { -+ flush_request = time; -+ while (flush_request != -1) -+ xmms_usleep(10000); -+ } -+ -+ void alsa_close(void) -+ { -+ if (! going) -+ return; -+ -+ debug("Closing device"); -+ -+ going = 0; -+ -+ pthread_join(audio_thread, NULL); -+ -+ alsa_cleanup_mixer(); -+ -+ xmms_convert_buffers_destroy(convertb); -+ convertb = NULL; -+ g_free(inputf); -+ inputf = NULL; -+ g_free(effectf); -+ effectf = NULL; -+ g_free(outputf); -+ outputf = NULL; -+ -+ alsa_save_config(); -+ -+ if (alsa_cfg.debug) -+ snd_output_close(logs); -+ debug("Device closed"); -+ } -+ -+ /* return the size of audio data filled in the audio thread buffer */ -+ static int get_thread_buffer_filled(void) -+ { -+ int filled = wr_index - rd_index; -+ if (filled >= 0) -+ return filled; -+ return thread_buffer_size + filled; -+ } -+ -+ /* get the free space on buffer */ -+ int alsa_free(void) -+ { -+ return thread_buffer_size - get_thread_buffer_filled() - 1; -+ } -+ - int alsa_get_output_time(void) - { - snd_pcm_sframes_t delay; -! guint64 bytes = 0; - -! if (!going || alsa_pcm == NULL) - return 0; - -! if (!snd_pcm_delay(alsa_pcm, &delay)) { -! bytes = snd_pcm_frames_to_bytes(alsa_pcm, delay); -! if (alsa_hw_written < bytes) -! bytes = 0; -! else -! bytes = alsa_hw_written - bytes; -! } -! return output_time_offset + (bytes * 1000) / outputf->bps; - } - - int alsa_get_written_time(void) - { -! if (!going) -! return 0; -! return (alsa_total_written * 1000) / inputf->bps; - } - - #define STEREO_ADJUST(type, type2, endian) \ -*************** -*** 584,636 **** - } - - -! void alsa_write(gpointer data, int length) - { -! EffectPlugin *ep; - - if (paused) - return; - -! force_start = FALSE; -! -! if (effects_enabled() && (ep = get_current_effect_plugin())) -! { -! int new_freq = inputf->rate; -! int new_chn = inputf->channels; -! AFormat f = inputf->xmms_format; - -! if (ep->query_format) -! { -! ep->query_format(&f, &new_freq, &new_chn); -! -! if (f != effectf->xmms_format || -! new_freq != effectf->rate || -! new_chn != effectf->channels) -! { -! debug("Changing audio format for effect plugin"); -! -! g_free(effectf); -! effectf = snd_format_from_xmms(f, new_freq, -! new_chn); -! alsa_reopen(effectf); -! } -! -! } - - length = ep->mod_samples(&data, length, - inputf->xmms_format, - inputf->rate, - inputf->channels); - } -- else if (effectf) -- { -- g_free(effectf); -- effectf = NULL; -- effectf = snd_format_from_xmms(inputf->xmms_format, -- inputf->rate, -- inputf->channels); -- alsa_reopen(inputf); -- } - - if (alsa_convert_func != NULL) - length = alsa_convert_func(convertb, &data, length); ---- 611,657 ---- - } - - -! /* transfer data to audio h/w; length is given in bytes -! * -! * data can be modified via effect plugin, rate conversion or -! * software volume before passed to audio h/w -! */ -! static void alsa_do_write(gpointer data, int length) - { -! EffectPlugin *ep = NULL; -! int new_freq; -! int new_chn; -! AFormat f; - - if (paused) - return; - -! new_freq = inputf->rate; -! new_chn = inputf->channels; -! f = inputf->xmms_format; - -! if (effects_enabled() && (ep = get_current_effect_plugin()) && -! ep->query_format) -! ep->query_format(&f, &new_freq, &new_chn); - -+ if (f != effectf->xmms_format || new_freq != effectf->rate || -+ new_chn != effectf->channels) { -+ debug("Changing audio format for effect plugin"); -+ g_free(effectf); -+ effectf = snd_format_from_xmms(f, new_freq, new_chn); -+ if (alsa_reopen(effectf) < 0) { -+ /* fatal error... */ -+ alsa_close(); -+ return; -+ } -+ } -+ -+ if (ep) { - length = ep->mod_samples(&data, length, - inputf->xmms_format, - inputf->rate, - inputf->channels); - } - - if (alsa_convert_func != NULL) - length = alsa_convert_func(convertb, &data, length); -*************** -*** 644,656 **** - if (alsa_cfg.soft_volume) - volume_adjust(data, length, outputf->xmms_format, outputf->channels); - -! if (mmap) -! alsa_mmap_audio(data, length); -! else -! alsa_write_audio(data, length); - } - -! static void alsa_write_audio(gpointer data, int length) - { - snd_pcm_sframes_t written_frames; - ---- 665,693 ---- - if (alsa_cfg.soft_volume) - volume_adjust(data, length, outputf->xmms_format, outputf->channels); - -! alsa_write_audio(data, length); - } - -! /* write callback */ -! void alsa_write(gpointer data, int length) -! { -! int cnt; -! char *src = (char *)data; -! -! alsa_total_written += length; -! while (length > 0) { -! int wr; -! cnt = MIN(length, thread_buffer_size - wr_index); -! memcpy(thread_buffer + wr_index, src, cnt); -! wr = (wr_index + cnt) % thread_buffer_size; -! wr_index = wr; -! length -= cnt; -! src += cnt; -! } -! } -! -! /* transfer data to audio h/w via normal write */ -! static void alsa_write_audio(char *data, int length) - { - snd_pcm_sframes_t written_frames; - -*************** -*** 663,735 **** - { - int written = snd_pcm_frames_to_bytes(alsa_pcm, - written_frames); -- alsa_total_written += written; - length -= written; -! data = (char*) data + written; - } -! else if (written_frames == -EPIPE) -! xrun_recover(); -! else -! { -! g_warning("alsa_write_audio(): write error: %s", -! snd_strerror(-written_frames)); -! break; - } - } - } - -! static void alsa_mmap_audio(char *data, int length) - { -! int cnt = 0, err; -! snd_pcm_uframes_t offset, frames, frame; -! const snd_pcm_channel_area_t *chan_areas = areas; -! int channel_offset = 0, channel; -! ssize_t sample_size, offset_bytes, step; -! -! alsa_get_avail(); - -! while (length > 0) -! { -! frames = snd_pcm_bytes_to_frames(alsa_pcm, length); -! if ((err = snd_pcm_mmap_begin(alsa_pcm, &chan_areas, &offset, &frames) < 0)) -! g_warning("alsa_mmap_audio(): snd_pcm_mmap_begin() " -! "failed: %s", snd_strerror(-err)); -! -! cnt = snd_pcm_frames_to_bytes(alsa_pcm, frames); -! -! sample_size = snd_pcm_samples_to_bytes(alsa_pcm, 1); -! step = chan_areas[0].step / 8; -! offset_bytes = offset * step; - -! for (frame = 0; frame < frames; frame++) -! { -! for (channel = 0; channel < outputf->channels; channel++) -! { -! char *ptr = chan_areas[channel].addr; -! memcpy(ptr + chan_areas[channel].first / 8 + -! offset_bytes, -! data + channel_offset, sample_size); -! channel_offset += sample_size; - } -! offset_bytes += step; - } -- -- err = snd_pcm_mmap_commit(alsa_pcm, offset, frames); -- if (err == -EPIPE) -- xrun_recover(); -- else if (err < 0) -- g_warning("alsa_mmap_audio(): snd_pcm_mmap_commit() " -- "failed: %s", snd_strerror(-err)); -- else if (err != frames) -- g_warning("alsa_mmap_audio(): snd_pcm_mmap_commit " -- "returned %d, expected %d", err, (int)frames); -- -- alsa_total_written += cnt; -- -- length -= cnt; - } - } - - int alsa_open(AFormat fmt, int rate, int nch) - { - debug("Opening device"); ---- 700,785 ---- - { - int written = snd_pcm_frames_to_bytes(alsa_pcm, - written_frames); - length -= written; -! data += written; -! alsa_hw_written += written; - } -! else { -! int err = alsa_handle_error((int)written_frames); -! if (err < 0) { -! g_warning("alsa_write_audio(): write error: %s", -! snd_strerror(-err)); -! break; -! } - } - } - } - -! /* transfer audio data from thread buffer to h/w */ -! static void alsa_write_out_thread_data(void) - { -! gint length, cnt, avail; - -! length = MIN(hw_period_size_in, get_thread_buffer_filled()); -! avail = snd_pcm_frames_to_bytes(alsa_pcm, alsa_get_avail()); -! length = MIN(length, avail); -! while (length > 0) { -! int rd; -! cnt = MIN(length, thread_buffer_size - rd_index); -! alsa_do_write(thread_buffer + rd_index, cnt); -! rd = (rd_index + cnt) % thread_buffer_size; -! rd_index = rd; -! length -= cnt; -! } -! } - -! /* audio thread loop */ -! /* FIXME: proper lock? */ -! static void *alsa_loop(void *arg) -! { -! int npfds = snd_pcm_poll_descriptors_count(alsa_pcm); -! struct pollfd *pfds; -! unsigned short *revents; -! -! if (npfds <= 0) -! goto _error; -! pfds = alloca(sizeof(*pfds) * npfds); -! revents = alloca(sizeof(*revents) * npfds); -! while (going && alsa_pcm) { -! if (! paused && get_thread_buffer_filled() > hw_period_size_in) { -! snd_pcm_poll_descriptors(alsa_pcm, pfds, npfds); -! if (poll(pfds, npfds, 10) > 0) { -! /* need to check revents. poll() with dmix returns -! * a postive value even if no data is available -! */ -! int i; -! snd_pcm_poll_descriptors_revents(alsa_pcm, pfds, npfds, revents); -! for (i = 0; i < npfds; i++) -! if (revents[i] & POLLOUT) { -! alsa_write_out_thread_data(); -! break; -! } - } -! } else -! xmms_usleep(10000); -! -! if (pause_request != paused) -! alsa_do_pause(pause_request); -! -! if (flush_request != -1) { -! alsa_do_flush(flush_request); -! flush_request = -1; - } - } -+ -+ _error: -+ alsa_close_pcm(); -+ g_free(thread_buffer); -+ thread_buffer = NULL; -+ pthread_exit(NULL); - } - -+ /* open callback */ - int alsa_open(AFormat fmt, int rate, int nch) - { - debug("Opening device"); -*************** -*** 739,746 **** - if (alsa_cfg.debug) - snd_output_stdio_attach(&logs, stdout, 0); - -- mmap = alsa_cfg.mmap; -- - if (alsa_setup(inputf) < 0) - { - alsa_close(); ---- 789,794 ---- -*************** -*** 751,763 **** - - convertb = xmms_convert_buffers_new(); - -! alsa_total_written = 0; - going = TRUE; - paused = FALSE; -- force_start = FALSE; -- -- snd_pcm_prepare(alsa_pcm); - - return 1; - } - ---- 799,823 ---- - - convertb = xmms_convert_buffers_new(); - -! output_time_offset = 0; -! alsa_total_written = alsa_hw_written = 0; - going = TRUE; - paused = FALSE; - -+ thread_buffer_size = (guint64)alsa_cfg.thread_buffer_time * inputf->bps / 1000; -+ if (thread_buffer_size < hw_buffer_size) -+ thread_buffer_size = hw_buffer_size * 2; -+ if (thread_buffer_size < 8192) -+ thread_buffer_size = 8192; -+ thread_buffer_size += hw_buffer_size; -+ thread_buffer_size -= thread_buffer_size % hw_period_size; -+ thread_buffer = g_malloc0(thread_buffer_size); -+ wr_index = rd_index = 0; -+ pause_request = FALSE; -+ flush_request = -1; -+ -+ pthread_create(&audio_thread, NULL, alsa_loop, NULL); -+ - return 1; - } - -*************** -*** 787,792 **** ---- 847,854 ---- - - f->rate = rate; - f->channels = channels; -+ f->sample_bits = snd_pcm_format_physical_width(f->format); -+ f->bps = (rate * f->sample_bits * channels) >> 3; - - return f; - } -*************** -*** 806,812 **** - int err; - snd_pcm_hw_params_t *hwparams; - snd_pcm_sw_params_t *swparams; -! int alsa_buffer_time, bits_per_sample; - unsigned int alsa_period_time; - snd_pcm_uframes_t alsa_buffer_size, alsa_period_size; - ---- 868,874 ---- - int err; - snd_pcm_hw_params_t *hwparams; - snd_pcm_sw_params_t *swparams; -! int alsa_buffer_time; - unsigned int alsa_period_time; - snd_pcm_uframes_t alsa_buffer_size, alsa_period_size; - -*************** -*** 816,824 **** - alsa_stereo_convert_func = NULL; - alsa_frequency_convert_func = NULL; - -! outputf = snd_format_from_xmms(effectf->xmms_format, -! effectf->rate, -! effectf->channels); - - debug("Opening device: %s", alsa_cfg.pcm_device); - /* FIXME: Can snd_pcm_open() return EAGAIN? */ ---- 878,885 ---- - alsa_stereo_convert_func = NULL; - alsa_frequency_convert_func = NULL; - -! g_free(outputf); -! outputf = snd_format_from_xmms(f->xmms_format, f->rate, f->channels); - - debug("Opening device: %s", alsa_cfg.pcm_device); - /* FIXME: Can snd_pcm_open() return EAGAIN? */ -*************** -*** 829,838 **** - g_warning("alsa_setup(): Failed to open pcm device (%s): %s", - alsa_cfg.pcm_device, snd_strerror(-err)); - alsa_pcm = NULL; - return -1; - } -- snd_pcm_nonblock(alsa_pcm, FALSE); - - if (alsa_cfg.debug) - { - snd_pcm_info_t *info; ---- 890,903 ---- - g_warning("alsa_setup(): Failed to open pcm device (%s): %s", - alsa_cfg.pcm_device, snd_strerror(-err)); - alsa_pcm = NULL; -+ g_free(outputf); -+ outputf = NULL; - return -1; - } - -+ /* doesn't care about non-blocking */ -+ /* snd_pcm_nonblock(alsa_pcm, 0); */ -+ - if (alsa_cfg.debug) - { - snd_pcm_info_t *info; -*************** -*** 856,872 **** - return -1; - } - -! if (mmap && -! (err = snd_pcm_hw_params_set_access(alsa_pcm, hwparams, -! SND_PCM_ACCESS_MMAP_INTERLEAVED)) < 0) -! { -! g_message("alsa_setup(): Cannot set mmap'ed mode: %s. " -! "falling back to direct write", snd_strerror(-err)); -! mmap = 0; -! } -! -! if (!mmap && -! (err = snd_pcm_hw_params_set_access(alsa_pcm, hwparams, - SND_PCM_ACCESS_RW_INTERLEAVED)) < 0) - { - g_warning("alsa_setup(): Cannot set direct write mode: %s", ---- 921,927 ---- - return -1; - } - -! if ((err = snd_pcm_hw_params_set_access(alsa_pcm, hwparams, - SND_PCM_ACCESS_RW_INTERLEAVED)) < 0) - { - g_warning("alsa_setup(): Cannot set direct write mode: %s", -*************** -*** 894,910 **** - break; - } - } -! if (outputf->format != effectf->format) - { - outputf->xmms_format = - format_from_alsa(outputf->format); - debug("Converting format from %d to %d", -! effectf->xmms_format, outputf->xmms_format); - if (outputf->xmms_format < 0) - return -1; - alsa_convert_func = - xmms_convert_get_func(outputf->xmms_format, -! effectf->xmms_format); - if (alsa_convert_func == NULL) - return -1; - } ---- 949,965 ---- - break; - } - } -! if (outputf->format != f->format) - { - outputf->xmms_format = - format_from_alsa(outputf->format); - debug("Converting format from %d to %d", -! f->xmms_format, outputf->xmms_format); - if (outputf->xmms_format < 0) - return -1; - alsa_convert_func = - xmms_convert_get_func(outputf->xmms_format, -! f->xmms_format); - if (alsa_convert_func == NULL) - return -1; - } -*************** -*** 918,931 **** - } - - snd_pcm_hw_params_set_channels_near(alsa_pcm, hwparams, &outputf->channels); -! if (outputf->channels != effectf->channels) - { - debug("Converting channels from %d to %d", -! effectf->channels, outputf->channels); - alsa_stereo_convert_func = - xmms_convert_get_channel_func(outputf->xmms_format, - outputf->channels, -! effectf->channels); - if (alsa_stereo_convert_func == NULL) - return -1; - } ---- 973,986 ---- - } - - snd_pcm_hw_params_set_channels_near(alsa_pcm, hwparams, &outputf->channels); -! if (outputf->channels != f->channels) - { - debug("Converting channels from %d to %d", -! f->channels, outputf->channels); - alsa_stereo_convert_func = - xmms_convert_get_channel_func(outputf->xmms_format, - outputf->channels, -! f->channels); - if (alsa_stereo_convert_func == NULL) - return -1; - } -*************** -*** 936,945 **** - g_warning("alsa_setup(): No usable samplerate available."); - return -1; - } -! if (outputf->rate != effectf->rate) - { - debug("Converting samplerate from %d to %d", -! effectf->rate, outputf->rate); - alsa_frequency_convert_func = - xmms_convert_get_frequency_func(outputf->xmms_format, - outputf->channels); ---- 991,1000 ---- - g_warning("alsa_setup(): No usable samplerate available."); - return -1; - } -! if (outputf->rate != f->rate) - { - debug("Converting samplerate from %d to %d", -! f->rate, outputf->rate); - alsa_frequency_convert_func = - xmms_convert_get_frequency_func(outputf->xmms_format, - outputf->channels); -*************** -*** 947,960 **** - return -1; - } - -! alsa_buffer_time = alsa_cfg.buffer_time * 1000; -! if ((err = snd_pcm_hw_params_set_buffer_time_near(alsa_pcm, hwparams, -! &alsa_buffer_time, 0)) < 0) -! { -! g_warning("alsa_setup(): Set buffer time failed: %s.", -! snd_strerror(-err)); -! return -1; -! } - - alsa_period_time = alsa_cfg.period_time * 1000; - if ((err = snd_pcm_hw_params_set_period_time_near(alsa_pcm, hwparams, ---- 1002,1009 ---- - return -1; - } - -! outputf->sample_bits = snd_pcm_format_physical_width(outputf->format); -! outputf->bps = (outputf->rate * outputf->sample_bits * outputf->channels) >> 3; - - alsa_period_time = alsa_cfg.period_time * 1000; - if ((err = snd_pcm_hw_params_set_period_time_near(alsa_pcm, hwparams, -*************** -*** 965,970 **** ---- 1014,1028 ---- - return -1; - } - -+ alsa_buffer_time = alsa_cfg.buffer_time * 1000; -+ if ((err = snd_pcm_hw_params_set_buffer_time_near(alsa_pcm, hwparams, -+ &alsa_buffer_time, 0)) < 0) -+ { -+ g_warning("alsa_setup(): Set buffer time failed: %s.", -+ snd_strerror(-err)); -+ return -1; -+ } -+ - if (snd_pcm_hw_params(alsa_pcm, hwparams) < 0) - { - if (alsa_cfg.debug) -*************** -*** 1011,1037 **** - snd_pcm_dump(alsa_pcm, logs); - } - -! bits_per_sample = snd_pcm_format_physical_width(outputf->format); -! alsa_bps = (outputf->rate * bits_per_sample * outputf->channels) >> 3; -! -! if (mmap) -! { -! int chn; -! buffer = g_malloc(alsa_period_size * bits_per_sample / 8 * outputf->channels); -! areas = g_malloc0(outputf->channels * sizeof(snd_pcm_channel_area_t)); -! -! for (chn = 0; chn < outputf->channels; chn++) -! { -! areas[chn].addr = buffer; -! areas[chn].first = chn * bits_per_sample; -! areas[chn].step = outputf->channels * bits_per_sample; -! } - } - - debug("Device setup: buffer time: %i, size: %i.", alsa_buffer_time, -! snd_pcm_frames_to_bytes(alsa_pcm, alsa_buffer_size)); - debug("bits per sample: %i; frame size: %i; Bps: %i", -! bits_per_sample, snd_pcm_frames_to_bytes(alsa_pcm, 1), alsa_bps); - - return 0; - } ---- 1069,1096 ---- - snd_pcm_dump(alsa_pcm, logs); - } - -! hw_buffer_size = snd_pcm_frames_to_bytes(alsa_pcm, alsa_buffer_size); -! hw_period_size = snd_pcm_frames_to_bytes(alsa_pcm, alsa_period_size); -! if (inputf->bps != outputf->bps) { -! int align = (inputf->sample_bits * inputf->channels) / 8; -! hw_buffer_size_in = ((guint64)hw_buffer_size * inputf->bps + -! outputf->bps/2) / outputf->bps; -! hw_period_size_in = ((guint64)hw_period_size * inputf->bps + -! outputf->bps/2) / outputf->bps; -! hw_buffer_size_in -= hw_buffer_size_in % align; -! hw_period_size_in -= hw_period_size_in % align; -! } else { -! hw_buffer_size_in = hw_buffer_size; -! hw_period_size_in = hw_period_size; - } - - debug("Device setup: buffer time: %i, size: %i.", alsa_buffer_time, -! hw_buffer_size); -! debug("Device setup: period time: %i, size: %i.", alsa_period_time, -! hw_period_size); - debug("bits per sample: %i; frame size: %i; Bps: %i", -! snd_pcm_format_physical_width(outputf->format), -! snd_pcm_frames_to_bytes(alsa_pcm, 1), outputf->bps); - - return 0; - } -diff -rc xmms-1.2.10-orig/Output/alsa/configure.c xmms-1.2.10/Output/alsa/configure.c -*** xmms-1.2.10-orig/Output/alsa/configure.c 2004-01-28 00:09:39.000000000 +0100 ---- xmms-1.2.10/Output/alsa/configure.c 2006-01-27 00:28:49.000000000 +0100 -*************** -*** 20,27 **** - #include - - static GtkWidget *configure_win = NULL; -! static GtkWidget *buffer_time_spin, *period_time_spin; -! static GtkWidget *mmap_button, *mixer_card_spin, *softvolume_toggle_button; - - static GtkWidget *devices_combo, *mixer_devices_combo; - ---- 20,27 ---- - #include - - static GtkWidget *configure_win = NULL; -! static GtkWidget *buffer_time_spin, *period_time_spin, *thread_buffer_time_spin; -! static GtkWidget *mixer_card_spin, *softvolume_toggle_button; - - static GtkWidget *devices_combo, *mixer_devices_combo; - -*************** -*** 36,42 **** - alsa_cfg.pcm_device = GET_CHARS(GTK_COMBO(devices_combo)->entry); - alsa_cfg.buffer_time = GET_SPIN_INT(buffer_time_spin); - alsa_cfg.period_time = GET_SPIN_INT(period_time_spin); -! alsa_cfg.mmap = GET_TOGGLE(mmap_button); - alsa_cfg.soft_volume = GET_TOGGLE(softvolume_toggle_button); - alsa_cfg.mixer_card = GET_SPIN_INT(mixer_card_spin); - alsa_cfg.mixer_device = GET_CHARS(GTK_COMBO(mixer_devices_combo)->entry); ---- 36,42 ---- - alsa_cfg.pcm_device = GET_CHARS(GTK_COMBO(devices_combo)->entry); - alsa_cfg.buffer_time = GET_SPIN_INT(buffer_time_spin); - alsa_cfg.period_time = GET_SPIN_INT(period_time_spin); -! alsa_cfg.thread_buffer_time = GET_SPIN_INT(thread_buffer_time_spin); - alsa_cfg.soft_volume = GET_TOGGLE(softvolume_toggle_button); - alsa_cfg.mixer_card = GET_SPIN_INT(mixer_card_spin); - alsa_cfg.mixer_device = GET_CHARS(GTK_COMBO(mixer_devices_combo)->entry); -*************** -*** 51,57 **** - - xmms_cfg_write_int(cfgfile, "ALSA", "buffer_time", alsa_cfg.buffer_time); - xmms_cfg_write_int(cfgfile, "ALSA", "period_time", alsa_cfg.period_time); -! xmms_cfg_write_boolean(cfgfile,"ALSA","mmap",alsa_cfg.mmap); - xmms_cfg_write_string(cfgfile,"ALSA","pcm_device", alsa_cfg.pcm_device); - xmms_cfg_write_int(cfgfile, "ALSA", "mixer_card", alsa_cfg.mixer_card); - xmms_cfg_write_string(cfgfile,"ALSA","mixer_device", alsa_cfg.mixer_device); ---- 51,57 ---- - - xmms_cfg_write_int(cfgfile, "ALSA", "buffer_time", alsa_cfg.buffer_time); - xmms_cfg_write_int(cfgfile, "ALSA", "period_time", alsa_cfg.period_time); -! xmms_cfg_write_int(cfgfile, "ALSA", "thread_buffer_time", alsa_cfg.thread_buffer_time); - xmms_cfg_write_string(cfgfile,"ALSA","pcm_device", alsa_cfg.pcm_device); - xmms_cfg_write_int(cfgfile, "ALSA", "mixer_card", alsa_cfg.mixer_card); - xmms_cfg_write_string(cfgfile,"ALSA","mixer_device", alsa_cfg.mixer_device); -*************** -*** 212,219 **** - GtkWidget *dev_vbox, *adevice_frame, *adevice_box; - GtkWidget *mixer_frame, *mixer_box, *mixer_card_box; - GtkWidget *buffer_frame, *buffer_vbox, *buffer_table; -! GtkWidget *buffer_time_label, *period_time_label; -! GtkObject *buffer_time_adj, *period_time_adj, *mixer_card_adj; - GtkWidget *bbox, *ok, *cancel; - - if (configure_win) ---- 212,219 ---- - GtkWidget *dev_vbox, *adevice_frame, *adevice_box; - GtkWidget *mixer_frame, *mixer_box, *mixer_card_box; - GtkWidget *buffer_frame, *buffer_vbox, *buffer_table; -! GtkWidget *buffer_time_label, *period_time_label, *thread_buffer_time_label; -! GtkObject *buffer_time_adj, *period_time_adj, *thread_buffer_time_adj, *mixer_card_adj; - GtkWidget *bbox, *ok, *cancel; - - if (configure_win) -*************** -*** 312,318 **** - - gtk_container_set_border_width(GTK_CONTAINER(buffer_vbox), 5); - -! buffer_table = gtk_table_new(2, 2, FALSE); - gtk_table_set_row_spacings(GTK_TABLE(buffer_table), 5); - gtk_table_set_col_spacings(GTK_TABLE(buffer_table), 5); - gtk_box_pack_start(GTK_BOX(buffer_vbox), buffer_table, FALSE, FALSE, 0); ---- 312,318 ---- - - gtk_container_set_border_width(GTK_CONTAINER(buffer_vbox), 5); - -! buffer_table = gtk_table_new(2, 3, FALSE); - gtk_table_set_row_spacings(GTK_TABLE(buffer_table), 5); - gtk_table_set_col_spacings(GTK_TABLE(buffer_table), 5); - gtk_box_pack_start(GTK_BOX(buffer_vbox), buffer_table, FALSE, FALSE, 0); -*************** -*** 345,354 **** - gtk_table_attach(GTK_TABLE(buffer_table), period_time_spin, - 1, 2, 1, 2, 0, 0, 0, 0); - -! mmap_button = gtk_check_button_new_with_label(_("Mmap mode")); -! gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(mmap_button), -! alsa_cfg.mmap); -! gtk_box_pack_start(GTK_BOX(buffer_vbox), mmap_button, FALSE, FALSE, 0); - - gtk_notebook_append_page(GTK_NOTEBOOK(notebook), buffer_frame, - gtk_label_new(_("Advanced settings"))); ---- 345,363 ---- - gtk_table_attach(GTK_TABLE(buffer_table), period_time_spin, - 1, 2, 1, 2, 0, 0, 0, 0); - -! thread_buffer_time_label = gtk_label_new(_("Thread buffer time (ms):")); -! gtk_label_set_justify(GTK_LABEL(thread_buffer_time_label), GTK_JUSTIFY_LEFT); -! gtk_misc_set_alignment(GTK_MISC(thread_buffer_time_label), 0, 0.5); -! gtk_table_attach(GTK_TABLE(buffer_table), thread_buffer_time_label, -! 0, 1, 2, 3, GTK_FILL, 0, 0, 0); -! thread_buffer_time_adj = gtk_adjustment_new(alsa_cfg.thread_buffer_time, -! 1000, 1000000, 100, 100, 100); -! thread_buffer_time_spin = gtk_spin_button_new(GTK_ADJUSTMENT(thread_buffer_time_adj), -! 8, 0); -! -! gtk_widget_set_usize(thread_buffer_time_spin, 60, -1); -! gtk_table_attach(GTK_TABLE(buffer_table), thread_buffer_time_spin, -! 1, 2, 2, 3, 0, 0, 0, 0); - - gtk_notebook_append_page(GTK_NOTEBOOK(notebook), buffer_frame, - gtk_label_new(_("Advanced settings"))); -diff -rc xmms-1.2.10-orig/Output/alsa/init.c xmms-1.2.10/Output/alsa/init.c -*** xmms-1.2.10-orig/Output/alsa/init.c 2004-01-11 17:27:26.000000000 +0100 ---- xmms-1.2.10/Output/alsa/init.c 2006-01-27 00:28:49.000000000 +0100 -*************** -*** 29,36 **** - memset(&alsa_cfg, 0, sizeof (alsa_cfg)); - alsa_cfg.buffer_time = 500; - alsa_cfg.period_time = 50; - alsa_cfg.debug = 0; -- alsa_cfg.mmap = 1; - alsa_cfg.vol.left = 100; - alsa_cfg.vol.right = 100; - ---- 29,36 ---- - memset(&alsa_cfg, 0, sizeof (alsa_cfg)); - alsa_cfg.buffer_time = 500; - alsa_cfg.period_time = 50; -+ alsa_cfg.thread_buffer_time = 3000; - alsa_cfg.debug = 0; - alsa_cfg.vol.left = 100; - alsa_cfg.vol.right = 100; - -*************** -*** 44,51 **** - xmms_cfg_read_int(cfgfile, "ALSA", "mixer_card", &alsa_cfg.mixer_card); - xmms_cfg_read_int(cfgfile, "ALSA", "buffer_time", &alsa_cfg.buffer_time); - xmms_cfg_read_int(cfgfile, "ALSA", "period_time", &alsa_cfg.period_time); -! xmms_cfg_read_boolean(cfgfile, "ALSA", "mmap", &alsa_cfg.mmap); -! xmms_cfg_read_int(cfgfile, "ALSA", "period_time", &alsa_cfg.period_time); - xmms_cfg_read_boolean(cfgfile, "ALSA", "soft_volume", - &alsa_cfg.soft_volume); - xmms_cfg_read_int(cfgfile, "ALSA", "volume_left", &alsa_cfg.vol.left); ---- 44,50 ---- - xmms_cfg_read_int(cfgfile, "ALSA", "mixer_card", &alsa_cfg.mixer_card); - xmms_cfg_read_int(cfgfile, "ALSA", "buffer_time", &alsa_cfg.buffer_time); - xmms_cfg_read_int(cfgfile, "ALSA", "period_time", &alsa_cfg.period_time); -! xmms_cfg_read_int(cfgfile, "ALSA", "thread_buffer_time", &alsa_cfg.thread_buffer_time); - xmms_cfg_read_boolean(cfgfile, "ALSA", "soft_volume", - &alsa_cfg.soft_volume); - xmms_cfg_read_int(cfgfile, "ALSA", "volume_left", &alsa_cfg.vol.left); diff --git a/pkgs/applications/audio/xmms/default.nix b/pkgs/applications/audio/xmms/default.nix deleted file mode 100644 index 6152e325bb61..000000000000 --- a/pkgs/applications/audio/xmms/default.nix +++ /dev/null @@ -1,21 +0,0 @@ -{stdenv, fetchurl, alsaLib, esound, libogg, libvorbis, glib, gtk}: - -stdenv.mkDerivation { - name = "xmms-1.2.10"; - - src = fetchurl { - url = http://nixos.org/tarballs/xmms-1.2.10.tar.bz2; - md5 = "03a85cfc5e1877a2e1f7be4fa1d3f63c"; - }; - - # Patch borrowed from SuSE 10.0 to fix pause/continue on ALSA. - patches = [./alsa.patch]; - - buildInputs = [alsaLib esound libogg libvorbis glib gtk]; - - meta = { - description = "A music player very similar to Winamp"; - homepage = http://www.xmms.org; - platforms = stdenv.lib.platforms.linux; - }; -} diff --git a/pkgs/development/libraries/glib/1.2.x.nix b/pkgs/development/libraries/glib/1.2.x.nix deleted file mode 100644 index 8aa5005b6171..000000000000 --- a/pkgs/development/libraries/glib/1.2.x.nix +++ /dev/null @@ -1,12 +0,0 @@ -{stdenv, fetchurl}: - -stdenv.mkDerivation { - name = "glib-1.2.10"; - src = fetchurl { - url = ftp://ftp.gtk.org/pub/gtk/v1.2/glib-1.2.10.tar.gz; - md5 = "6fe30dad87c77b91b632def29dd69ef9"; - }; - # Patch for gcc 3.4 compatibility. Based on - # http://cvs.openpkg.org/chngview?cn=16208. - patches = [./gcc34.patch]; -} diff --git a/pkgs/development/libraries/glib/gcc34.patch b/pkgs/development/libraries/glib/gcc34.patch deleted file mode 100644 index 13d35c822099..000000000000 --- a/pkgs/development/libraries/glib/gcc34.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff -rc glib-orig/glib.h glib-1.2.10/glib.h -*** glib-orig/glib.h 2001-02-27 04:44:38.000000000 +0100 ---- glib-1.2.10/glib.h 2004-09-22 10:22:01.000000000 +0200 -*************** -*** 272,278 **** - /* Wrap the gcc __PRETTY_FUNCTION__ and __FUNCTION__ variables with - * macros, so we can refer to them as strings unconditionally. - */ -! #ifdef __GNUC__ - #define G_GNUC_FUNCTION __FUNCTION__ - #define G_GNUC_PRETTY_FUNCTION __PRETTY_FUNCTION__ - #else /* !__GNUC__ */ ---- 272,278 ---- - /* Wrap the gcc __PRETTY_FUNCTION__ and __FUNCTION__ variables with - * macros, so we can refer to them as strings unconditionally. - */ -! #if defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ < 4) - #define G_GNUC_FUNCTION __FUNCTION__ - #define G_GNUC_PRETTY_FUNCTION __PRETTY_FUNCTION__ - #else /* !__GNUC__ */ diff --git a/pkgs/development/libraries/gtk+/1.2.x.nix b/pkgs/development/libraries/gtk+/1.2.x.nix deleted file mode 100644 index 9f6d8b7881e8..000000000000 --- a/pkgs/development/libraries/gtk+/1.2.x.nix +++ /dev/null @@ -1,12 +0,0 @@ -{stdenv, fetchurl, x11, glib}: - -stdenv.mkDerivation { - name = "gtk+-1.2.10"; - - src = fetchurl { - url = ftp://ftp.gtk.org/pub/gtk/v1.2/gtk+-1.2.10.tar.gz; - md5 = "4d5cb2fc7fb7830e4af9747a36bfce20"; - }; - - propagatedBuildInputs = [x11 glib]; -} diff --git a/pkgs/misc/emulators/generator/default.nix b/pkgs/misc/emulators/generator/default.nix deleted file mode 100644 index b4bf72d79d6b..000000000000 --- a/pkgs/misc/emulators/generator/default.nix +++ /dev/null @@ -1,13 +0,0 @@ -{stdenv, fetchurl, gtk, SDL, nasm, zlib, bzip2, libjpeg}: - -stdenv.mkDerivation { - name = "generator-0.35-cbiere-r3"; - src = fetchurl { - url = http://www.ghostwhitecrab.com/generator/generator-0.35-cbiere-r3.tar.bz2; - sha256 = "0jw2ibbjyms9sklapnb6pzkmk680zsqq9pd51r2n4957zv1f36jd"; - }; - configureFlags = "--with-gtk --with-raze --with-sdl-audio"; - buildInputs = [gtk SDL nasm zlib bzip2 libjpeg]; - # Only required when not using SDL audio. -# patches = [./soundcard.patch]; -} diff --git a/pkgs/misc/emulators/generator/soundcard.patch b/pkgs/misc/emulators/generator/soundcard.patch deleted file mode 100644 index 73cf8fad6953..000000000000 --- a/pkgs/misc/emulators/generator/soundcard.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff -rc generator-orig/main/gensoundp-unix.c generator-0.35-cbiere/main/gensoundp-unix.c -*** generator-orig/main/gensoundp-unix.c 2004-09-26 19:07:44.000000000 +0200 ---- generator-0.35-cbiere/main/gensoundp-unix.c 2004-09-26 19:07:56.000000000 +0200 -*************** -*** 196,202 **** - #include - #else - -! #ifdef HAVE_SOUNDCARD_H - #include - #endif - ---- 196,202 ---- - #include - #else - -! #ifdef HAVE_SYS_SOUNDCARD_H - #include - #endif - diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8c1733925c24..bee9769e92e1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3690,14 +3690,6 @@ let inherit (pkgs.gtkLibs) glib gtk pango cairo gdk_pixbuf; - gtkLibs1x = recurseIntoAttrs (let callPackage = newScope pkgs.gtkLibs1x; in { - - glib = callPackage ../development/libraries/glib/1.2.x.nix { }; - - gtk = callPackage ../development/libraries/gtk+/1.2.x.nix { }; - - }); - gtkLibs224 = recurseIntoAttrs (let callPackage = pkgs.newScope pkgs.gtkLibs224; in { glib = callPackage ../development/libraries/glib/2.28.x.nix { }; @@ -7765,12 +7757,6 @@ let xineUI = callPackage ../applications/video/xine-ui { }; - xmms = callPackage ../applications/audio/xmms { - inherit (gnome) esound; - inherit (gtkLibs1x) glib gtk; - stdenv = overrideGCC stdenv gcc34; # due to problems with gcc 4.x - }; - xneur = callPackage ../applications/misc/xneur { GStreamer=gst_all.gstreamer; inherit (gtkLibs) glib gtk pango atk gdk_pixbuf; @@ -8533,10 +8519,6 @@ let python = pythonFull; }; - generator = callPackage ../misc/emulators/generator { - inherit (gtkLibs1x) gtk; - }; - gensgs = callPackage_i686 ../misc/emulators/gens-gs { }; ghostscript = callPackage ../misc/ghostscript { From 12e953b944811d0bac899ed25cd2f4c44d5e64c0 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 28 Jan 2012 14:37:53 +0000 Subject: [PATCH 021/179] gmp: updated (unused) version 5.0.1 to 5.0.3 svn path=/nixpkgs/trunk/; revision=31908 --- pkgs/development/libraries/gmp/{5.0.1.nix => 5.0.3.nix} | 6 +++--- pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) rename pkgs/development/libraries/gmp/{5.0.1.nix => 5.0.3.nix} (91%) diff --git a/pkgs/development/libraries/gmp/5.0.1.nix b/pkgs/development/libraries/gmp/5.0.3.nix similarity index 91% rename from pkgs/development/libraries/gmp/5.0.1.nix rename to pkgs/development/libraries/gmp/5.0.3.nix index 338debaa81e7..be2753c83522 100644 --- a/pkgs/development/libraries/gmp/5.0.1.nix +++ b/pkgs/development/libraries/gmp/5.0.3.nix @@ -5,11 +5,11 @@ let in stdenv.mkDerivation rec { - name = "gmp-5.0.1"; + name = "gmp-5.0.3"; src = fetchurl { url = "mirror://gnu/gmp/${name}.tar.bz2"; - sha256 = "1yrr14l6vvhm1g27y8nb3c75j0i4ii4k1gw7ik08safk3zq119m2"; + sha256 = "dcafe9989c7f332b373e1f766af8e9cd790fc802fdec422a1910a6ef783480e3"; }; buildNativeInputs = [m4]; @@ -55,7 +55,7 @@ stdenv.mkDerivation rec { homepage = http://gmplib.org/; license = "LGPLv3+"; - maintainers = [ stdenv.lib.maintainers.ludo ]; + maintainers = [ stdenv.lib.maintainers.ludo stdenv.lib.maintainers.simons ]; platforms = stdenv.lib.platforms.all; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bee9769e92e1..8249ab6d7328 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3632,6 +3632,8 @@ let cxx = false; }; + gmp5 = callPackage ../development/libraries/gmp/5.0.3.nix { }; + gmpxx = appendToName "with-cxx" (gmp.override { cxx = true; }); gobjectIntrospection = callPackage ../development/libraries/gobject-introspection { }; From 71c28d0e336ea3d5582d1e889b1adca4db00ab54 Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Sat, 28 Jan 2012 14:39:56 +0000 Subject: [PATCH 022/179] Use meta.platforms svn path=/nixpkgs/trunk/; revision=31909 --- pkgs/applications/video/MPlayer/default.nix | 1 + .../libraries/aspell/dictionaries.nix | 1 + .../tools/build-managers/cmake/default.nix | 2 +- .../tools/misc/pkgconfig/default.nix | 1 + .../linux/wpa_supplicant/default.nix | 5 ++++ pkgs/top-level/all-packages.nix | 9 ++++---- pkgs/top-level/release.nix | 23 ------------------- 7 files changed, 13 insertions(+), 29 deletions(-) diff --git a/pkgs/applications/video/MPlayer/default.nix b/pkgs/applications/video/MPlayer/default.nix index 0566b4bbe291..a594bd4e2c61 100644 --- a/pkgs/applications/video/MPlayer/default.nix +++ b/pkgs/applications/video/MPlayer/default.nix @@ -166,5 +166,6 @@ stdenv.mkDerivation rec { homepage = "http://mplayerhq.hu"; license = "GPL"; maintainers = [ stdenv.lib.maintainers.eelco stdenv.lib.maintainers.urkud ]; + platforms = stdenv.lib.platforms.linux; }; } diff --git a/pkgs/development/libraries/aspell/dictionaries.nix b/pkgs/development/libraries/aspell/dictionaries.nix index 3bd1d82e0b59..90a9469ee541 100644 --- a/pkgs/development/libraries/aspell/dictionaries.nix +++ b/pkgs/development/libraries/aspell/dictionaries.nix @@ -22,6 +22,7 @@ let meta = { description = "Aspell dictionary for ${fullName}"; + platforms = stdenv.lib.platforms.all; }; }; diff --git a/pkgs/development/tools/build-managers/cmake/default.nix b/pkgs/development/tools/build-managers/cmake/default.nix index 80958e2885ff..a3a10525c085 100644 --- a/pkgs/development/tools/build-managers/cmake/default.nix +++ b/pkgs/development/tools/build-managers/cmake/default.nix @@ -55,7 +55,7 @@ stdenv.mkDerivation rec { meta = { homepage = http://www.cmake.org/; description = "Cross-Platform Makefile Generator"; - platforms = if useQt4 then qt4.meta.platforms else stdenv.lib.platforms.unix; + platforms = if useQt4 then qt4.meta.platforms else stdenv.lib.platforms.all; maintainers = [ stdenv.lib.maintainers.urkud ]; }; } diff --git a/pkgs/development/tools/misc/pkgconfig/default.nix b/pkgs/development/tools/misc/pkgconfig/default.nix index ae5048f6306a..f323a7d7dbc1 100644 --- a/pkgs/development/tools/misc/pkgconfig/default.nix +++ b/pkgs/development/tools/misc/pkgconfig/default.nix @@ -19,6 +19,7 @@ stdenv.mkDerivation (rec { meta = { description = "A tool that allows packages to find out information about other packages"; homepage = http://pkg-config.freedesktop.org/wiki/; + platforms = stdenv.lib.platforms.all; }; } // (if stdenv.system == "mips64el-linux" then diff --git a/pkgs/os-specific/linux/wpa_supplicant/default.nix b/pkgs/os-specific/linux/wpa_supplicant/default.nix index 8d216f7899dd..6ffc2c5a0597 100644 --- a/pkgs/os-specific/linux/wpa_supplicant/default.nix +++ b/pkgs/os-specific/linux/wpa_supplicant/default.nix @@ -89,5 +89,10 @@ gui = stdenv.mkDerivation { mkdir -pv $out/share/icons cp -av icons/hicolor $out/share/icons ''; + + meta = { + description = "Qt4 wpa_supplicant client"; + inherit (qt4.meta) platforms; + }; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8249ab6d7328..671a9fb33367 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3688,11 +3688,11 @@ let gtkmathview = callPackage ../development/libraries/gtkmathview { }; - gtkLibs = pkgs.gtkLibs224; + gtkLibs = recurseIntoAttrs pkgs.gtkLibs224; inherit (pkgs.gtkLibs) glib gtk pango cairo gdk_pixbuf; - gtkLibs224 = recurseIntoAttrs (let callPackage = pkgs.newScope pkgs.gtkLibs224; in { + gtkLibs224 = let callPackage = pkgs.newScope pkgs.gtkLibs224; in { glib = callPackage ../development/libraries/glib/2.28.x.nix { }; @@ -3716,7 +3716,7 @@ let gob2 = callPackage ../development/tools/misc/gob2 { }; - }); + }; gtkLibs3x = let callPackage = newScope pkgs.gtkLibs3x; in { glib = callPackage ../development/libraries/glib/2.30.x.nix { }; @@ -6264,8 +6264,7 @@ let wirelesstools = callPackage ../os-specific/linux/wireless-tools { }; - wpa_supplicant = callPackage ../os-specific/linux/wpa_supplicant { - }; + wpa_supplicant = callPackage ../os-specific/linux/wpa_supplicant { }; wpa_supplicant_gui = pkgs.wpa_supplicant.gui; diff --git a/pkgs/top-level/release.nix b/pkgs/top-level/release.nix index e1976b5d7329..08f6e993b11f 100644 --- a/pkgs/top-level/release.nix +++ b/pkgs/top-level/release.nix @@ -15,7 +15,6 @@ with (import ./release-lib.nix); } // (mapTestOn ((packagesWithMetaPlatform pkgs) // rec { - MPlayer = linux; abcde = linux; alsaUtils = linux; apacheHttpd = linux; @@ -52,12 +51,10 @@ with (import ./release-lib.nix); chatzilla = linux; cksfv = all; classpath = linux; - cmake = all; consolekit = linux; coreutils = all; cpio = all; cron = linux; - cups = linux; cvs = linux; db4 = all; ddrescue = linux; @@ -237,7 +234,6 @@ with (import ./release-lib.nix); php = linux; pidgin = linux; pinentry = linux; - pkgconfig = all; pltScheme = linux; pmccabe = linux; portmap = linux; @@ -333,7 +329,6 @@ with (import ./release-lib.nix); wine = ["i686-linux"]; wireshark = linux; wirelesstools = linux; - wpa_supplicant = linux; wxGTK = linux; x11_ssh_askpass = linux; xchm = linux; @@ -354,20 +349,6 @@ with (import ./release-lib.nix); zsh = linux; zsnes = ["i686-linux"]; - aspellDicts = { - de = all; - en = all; - es = all; - fr = all; - nl = all; - ru = all; - }; - - dbus_all = { - libs = linux; - tools = linux; - }; - emacs22Packages = { bbdb = linux; cedet = linux; @@ -391,10 +372,6 @@ with (import ./release-lib.nix); gnome_vfs = linux; }; - gtkLibs = { - gtk = linux; - }; - /* haskellPackages_ghc6104 = { ghc = ghcSupported; From a819ccf0305c267ab86e99c146451bf4db289da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andres=20L=C3=B6h?= Date: Sat, 28 Jan 2012 15:34:53 +0000 Subject: [PATCH 023/179] Updated GHC snapshot to ghc-7.4.1-rc2. svn path=/nixpkgs/trunk/; revision=31910 --- pkgs/development/compilers/ghc/head.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/compilers/ghc/head.nix b/pkgs/development/compilers/ghc/head.nix index 0d3301df60a3..0a08cc3a4e70 100644 --- a/pkgs/development/compilers/ghc/head.nix +++ b/pkgs/development/compilers/ghc/head.nix @@ -1,13 +1,13 @@ {stdenv, fetchurl, ghc, perl, gmp, ncurses, darwinInstallNameToolUtility}: stdenv.mkDerivation rec { - version = "7.4.0.20111219"; + version = "7.4.0.20120126"; name = "ghc-${version}"; src = fetchurl { - url = "http://haskell.org/ghc/dist/7.4.1-rc1/${name}-src.tar.bz2"; - sha256 = "11imfag07wr9s5vf12yh6bz4hjfbw20i1c7n8py9fa4vx7va676n"; + url = "http://haskell.org/ghc/dist/7.4.1-rc2/${name}-src.tar.bz2"; + sha256 = "0arnvzhwjzk2z3m2891b4z13p4v1c84f31jgyj13a1fbfpylgs64"; }; buildInputs = [ghc perl gmp ncurses] ++ From 467722ad1a49256842d2b42e38bee451309d8479 Mon Sep 17 00:00:00 2001 From: Cillian de Roiste Date: Sun, 29 Jan 2012 13:39:30 +0000 Subject: [PATCH 024/179] Patching the prefix, since it is hardcoded. The application seems to work correctly now, although it does crash with my current gtk theme (oxygen) when adding a stream. Using the gnome gtk-icon-theme does work, but this is probably just a bug in the oxygen gtk theme and should be fixed there. svn path=/nixpkgs/trunk/; revision=31913 --- pkgs/applications/video/dvswitch/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/video/dvswitch/default.nix b/pkgs/applications/video/dvswitch/default.nix index 9ef9b6785608..8803fe0a7868 100644 --- a/pkgs/applications/video/dvswitch/default.nix +++ b/pkgs/applications/video/dvswitch/default.nix @@ -1,5 +1,6 @@ -{ stdenv, fetchurl, alsaLib, boost, cmake, gtkmm, libXau, libXdmcp, - libXv, libav, pixman, libpthreadstubs, pkgconfig }: +{ stdenv, fetchurl, alsaLib, boost, cmake, gtkmm, libXau, libXdmcp +, libXv, libav, pixman, libpthreadstubs, pkgconfig +}: stdenv.mkDerivation rec { name = "dvswitch-${version}"; @@ -15,13 +16,12 @@ stdenv.mkDerivation rec { libpthreadstubs pixman pkgconfig ]; - installPhase = " - ensureDir $out - cp src/dv* $out/ - "; + patchPhase = '' + sed -e "s@prefix /usr/local@prefix $out@" -i CMakeLists.txt + ''; meta = with stdenv.lib; { - description = "digital video mixer intended for interactive live mixing of several incoming DV video streams"; + description = "interactive live video mixer for DV streams"; homepage = "http://dvswitch.alioth.debian.org"; license = licenses.gpl2Plus; maintainers = [ maintainers.goibhniu ]; From 1bc0a60bf8f4b0c854925091814e6ca373555580 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 29 Jan 2012 16:23:53 +0000 Subject: [PATCH 025/179] haskell-explicit-exception: added version 0.1.6 svn path=/nixpkgs/trunk/; revision=31914 --- .../haskell/explicit-exception/default.nix | 16 ++++++++++++++++ pkgs/top-level/haskell-packages.nix | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 pkgs/development/libraries/haskell/explicit-exception/default.nix diff --git a/pkgs/development/libraries/haskell/explicit-exception/default.nix b/pkgs/development/libraries/haskell/explicit-exception/default.nix new file mode 100644 index 000000000000..efa2f2fb7ddc --- /dev/null +++ b/pkgs/development/libraries/haskell/explicit-exception/default.nix @@ -0,0 +1,16 @@ +{ cabal, transformers }: + +cabal.mkDerivation (self: { + pname = "explicit-exception"; + version = "0.1.6"; + sha256 = "0pgdbaav952bwcmbfwg0fgvc15k57rlnw131bs3pnp8rqdbxfv39"; + isLibrary = true; + isExecutable = true; + buildDepends = [ transformers ]; + meta = { + homepage = "http://www.haskell.org/haskellwiki/Exception"; + description = "Exceptions which are explicit in the type signature"; + 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 9a7c7cab1f7c..70338b6bbea8 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -647,6 +647,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); erf = callPackage ../development/libraries/haskell/erf {}; + explicitException = callPackage ../development/libraries/haskell/explicit-exception {}; + filepath = callPackage ../development/libraries/haskell/filepath {}; extensibleExceptions_0_1_1_0 = callPackage ../development/libraries/haskell/extensible-exceptions/0.1.1.0.nix {}; From 5792ce967fb884d818cae7123f52204e317cf6b2 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 29 Jan 2012 16:23:57 +0000 Subject: [PATCH 026/179] haskell-multiarg: added version 0.1.0.0 svn path=/nixpkgs/trunk/; revision=31915 --- .../libraries/haskell/multiarg/default.nix | 22 +++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 4 +++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/libraries/haskell/multiarg/default.nix diff --git a/pkgs/development/libraries/haskell/multiarg/default.nix b/pkgs/development/libraries/haskell/multiarg/default.nix new file mode 100644 index 000000000000..5f12e4cee922 --- /dev/null +++ b/pkgs/development/libraries/haskell/multiarg/default.nix @@ -0,0 +1,22 @@ +{ cabal, explicitException, QuickCheck, text, transformers +, utf8String +}: + +cabal.mkDerivation (self: { + pname = "multiarg"; + version = "0.1.0.0"; + sha256 = "010mph49fq0rdr5dmm4pdlbmfmaaas8wffa9p1cgprs2ic1hnx3g"; + buildDepends = [ + explicitException QuickCheck text transformers utf8String + ]; + meta = { + homepage = "https://github.com/massysett/multiarg"; + description = "Combinators to build command line parsers"; + license = self.stdenv.lib.licenses.mit; + 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 70338b6bbea8..8c9fdf59f917 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -993,7 +993,9 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); mtl2 = self.mtl_2_0_1_0; mtl = self.mtl1; - mtlparse = callPackage ../development/libraries/haskell/mtlparse {}; + mtlparse = callPackage ../development/libraries/haskell/mtlparse {}; + + multiarg = callPackage ../development/libraries/haskell/multiarg {}; multiplate = callPackage ../development/libraries/haskell/multiplate {}; From bab857eb385befeec17e102472ad022e2d639a16 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 29 Jan 2012 16:24:00 +0000 Subject: [PATCH 027/179] haskell-blaze-builder: updated to version 0.3.1.0 svn path=/nixpkgs/trunk/; revision=31916 --- pkgs/development/libraries/haskell/blaze-builder/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/blaze-builder/default.nix b/pkgs/development/libraries/haskell/blaze-builder/default.nix index a21d9b7c96f4..f58353938950 100644 --- a/pkgs/development/libraries/haskell/blaze-builder/default.nix +++ b/pkgs/development/libraries/haskell/blaze-builder/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "blaze-builder"; - version = "0.3.0.2"; - sha256 = "009njfm9g0fs7kg6q9c7qqfl69msw9q3d07xh3xg7layh09khsdb"; + version = "0.3.1.0"; + sha256 = "192pqmr6mcjnflqpvp93nycfbdi0ifab8ifvrxvmwbrdkiidvai6"; buildDepends = [ text ]; meta = { homepage = "http://github.com/meiersi/blaze-builder"; From e83a85ed6d2c7e98f906064154cce39e90db5fe1 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 29 Jan 2012 16:24:02 +0000 Subject: [PATCH 028/179] haskell-bytestring-lexing: updated to version 0.3.0 svn path=/nixpkgs/trunk/; revision=31917 --- .../libraries/haskell/bytestring-lexing/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/haskell/bytestring-lexing/default.nix b/pkgs/development/libraries/haskell/bytestring-lexing/default.nix index 446a628dd050..d67c9907f99a 100644 --- a/pkgs/development/libraries/haskell/bytestring-lexing/default.nix +++ b/pkgs/development/libraries/haskell/bytestring-lexing/default.nix @@ -2,12 +2,12 @@ cabal.mkDerivation (self: { pname = "bytestring-lexing"; - version = "0.2.1"; - sha256 = "0pibn4phfp346i6i8zwic5zlbq9lqa6ifyx6bdl3p5c8jy3v23r9"; + version = "0.3.0"; + sha256 = "1jrhmljy7m84imcmvsarv74i3hcm60ja9pl1ww3lm0zgi0rrddqd"; buildTools = [ alex ]; meta = { - homepage = "http://code.haskell.org/~dons/code/bytestring-lexing"; - description = "Parse literals efficiently from bytestrings"; + homepage = "http://code.haskell.org/~wren/"; + description = "Parse literals efficiently from strict or lazy bytestrings"; license = self.stdenv.lib.licenses.bsd3; platforms = self.ghc.meta.platforms; maintainers = [ From a11aaa99b271b76fd86fe54f26a69d59f6b272bf Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 29 Jan 2012 16:24:05 +0000 Subject: [PATCH 029/179] haskell-explicit-exception: updated to version 0.1.6 svn path=/nixpkgs/trunk/; revision=31918 --- .../libraries/haskell/explicit-exception/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/haskell/explicit-exception/default.nix b/pkgs/development/libraries/haskell/explicit-exception/default.nix index efa2f2fb7ddc..2a95faafaf66 100644 --- a/pkgs/development/libraries/haskell/explicit-exception/default.nix +++ b/pkgs/development/libraries/haskell/explicit-exception/default.nix @@ -12,5 +12,9 @@ cabal.mkDerivation (self: { description = "Exceptions which are explicit in the type signature"; license = self.stdenv.lib.licenses.bsd3; platforms = self.ghc.meta.platforms; + maintainers = [ + self.stdenv.lib.maintainers.andres + self.stdenv.lib.maintainers.simons + ]; }; }) From cab0e0119db28fc398eb764a8fa2b71f94f01dae Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 29 Jan 2012 16:24:08 +0000 Subject: [PATCH 030/179] haskell-mime-mail: updated to version 0.4.1.1 svn path=/nixpkgs/trunk/; revision=31919 --- pkgs/development/libraries/haskell/mime-mail/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/mime-mail/default.nix b/pkgs/development/libraries/haskell/mime-mail/default.nix index db2734c87396..a8b7e7330253 100644 --- a/pkgs/development/libraries/haskell/mime-mail/default.nix +++ b/pkgs/development/libraries/haskell/mime-mail/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "mime-mail"; - version = "0.4.1.0"; - sha256 = "1czjxxpv2w8zvwm6nkv0rr47rdl84s5f5xvf3r4kjaw44a6jfgg0"; + version = "0.4.1.1"; + sha256 = "01dshc6ysjkab9hl851948l6k0lwgm1fqmyk97zy7wckb252w6y4"; buildDepends = [ base64Bytestring blazeBuilder random text ]; meta = { homepage = "http://github.com/snoyberg/mime-mail"; From 293b72cf194d1dd67964bcf46db10c1c154d62cb Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 29 Jan 2012 16:24:11 +0000 Subject: [PATCH 031/179] haskell-neither: updated to version 0.3.1 svn path=/nixpkgs/trunk/; revision=31920 --- pkgs/development/libraries/haskell/neither/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/neither/default.nix b/pkgs/development/libraries/haskell/neither/default.nix index d8a737019fc7..e5b3e6a8c487 100644 --- a/pkgs/development/libraries/haskell/neither/default.nix +++ b/pkgs/development/libraries/haskell/neither/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "neither"; - version = "0.3.0.1"; - sha256 = "1vr8zap3vp28dr48s510lfrbfhw5yz25vng6wyk20582lv4j2mz8"; + version = "0.3.1"; + sha256 = "1n00v2xs2ghm273barc3bbi67wgpvyihhgl1ij7qczyp9fhqlyfk"; buildDepends = [ failure transformers ]; meta = { homepage = "http://github.com/snoyberg/neither"; From 086e9a090b7891d9f8761cf219845e65c74c7ace Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 29 Jan 2012 16:24:14 +0000 Subject: [PATCH 032/179] haskell-cabal2nix: updated to version 1.24 svn path=/nixpkgs/trunk/; revision=31921 --- pkgs/development/tools/haskell/cabal2nix/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/haskell/cabal2nix/default.nix b/pkgs/development/tools/haskell/cabal2nix/default.nix index 1b98d7821e52..ce342d42d576 100644 --- a/pkgs/development/tools/haskell/cabal2nix/default.nix +++ b/pkgs/development/tools/haskell/cabal2nix/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "cabal2nix"; - version = "1.23"; - sha256 = "1rnvnzwb4n89hq4wpyq1h6x773r7y23clqj5slsfnas7j3alzz8c"; + version = "1.24"; + sha256 = "1k0dqj64z08n1kgdjgdk3ra3l8xw1bg7yh0s8s4pv5g2ajwj2f83"; isLibrary = false; isExecutable = true; buildDepends = [ hackageDb HTTP mtl nixosTypes regexPosix ]; From c277a6bc53b23617b01de9360f2fbc8f46acd106 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sun, 29 Jan 2012 18:00:22 +0000 Subject: [PATCH 033/179] Update ruby 1.8 This contains a fix for http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4815. All users of ruby 1.8 for web-facing apps should upgrade svn path=/nixpkgs/trunk/; revision=31922 --- pkgs/development/interpreters/ruby/ruby-18.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/ruby/ruby-18.nix b/pkgs/development/interpreters/ruby/ruby-18.nix index fcd57205dcfe..ad89fae057bf 100644 --- a/pkgs/development/interpreters/ruby/ruby-18.nix +++ b/pkgs/development/interpreters/ruby/ruby-18.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { src = fetchurl { url = "ftp://ftp.ruby-lang.org/pub/ruby/1.8/${name}.tar.gz"; - sha256 = "0qf50wa1ziziagnxarj8z6yrsivrhchq1j9017ff3z2z7d31l9kc"; + sha256 = "0b4n9d1idmsl47cq3mw6zhi94yp048ljlfgg9qdblbkvnd7arp1g"; }; # Have `configure' avoid `/usr/bin/nroff' in non-chroot builds. @@ -45,7 +45,7 @@ stdenv.mkDerivation rec { passthru = rec { majorVersion = "1.8"; minorVersion = "7"; - patchLevel = "330"; + patchLevel = "357"; libPath = "lib/ruby/${majorVersion}"; gemPath = "lib/ruby/gems/${majorVersion}"; }; From 32fcb78c1f7b95d4c9bb0f37f5fac175e235f05b Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sun, 29 Jan 2012 18:22:35 +0000 Subject: [PATCH 034/179] Update rubygems svn path=/nixpkgs/trunk/; revision=31923 --- .../interpreters/ruby/generated.nix | 94 +++++++++---------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/pkgs/development/interpreters/ruby/generated.nix b/pkgs/development/interpreters/ruby/generated.nix index 1fea718aeb53..e5e951ef7de5 100644 --- a/pkgs/development/interpreters/ruby/generated.nix +++ b/pkgs/development/interpreters/ruby/generated.nix @@ -3,12 +3,12 @@ g: # Get dependencies from patched gems { aliases = { - actionmailer = g.actionmailer_3_2_0; - actionpack = g.actionpack_3_2_0; - activemodel = g.activemodel_3_2_0; - activerecord = g.activerecord_3_2_0; - activeresource = g.activeresource_3_2_0; - activesupport = g.activesupport_3_2_0; + actionmailer = g.actionmailer_3_2_1; + actionpack = g.actionpack_3_2_1; + activemodel = g.activemodel_3_2_1; + activerecord = g.activerecord_3_2_1; + activeresource = g.activeresource_3_2_1; + activesupport = g.activesupport_3_2_1; arel = g.arel_3_0_0; atoulme_Antwrap = g.atoulme_Antwrap_0_7_1; builder = g.builder_3_0_0; @@ -20,7 +20,7 @@ g: # Get dependencies from patched gems hike = g.hike_1_2_1; hoe = g.hoe_2_3_3; i18n = g.i18n_0_6_0; - journey = g.journey_1_0_0; + journey = g.journey_1_0_1; json = g.json_1_6_5; json_pure = g.json_pure_1_6_5; mail = g.mail_2_4_1; @@ -35,12 +35,12 @@ g: # Get dependencies from patched gems rack_cache = g.rack_cache_1_1; rack_ssl = g.rack_ssl_1_3_2; rack_test = g.rack_test_0_6_1; - rails = g.rails_3_2_0; - railties = g.railties_3_2_0; + rails = g.rails_3_2_1; + railties = g.railties_3_2_1; rake = g.rake_0_9_2_2; - rb_fsevent = g.rb_fsevent_0_4_3_1; + rb_fsevent = g.rb_fsevent_0_9_0; rdoc = g.rdoc_3_12; - rjb = g.rjb_1_3_8; + rjb = g.rjb_1_3_9; rspec = g.rspec_2_1_0; rspec_core = g.rspec_core_2_1_0; rspec_expectations = g.rspec_expectations_2_1_0; @@ -57,71 +57,71 @@ g: # Get dependencies from patched gems }; gem_nix_args = [ ''buildr'' ''nix'' ''rails'' ''rake'' ''rb-fsevent'' ''sass'' ]; gems = { - actionmailer_3_2_0 = { + actionmailer_3_2_1 = { basename = ''actionmailer''; meta = { description = ''Email composition, delivery, and receiving framework (part of Rails).''; homepage = ''http://www.rubyonrails.org''; longDescription = ''Email on Rails. Compose, deliver, receive, and test emails using the familiar controller/view pattern. First-class support for multipart email and attachments.''; }; - name = ''actionmailer-3.2.0''; + name = ''actionmailer-3.2.1''; requiredGems = [ g.mail_2_4_1 ]; - sha256 = ''0fhvdbxw93y00awz4xfkyzn78zfca210zwqx7xvaizipaq5rs8d6''; + sha256 = ''02xxyz3r3cfhiynx73y2ybabdhf9x9vxfqj215p8477w6cm2sh47''; }; - actionpack_3_2_0 = { + actionpack_3_2_1 = { basename = ''actionpack''; meta = { description = ''Web-flow and rendering framework putting the VC in MVC (part of Rails).''; homepage = ''http://www.rubyonrails.org''; longDescription = ''Web apps on Rails. Simple, battle-tested conventions for building and testing MVC web applications. Works with any Rack-compatible server.''; }; - name = ''actionpack-3.2.0''; - requiredGems = [ g.activemodel_3_2_0 g.rack_cache_1_1 g.rack_test_0_6_1 g.journey_1_0_0 g.sprockets_2_1_2 g.erubis_2_7_0 ]; - sha256 = ''08fghqa01x6bkcnyik36jaxdd6jp05sh1mnxgqaw4snjwrl5b4ki''; + name = ''actionpack-3.2.1''; + requiredGems = [ g.activemodel_3_2_1 g.rack_cache_1_1 g.rack_test_0_6_1 g.journey_1_0_1 g.sprockets_2_1_2 g.erubis_2_7_0 ]; + sha256 = ''0yz5h8c4m1a8590kdsx2akg3jmbrsjf9wbd950lv19c3sm3sahzx''; }; - activemodel_3_2_0 = { + activemodel_3_2_1 = { basename = ''activemodel''; meta = { description = ''A toolkit for building modeling frameworks (part of Rails).''; homepage = ''http://www.rubyonrails.org''; longDescription = ''A toolkit for building modeling frameworks like Active Record and Active Resource. Rich support for attributes, callbacks, validations, observers, serialization, internationalization, and testing.''; }; - name = ''activemodel-3.2.0''; + name = ''activemodel-3.2.1''; requiredGems = [ g.builder_3_0_0 ]; - sha256 = ''1785g6b1daqncgsyc1kjwhxypx6xk9m3pw5vhipfv2bvygan3y9z''; + sha256 = ''1m639mdhkjwxw7szl3r7ay4s8yjwbh2sfjyv2d4wrkiq4wpz694m''; }; - activerecord_3_2_0 = { + activerecord_3_2_1 = { basename = ''activerecord''; meta = { description = ''Object-relational mapper framework (part of Rails).''; homepage = ''http://www.rubyonrails.org''; longDescription = ''Databases on Rails. Build a persistent domain model by mapping database tables to Ruby classes. Strong conventions for associations, validations, aggregations, migrations, and testing come baked-in.''; }; - name = ''activerecord-3.2.0''; + name = ''activerecord-3.2.1''; requiredGems = [ g.arel_3_0_0 g.tzinfo_0_3_31 ]; - sha256 = ''065yyv3y1wkzm3ykdxd43hmz3q4gadc9qb3psjydqalgii0dr1ww''; + sha256 = ''0xch76nqfgyx750z89lsxkvgshci1y49f4h7xmgiq9nmr4gfxxmv''; }; - activeresource_3_2_0 = { + activeresource_3_2_1 = { basename = ''activeresource''; meta = { description = ''REST modeling framework (part of Rails).''; homepage = ''http://www.rubyonrails.org''; longDescription = ''REST on Rails. Wrap your RESTful web app with Ruby classes and work with them like Active Record models.''; }; - name = ''activeresource-3.2.0''; + name = ''activeresource-3.2.1''; requiredGems = [ ]; - sha256 = ''0lklbgmf1in8cm3w1xl9nxc5yjr9a884fjslyjca42kc7j90mbr7''; + sha256 = ''0fvsi8kikmp287dym3s4y1np9s0sxm0q65kx0idgsp9bi89wpl0d''; }; - activesupport_3_2_0 = { + activesupport_3_2_1 = { basename = ''activesupport''; meta = { description = ''A toolkit of support libraries and Ruby core extensions extracted from the Rails framework.''; homepage = ''http://www.rubyonrails.org''; longDescription = ''A toolkit of support libraries and Ruby core extensions extracted from the Rails framework. Rich support for multibyte strings, internationalization, time zones, and testing.''; }; - name = ''activesupport-3.2.0''; + name = ''activesupport-3.2.1''; requiredGems = [ g.i18n_0_6_0 g.multi_json_1_0_4 ]; - sha256 = ''07x0jl4fnjgiblffbwmjnqzly765l55y9zmyad8divcaa1qjqwmb''; + sha256 = ''0ajkzsa7467jp7lxgjcsl94nqkvw9d0h492rypljs0f8f1fn744v''; }; arel_3_0_0 = { basename = ''arel''; @@ -160,7 +160,7 @@ database compatibility and query generation.''; check out Buildr!''; }; name = ''atoulme-Antwrap-0.7.1''; - requiredGems = [ g.rjb_1_3_8 ]; + requiredGems = [ g.rjb_1_3_9 ]; sha256 = ''0r9jy2asyma8h0878nhjfbi00qvb4yapc8glngvmkkj21zbx2mfy''; }; builder_2_1_2 = { @@ -339,16 +339,16 @@ See class rdoc for help. Hint: ri Hoe''; requiredGems = [ ]; sha256 = ''1pgmfhmh2wv409g7kla30mkp8jpslvp25vcmmim1figl87wpn3j0''; }; - journey_1_0_0 = { + journey_1_0_1 = { basename = ''journey''; meta = { description = ''Journey is a router''; homepage = ''http://github.com/tenderlove/journey''; longDescription = ''Journey is a router. It routes requests.''; }; - name = ''journey-1.0.0''; + name = ''journey-1.0.1''; requiredGems = [ ]; - sha256 = ''0xphcsxksy0m78j1mphzp0lyj7bgrabdnlgs18lrkwivs0gryhdd''; + sha256 = ''1fccxnc9ji6j2p1avfph701b0lf2rzsksyipfavhv8kjwlzvsglx''; }; json_1_6_5 = { basename = ''json''; @@ -554,27 +554,27 @@ request helpers feature.''; requiredGems = [ ]; sha256 = ''0hq5q8fjhbb7szzrj7k0l21z025c4qsxqzd5qmgivikhymw10ws0''; }; - rails_3_2_0 = { + rails_3_2_1 = { basename = ''rails''; meta = { description = ''Full-stack web application framework.''; homepage = ''http://www.rubyonrails.org''; longDescription = ''Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity. It encourages beautiful code by favoring convention over configuration.''; }; - name = ''rails-3.2.0''; - requiredGems = [ g.activesupport_3_2_0 g.actionpack_3_2_0 g.activerecord_3_2_0 g.activeresource_3_2_0 g.actionmailer_3_2_0 g.railties_3_2_0 g.bundler_1_0_21 ]; - sha256 = ''10jc4ri60ivd5z54k0i4l1pdqbmswwhh05ydca7axpd9d1ss1jzh''; + name = ''rails-3.2.1''; + requiredGems = [ g.activesupport_3_2_1 g.actionpack_3_2_1 g.activerecord_3_2_1 g.activeresource_3_2_1 g.actionmailer_3_2_1 g.railties_3_2_1 g.bundler_1_0_21 ]; + sha256 = ''0fx5pmywvh0s263dd6qv34rbc4qxnla5qzh8r30zrip24j6w0nr5''; }; - railties_3_2_0 = { + railties_3_2_1 = { basename = ''railties''; meta = { description = ''Tools for creating, working with, and running Rails applications.''; homepage = ''http://www.rubyonrails.org''; longDescription = ''Rails internals: application bootup, plugins, generators, and rake tasks.''; }; - name = ''railties-3.2.0''; + name = ''railties-3.2.1''; requiredGems = [ g.thor_0_14_6 g.rack_ssl_1_3_2 g.rdoc_3_12 ]; - sha256 = ''0zwdjj6kfgpslqywyhc171pfp9zc26hs4z0fx0hysyvvc961qhb3''; + sha256 = ''13ya1jryzz8s1j1vh1qw44y282vjjk72nf3a6dzsna9z8yx4278h''; }; rake_0_8_7 = { basename = ''rake''; @@ -598,16 +598,16 @@ request helpers feature.''; requiredGems = [ ]; sha256 = ''19n4qp5gzbcqy9ajh56kgwqv9p9w2hnczhyvaqz0nlvk9diyng6q''; }; - rb_fsevent_0_4_3_1 = { + rb_fsevent_0_9_0 = { basename = ''rb_fsevent''; meta = { description = ''Very simple & usable FSEvents API''; homepage = ''http://rubygems.org/gems/rb-fsevent''; longDescription = ''FSEvents API with Signals catching (without RubyCocoa)''; }; - name = ''rb-fsevent-0.4.3.1''; + name = ''rb-fsevent-0.9.0''; requiredGems = [ ]; - sha256 = ''043w4695j7f9n0hawy9y0yci36linivsbp23v52v2qg64ji7hsiw''; + sha256 = ''1sk7y6bxq8p4vh2cv4zk320xlxrbs15n2knyyvdd1bj89wmmiryy''; }; rdoc_3_12 = { basename = ''rdoc''; @@ -636,7 +636,7 @@ See RDoc for a description of RDoc's markup and basic use.''; requiredGems = [ ]; sha256 = ''0jhj1y84yzdr11li784m255jvc191vs8d3zck21rfqv4z4zpifz6''; }; - rjb_1_3_8 = { + rjb_1_3_9 = { basename = ''rjb''; meta = { description = ''Ruby Java bridge''; @@ -644,9 +644,9 @@ See RDoc for a description of RDoc's markup and basic use.''; longDescription = ''RJB is a bridge program that connect between Ruby and Java with Java Native Interface. ''; }; - name = ''rjb-1.3.8''; + name = ''rjb-1.3.9''; requiredGems = [ ]; - sha256 = ''0cwc3zh9ydwzvc176vjin7jpf8riisyjdwbywrmvc426kjyrrwwr''; + sha256 = ''0iimwg22jacbidc43lngqndbnvgv4f9zppxzy008gi88pqgargsd''; }; rspec_2_1_0 = { basename = ''rspec''; From 7fb6f58f99981ffc2522405b78eb68b552df5a52 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sun, 29 Jan 2012 20:40:32 +0000 Subject: [PATCH 035/179] Add the selenium-webdriver rubygem svn path=/nixpkgs/trunk/; revision=31924 --- .../interpreters/ruby/generated.nix | 54 ++++++++++++++++++- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/ruby/generated.nix b/pkgs/development/interpreters/ruby/generated.nix index e5e951ef7de5..712b2fe04837 100644 --- a/pkgs/development/interpreters/ruby/generated.nix +++ b/pkgs/development/interpreters/ruby/generated.nix @@ -14,8 +14,10 @@ g: # Get dependencies from patched gems builder = g.builder_3_0_0; buildr = g.buildr_1_4_6; bundler = g.bundler_1_0_21; + childprocess = g.childprocess_0_3_0; diff_lcs = g.diff_lcs_1_1_3; erubis = g.erubis_2_7_0; + ffi = g.ffi_1_0_11; highline = g.highline_1_5_1; hike = g.hike_1_2_1; hoe = g.hoe_2_3_3; @@ -46,8 +48,9 @@ g: # Get dependencies from patched gems rspec_expectations = g.rspec_expectations_2_1_0; rspec_mocks = g.rspec_mocks_2_1_0; rubyforge = g.rubyforge_2_0_4; - rubyzip = g.rubyzip_0_9_4; + rubyzip = g.rubyzip_0_9_5; sass = g.sass_3_1_12; + selenium_webdriver = g.selenium_webdriver_2_18_0; sprockets = g.sprockets_2_1_2; thor = g.thor_0_14_6; tilt = g.tilt_1_3_3; @@ -55,7 +58,7 @@ g: # Get dependencies from patched gems tzinfo = g.tzinfo_0_3_31; xml_simple = g.xml_simple_1_0_12; }; - gem_nix_args = [ ''buildr'' ''nix'' ''rails'' ''rake'' ''rb-fsevent'' ''sass'' ]; + gem_nix_args = [ ''buildr'' ''nix'' ''rails'' ''rake'' ''rb-fsevent'' ''sass'' ''selenium-webdriver'' ]; gems = { actionmailer_3_2_1 = { basename = ''actionmailer''; @@ -217,6 +220,17 @@ for those one-off tasks, with a language that's a joy to use. requiredGems = [ ]; sha256 = ''0lcxz75vvgqib43wxzv6021qs5d7bxhnds4j4q27hzqs982cn0s6''; }; + childprocess_0_3_0 = { + basename = ''childprocess''; + meta = { + description = ''This gem aims at being a simple and reliable solution for controlling external programs running in the background on any Ruby / OS combination.''; + homepage = ''http://github.com/jarib/childprocess''; + longDescription = ''This gem aims at being a simple and reliable solution for controlling external programs running in the background on any Ruby / OS combination.''; + }; + name = ''childprocess-0.3.0''; + requiredGems = [ g.ffi_1_0_11 ]; + sha256 = ''1bvx6nkc1m24wjjybk943x1vjr51c98l0pwj73hj1r237307jyb4''; + }; diff_lcs_1_1_2 = { basename = ''diff_lcs''; meta = { @@ -276,6 +290,21 @@ is the MIT license.''; requiredGems = [ ]; sha256 = ''1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3''; }; + ffi_1_0_11 = { + basename = ''ffi''; + meta = { + description = ''Ruby-FFI is a ruby extension for programmatically loading dynamic libraries, binding functions within them, and calling those functions from Ruby code''; + homepage = ''http://wiki.github.com/ffi/ffi''; + longDescription = ''Ruby-FFI is a ruby extension for programmatically loading dynamic +libraries, binding functions within them, and calling those functions +from Ruby code. Moreover, a Ruby-FFI extension works without changes +on Ruby and JRuby. Discover why should you write your next extension +using Ruby-FFI here[http://wiki.github.com/ffi/ffi/why-use-ffi].''; + }; + name = ''ffi-1.0.11''; + requiredGems = [ ]; + sha256 = ''177v6bwslyb7n961nw11i8x9j43k796s11bs98kynl58n0a3n99b''; + }; highline_1_5_1 = { basename = ''highline''; meta = { @@ -738,6 +767,16 @@ See RDoc for a description of RDoc's markup and basic use.''; requiredGems = [ ]; sha256 = ''1lc67ssqyz49rm1jms5sdvy6x41h070razxlmvj4j5q6w3qixx41''; }; + rubyzip_0_9_5 = { + basename = ''rubyzip''; + meta = { + description = ''rubyzip is a ruby module for reading and writing zip files''; + homepage = ''http://github.com/aussiegeek/rubyzip''; + }; + name = ''rubyzip-0.9.5''; + requiredGems = [ ]; + sha256 = ''1744bds6lc46d1kjfgapf34p2574s70hcyz63877qkry4db2jb54''; + }; sass_3_1_12 = { basename = ''sass''; meta = { @@ -753,6 +792,17 @@ See RDoc for a description of RDoc's markup and basic use.''; requiredGems = [ ]; sha256 = ''10n2aic53290xsa3y3d63523s8xc78w5q5gqpns6cbljkdwb0ndy''; }; + selenium_webdriver_2_18_0 = { + basename = ''selenium_webdriver''; + meta = { + description = ''The next generation developer focused tool for automated testing of webapps''; + homepage = ''http://selenium.googlecode.com''; + longDescription = ''WebDriver is a tool for writing automated tests of websites. It aims to mimic the behaviour of a real user, and as such interacts with the HTML of the application.''; + }; + name = ''selenium-webdriver-2.18.0''; + requiredGems = [ g.rubyzip_0_9_5 g.childprocess_0_3_0 ]; + sha256 = ''17am2b6bjv62s02n1bfmhg9wz5n7sppzh7dx1llp28ivj2hdfbg9''; + }; sprockets_2_1_2 = { basename = ''sprockets''; meta = { From 55e74d5e9a03902604fd108d6e51c04dd4126392 Mon Sep 17 00:00:00 2001 From: Alexander Tsamutali Date: Sun, 29 Jan 2012 22:44:49 +0000 Subject: [PATCH 036/179] games/oilrush: New nixpkg. svn path=/nixpkgs/trunk/; revision=31925 --- pkgs/games/oilrush/default.nix | 74 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 76 insertions(+) create mode 100644 pkgs/games/oilrush/default.nix diff --git a/pkgs/games/oilrush/default.nix b/pkgs/games/oilrush/default.nix new file mode 100644 index 000000000000..4605f04e3ae5 --- /dev/null +++ b/pkgs/games/oilrush/default.nix @@ -0,0 +1,74 @@ +{ stdenv, getConfig, fetchurl, libX11, libXext, libXinerama, libXrandr +, libXrender, fontconfig, freetype, openal }: +stdenv.mkDerivation { + name = "oilrush"; + src = + let + url = getConfig [ "oilrush" "url" ] null; + sha256 = getConfig [ "oilrush" "sha256" ] null; + in + assert url != null && sha256 != null; + fetchurl { inherit url sha256; }; + shell = stdenv.shell; + arch = if stdenv.system == "x86_64-linux" then "x64" + else if stdenv.system == "i686-linux" then "x86" + else ""; + unpackPhase = '' + mkdir oilrush + cd oilrush + "$shell" "$src" --tar xf + ''; + patchPhase = '' + cd bin + for f in launcher_$arch libQtCoreUnigine_$arch.so.4 OilRush_$arch + do + patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" $f + done + patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXrender}/lib:${fontconfig}/lib:${freetype}/lib\ + launcher_$arch + patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib\ + libNetwork_$arch.so + patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib\ + libQtCoreUnigine_$arch.so.4 + patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXrender}/lib:${fontconfig}/lib:${freetype}/lib\ + libQtGuiUnigine_$arch.so.4 + patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib\ + libQtNetworkUnigine_$arch.so.4 + patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXrender}/lib:${fontconfig}/lib:${freetype}/lib\ + libQtWebKitUnigine_$arch.so.4 + patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib\ + libQtXmlUnigine_$arch.so.4 + patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib\ + libRakNet_$arch.so + patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXinerama}/lib:${libXrandr}/lib\ + libUnigine_$arch.so + patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXinerama}/lib:${libXrandr}/lib\ + OilRush_$arch + ''; + installPhase = '' + cd .. + mkdir -p "$out/opt/oilrush" + cp -r * "$out/opt/oilrush" + mkdir -p "$out/bin" + cat << EOF > "$out/bin/oilrush" + #! /bin/sh + LD_LIBRARY_PATH=.:${openal}/lib:\$LD_LIBRARY_PATH + cd "$out/opt/oilrush" + exec ./launcher_$arch.sh "\$@" + EOF + chmod +x "$out/bin/oilrush" + ''; + meta = { + description = "A naval strategy game"; + longDescription = '' + Oil Rush is a real-time naval strategy game based on group control. It + combines the strategic challenge of a classical RTS with the sheer fun + of Tower Defense. + ''; + homepage = http://oilrush-game.com/; + license = [ "proprietary" ]; + #maintainers = with stdenv.lib.maintainers; [ astsmtl ]; + #platforms = with stdenv.lib.platforms; linux; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 671a9fb33367..34cb5acf25aa 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7945,6 +7945,8 @@ let njam = callPackage ../games/njam { }; + oilrush = callPackage ../games/oilrush { }; + openttd = callPackage ../games/openttd { zlib = zlibStatic; }; From 67a45c1d25a01c0972f0934bef2f84481e97777e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 30 Jan 2012 09:53:39 +0000 Subject: [PATCH 037/179] MinGW 3.20, and w32api 3.17-2. svn path=/nixpkgs/trunk/; revision=31926 --- pkgs/os-specific/windows/mingwrt/default.nix | 6 +++--- pkgs/os-specific/windows/w32api/default.nix | 13 ++++++++----- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/pkgs/os-specific/windows/mingwrt/default.nix b/pkgs/os-specific/windows/mingwrt/default.nix index aecf43c9123b..e5b42c29467a 100644 --- a/pkgs/os-specific/windows/mingwrt/default.nix +++ b/pkgs/os-specific/windows/mingwrt/default.nix @@ -1,14 +1,14 @@ {stdenv, fetchurl, binutilsCross ? null, gccCross ? null, onlyHeaders ? false}: let - name = "mingwrt-3.18"; + name = "mingwrt-3.20"; in stdenv.mkDerivation (rec { inherit name; src = fetchurl { - url = "mirror://sourceforge/mingw/${name}-mingw32-src.tar.gz"; - sha256 = "0hmxgkxnf6an70g07gmyik46sw1qm204izh6sp923szddvypjjfy"; + url = "mirror://sourceforge/mingw/MinGW/Base/mingw-rt/${name}-mingw32-src.tar.gz"; + sha256 = "02pydg1m8y35nxb4k34nlb5c341y2waq76z42mgdzlcf661r91pi"; }; } // diff --git a/pkgs/os-specific/windows/w32api/default.nix b/pkgs/os-specific/windows/w32api/default.nix index 570b83f671e5..09484911bc1a 100644 --- a/pkgs/os-specific/windows/w32api/default.nix +++ b/pkgs/os-specific/windows/w32api/default.nix @@ -1,16 +1,19 @@ -{stdenv, fetchurl, binutilsCross ? null, gccCross ? null, onlyHeaders ? false}: +{ stdenv, fetchurl, xz, binutilsCross ? null +, gccCross ? null, onlyHeaders ? false }: let - name = "w32api-3.14"; + name = "w32api-3.17-2"; in stdenv.mkDerivation ({ inherit name; - + src = fetchurl { - url = "mirror://sourceforge/mingw/${name}-mingw32-src.tar.gz"; - sha256 = "128ax8a4dlspxsi5fi7bi1aslppqx3kczr1ibzj1z1az48bvwp21"; + url = "mirror://sourceforge/mingw/MinGW/Base/w32api/w32api-3.17/${name}-mingw32-src.tar.lzma"; + sha256 = "09rhnl6zikmdyb960im55jck0rdy5z9nlg3akx68ixn7khf3j8wb"; }; + buildNativeInputs = [ xz ]; + } // (if onlyHeaders then { name = name + "-headers"; From 010edf825c32d90e3ee14eb15d35ef4e40e0184a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 30 Jan 2012 09:53:45 +0000 Subject: [PATCH 038/179] Add pthreads-w32. svn path=/nixpkgs/trunk/; revision=31927 --- .../windows/pthread-w32/default.nix | 53 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++ 2 files changed, 57 insertions(+) create mode 100644 pkgs/os-specific/windows/pthread-w32/default.nix diff --git a/pkgs/os-specific/windows/pthread-w32/default.nix b/pkgs/os-specific/windows/pthread-w32/default.nix new file mode 100644 index 000000000000..39afd119643b --- /dev/null +++ b/pkgs/os-specific/windows/pthread-w32/default.nix @@ -0,0 +1,53 @@ +{ fetchurl, stdenv, mingw_headers }: + +# This file is tweaked for cross-compilation only. +assert stdenv ? cross; + +stdenv.mkDerivation { + name = "pthread-w32-1.10.0"; + + src = fetchurl { + url = "ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-1-10-0-release.tar.gz"; + sha256 = "1vllxxfa9a7mssb1x98a2r736vsv5ll3sjizbr7a8hw8j9p18j7n"; + }; + + configurePhase = + '' sed -i GNUmakefile \ + -e 's/CC=gcc/CC=i686-pc-mingw32-gcc/g ; + s/windres/i686-pc-mingw32-windres/g ; + s/dlltool/i686-pc-mingw32-dlltool/g' + ''; + + buildInputs = [ mingw_headers ]; + + buildPhase = "make GC"; # to build the GNU C dll with C cleanup code + + installPhase = + '' mkdir -p "$out" "$out/include" "$out/lib" + cp -v *pthread*{dll,a} "$out/lib" + cp -v pthread.h semaphore.h sched.h "$out/include" + ''; + + meta = { + description = "POSIX threads for Woe32"; + + longDescription = + '' The POSIX 1003.1-2001 standard defines an application programming + interface (API) for writing multithreaded applications. This + interface is known more commonly as pthreads. A good number of + modern operating systems include a threading library of some kind: + Solaris (UI) threads, Win32 threads, DCE threads, DECthreads, or any + of the draft revisions of the pthreads standard. The trend is that + most of these systems are slowly adopting the pthreads standard API, + with application developers following suit to reduce porting woes. + + Woe32 does not, and is unlikely to ever, support pthreads natively. + This project seeks to provide a freely available and high-quality + solution to this problem. + ''; + + homepage = http://sourceware.org/pthreads-win32/; + + license = "LGPLv2.1+"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 34cb5acf25aa..4bf3f43d4550 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6253,6 +6253,10 @@ let paths = [ w32api mingw_runtime ]; }; + pthreads = callPackage ../os-specific/windows/pthread-w32 { + mingw_headers = mingw_headers2; + }; + wxMSW = callPackage ../os-specific/windows/wxMSW-2.8 { }; }; From 588da3fbf3d7d2d0d6107089c32c90c8cd73495c Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 30 Jan 2012 10:52:01 +0000 Subject: [PATCH 039/179] haskell-packages.nix: cosmetic svn path=/nixpkgs/trunk/; revision=31928 --- pkgs/top-level/haskell-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 8c9fdf59f917..3885912106e9 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1048,7 +1048,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); pathPieces_0_1_0 = callPackage ../development/libraries/haskell/path-pieces/0.1.0.nix {}; pathPieces = self.pathPieces_0_1_0; - pandoc = callPackage ../development/libraries/haskell/pandoc/default.nix {}; + pandoc = callPackage ../development/libraries/haskell/pandoc {}; pandocTypes = callPackage ../development/libraries/haskell/pandoc-types {}; From 9d693c2e4ef725109c637c26b70d49e47f0a8612 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 30 Jan 2012 10:52:04 +0000 Subject: [PATCH 040/179] haskell-cmdargs: added version 0.9.2 svn path=/nixpkgs/trunk/; revision=31929 --- .../haskell/cmdargs/{default.nix => 0.8.nix} | 0 .../libraries/haskell/cmdargs/0.9.2.nix | 20 +++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 8 ++++++-- 3 files changed, 26 insertions(+), 2 deletions(-) rename pkgs/development/libraries/haskell/cmdargs/{default.nix => 0.8.nix} (100%) create mode 100644 pkgs/development/libraries/haskell/cmdargs/0.9.2.nix diff --git a/pkgs/development/libraries/haskell/cmdargs/default.nix b/pkgs/development/libraries/haskell/cmdargs/0.8.nix similarity index 100% rename from pkgs/development/libraries/haskell/cmdargs/default.nix rename to pkgs/development/libraries/haskell/cmdargs/0.8.nix diff --git a/pkgs/development/libraries/haskell/cmdargs/0.9.2.nix b/pkgs/development/libraries/haskell/cmdargs/0.9.2.nix new file mode 100644 index 000000000000..7024b08a6726 --- /dev/null +++ b/pkgs/development/libraries/haskell/cmdargs/0.9.2.nix @@ -0,0 +1,20 @@ +{ cabal, transformers }: + +cabal.mkDerivation (self: { + pname = "cmdargs"; + version = "0.9.2"; + sha256 = "1c0xy4g9b5jqy51qhgq7djafqz27z6q7ya31pgy186pfgl7604kr"; + isLibrary = true; + isExecutable = true; + buildDepends = [ transformers ]; + meta = { + homepage = "http://community.haskell.org/~ndm/cmdargs/"; + description = "Command line argument processing"; + 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 3885912106e9..1898229ec8af 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -531,7 +531,9 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); clientsession = callPackage ../development/libraries/haskell/clientsession {}; - cmdargs = callPackage ../development/libraries/haskell/cmdargs {}; + cmdargs_0_8 = callPackage ../development/libraries/haskell/cmdargs/0.8.nix {}; + cmdargs_0_9_2 = callPackage ../development/libraries/haskell/cmdargs/0.9.2.nix {}; + cmdargs = self.cmdargs_0_9_2; cmdlib = callPackage ../development/libraries/haskell/cmdlib {}; @@ -830,7 +832,9 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); hjsmin = callPackage ../development/libraries/haskell/hjsmin {}; hledger = callPackage ../development/libraries/haskell/hledger {}; - hledgerLib = callPackage ../development/libraries/haskell/hledger-lib {}; + hledgerLib = callPackage ../development/libraries/haskell/hledger-lib { + cmdargs = self.cmdargs_0_8; + }; hledgerVty = callPackage ../development/libraries/haskell/hledger-vty {}; hledgerChart = callPackage ../development/libraries/haskell/hledger-chart {}; hledgerInterest = callPackage ../applications/office/hledger-interest {}; From 8b972e410c740228817bac9627409be1e019330b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 30 Jan 2012 10:52:07 +0000 Subject: [PATCH 041/179] haskell-Chart: updated to version 0.15 svn path=/nixpkgs/trunk/; revision=31930 --- pkgs/development/libraries/haskell/Chart/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/haskell/Chart/default.nix b/pkgs/development/libraries/haskell/Chart/default.nix index daf15c0cb2ee..1976472da233 100644 --- a/pkgs/development/libraries/haskell/Chart/default.nix +++ b/pkgs/development/libraries/haskell/Chart/default.nix @@ -1,13 +1,13 @@ -{ cabal, cairo, colour, dataAccessor, dataAccessorTemplate, gtk -, mtl, time +{ cabal, cairo, colour, dataAccessor, dataAccessorTemplate, mtl +, time }: cabal.mkDerivation (self: { pname = "Chart"; - version = "0.14"; - sha256 = "0ji81j4c2by5zyrdhx1s17j6kqsi3ngr9y1zh7hr9wv7jsrj3rf2"; + version = "0.15"; + sha256 = "1357gqn2ifalknl85n2z9ysf195dnaxm175rp0kmmzbf4vik9gc4"; buildDepends = [ - cairo colour dataAccessor dataAccessorTemplate gtk mtl time + cairo colour dataAccessor dataAccessorTemplate mtl time ]; meta = { homepage = "http://www.dockerz.net/software/chart.html"; From b24279ff398b00f64ffb223e688d5844e43a3664 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 30 Jan 2012 10:52:10 +0000 Subject: [PATCH 042/179] haskell-hledger-chart: updated to version 0.16.1 svn path=/nixpkgs/trunk/; revision=31931 --- pkgs/development/libraries/haskell/hledger-chart/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/haskell/hledger-chart/default.nix b/pkgs/development/libraries/haskell/hledger-chart/default.nix index 84b8c33fc210..020a8dfa2afa 100644 --- a/pkgs/development/libraries/haskell/hledger-chart/default.nix +++ b/pkgs/development/libraries/haskell/hledger-chart/default.nix @@ -11,6 +11,9 @@ cabal.mkDerivation (self: { buildDepends = [ Chart cmdargs colour hledger hledgerLib HUnit safe time ]; + patchPhase = '' + sed -i hledger-chart.cabal -e 's|Chart >= 0.11 && < 0.15|Chart|g' + ''; meta = { homepage = "http://hledger.org"; description = "A pie chart image generator for the hledger accounting tool"; From b2bbcc7d5facb7342d9fb36a0397a7519790c0e4 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 30 Jan 2012 10:52:13 +0000 Subject: [PATCH 043/179] haskell-cabal-ghci: updated to version 0.2.1 svn path=/nixpkgs/trunk/; revision=31932 --- pkgs/development/tools/haskell/cabal-ghci/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/haskell/cabal-ghci/default.nix b/pkgs/development/tools/haskell/cabal-ghci/default.nix index b55127e43bc6..3dd9cb9926ff 100644 --- a/pkgs/development/tools/haskell/cabal-ghci/default.nix +++ b/pkgs/development/tools/haskell/cabal-ghci/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "cabal-ghci"; - version = "0.2.0"; - sha256 = "0920q103g626f8syvn73bwqnix8x6q58xyazys6yinhr7dgi2x6m"; + version = "0.2.1"; + sha256 = "0za0bf59f4a3v5zvyy7h1xvxskrazdga4j1cs6psfv9fv80qig9r"; isLibrary = true; isExecutable = true; meta = { From f1e16ea3c9e7f93f6e9f29586cff016c92fd44d3 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 30 Jan 2012 11:40:16 +0000 Subject: [PATCH 044/179] ikiwiki: updated to version 3.20120115 svn path=/nixpkgs/trunk/; revision=31933 --- pkgs/applications/misc/ikiwiki/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/ikiwiki/default.nix b/pkgs/applications/misc/ikiwiki/default.nix index fc800dc22225..feb507c87320 100644 --- a/pkgs/applications/misc/ikiwiki/default.nix +++ b/pkgs/applications/misc/ikiwiki/default.nix @@ -13,14 +13,14 @@ assert monotoneSupport -> (monotone != null); let name = "ikiwiki"; - version = "3.20120109"; + version = "3.20120115"; in stdenv.mkDerivation { name = "${name}-${version}"; src = fetchurl { url = "http://ftp.de.debian.org/debian/pool/main/i/ikiwiki/${name}_${version}.tar.gz"; - sha256 = "0a47135c039f3dfd62162dd3b250397fcdab2dbb4bf4cf0433099f6e48d6f3e8"; + sha256 = "3145372b3d86068f90348a96f9daf3a3b438d747be0e977358d82ee752499c1f"; }; buildInputs = [ perl TextMarkdown URI HTMLParser HTMLScrubber HTMLTemplate From c5ecd1752cb2cdbea34c586acddbcd908683f139 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 30 Jan 2012 11:40:20 +0000 Subject: [PATCH 045/179] hardlink: initial version Hardlink consolidates duplicate files in a directory hierarchy with hardlinks, similar to "nix-store --optimise". IHMO, this program should be run by the default builder after $out has been set up, to remove redundancy in the generated closures. svn path=/nixpkgs/trunk/; revision=31934 --- pkgs/tools/system/hardlink/default.nix | 37 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/tools/system/hardlink/default.nix diff --git a/pkgs/tools/system/hardlink/default.nix b/pkgs/tools/system/hardlink/default.nix new file mode 100644 index 000000000000..1655fdba6f47 --- /dev/null +++ b/pkgs/tools/system/hardlink/default.nix @@ -0,0 +1,37 @@ +{ fetchurl, stdenv }: + +let + rev = "269cc6"; + + src = fetchurl { + url = "http://pkgs.fedoraproject.org/gitweb/?p=hardlink.git;a=blob_plain;f=hardlink.c;hb=${rev}"; + sha256 = "721c54e653772e11bf0d30fb02aa21b96b147a1b68c0acb4f05cb87e7718bc12"; + name = "hardlink.c"; + }; + + man = fetchurl { + url = "pkgs.fedoraproject.org/gitweb/?p=hardlink.git;a=blob_plain;f=hardlink.1;hb=${rev}"; + sha256 = "2f7e18a0259a2ceae316592e8b18bee525eb7e83fe3bb6b881e5dafa24747f2d"; + name = "hardlink.1"; + }; +in +stdenv.mkDerivation { + name = "hardlink-2010.1.${rev}"; + + phases = ["buildPhase"]; + + buildPhase = '' + mkdir -p $out/bin $out/share/man/man1 + gcc -O2 ${src} -o $out/bin/hardlink + install -m 444 ${man} $out/share/man/man1/hardlink.1 + ''; + + meta = { + homepage = "http://pkgs.fedoraproject.org/gitweb/?p=hardlink.git;a=summary"; + description = "consolidate duplicate files via hardlinks"; + license = stdenv.lib.licenses.gpl2Plus; + + platforms = stdenv.lib.platforms.unix; + maintainers = [ stdenv.lib.maintainers.simons ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4bf3f43d4550..7b43cae587e6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -830,6 +830,8 @@ let pigz = callPackage ../tools/compression/pigz { }; + hardlink = callPackage ../tools/system/hardlink { }; + halibut = callPackage ../tools/typesetting/halibut { }; hddtemp = callPackage ../tools/misc/hddtemp { }; From 399c575139eec01a31f6b9cffed9d59b536786bc Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 30 Jan 2012 16:44:56 +0000 Subject: [PATCH 046/179] * Updated Spotify to 0.6.6.10. svn path=/nixpkgs/trunk/; revision=31935 --- pkgs/applications/audio/spotify/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/audio/spotify/default.nix b/pkgs/applications/audio/spotify/default.nix index 38eb51b93dba..4711d0f29ea2 100644 --- a/pkgs/applications/audio/spotify/default.nix +++ b/pkgs/applications/audio/spotify/default.nix @@ -2,7 +2,7 @@ assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux"; -let version = "0.6.2.291"; in +let version = "0.6.6.10"; in stdenv.mkDerivation { name = "spotify-${version}"; @@ -10,13 +10,13 @@ stdenv.mkDerivation { src = if stdenv.system == "i686-linux" then fetchurl { - url = "http://repository.spotify.com/pool/non-free/s/spotify/spotify-client-qt_${version}.gcccc1f5.116-1_i386.deb"; - sha256 = "164ka9xry9nbnv77w71kzi7bjidlmccw8wnn4fyzavi8pbrpmj08"; + url = "http://repository.spotify.com/pool/non-free/s/spotify/spotify-client-qt_${version}.gbd39032.58-1_i386.deb"; + sha256 = "184wvw2jqihw7bbmd7pgz51nkzvk777imz9pvknv52mggai61523"; } else if stdenv.system == "x86_64-linux" then fetchurl { - url = "http://repository.spotify.com/pool/non-free/s/spotify/spotify-client-qt_${version}.gcccc1f5.116-1_amd64.deb"; - sha256 = "08snnpqd5ldiqv98pwx3fjrhdlwp4arbgda9xnsy92wfk0s85lv8"; + url = "http://repository.spotify.com/pool/non-free/s/spotify/spotify-client-qt_${version}.gbd39032.58-1_amd64.deb"; + sha256 = "0qy4dgcl4y8ymqk8i9vgabik7mq0niqpbkwl3sk8z66znax4am4c"; } else throw "Spotify not supported on this platform."; From 37b404816a45bd66e37617e198d20c2dd0653465 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Mon, 30 Jan 2012 19:05:24 +0000 Subject: [PATCH 047/179] add cowsay svn path=/nixpkgs/trunk/; revision=31936 --- pkgs/tools/misc/cowsay/default.nix | 13 +++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 pkgs/tools/misc/cowsay/default.nix diff --git a/pkgs/tools/misc/cowsay/default.nix b/pkgs/tools/misc/cowsay/default.nix new file mode 100644 index 000000000000..19747e92f0f6 --- /dev/null +++ b/pkgs/tools/misc/cowsay/default.nix @@ -0,0 +1,13 @@ +{ stdenv, fetchurl, perl }: + +stdenv.mkDerivation { + name = "cowsay-3.03"; + src = fetchurl { + url = http://www.nog.net/~tony/warez/cowsay-3.03.tar.gz; + sha256 = "1bxj802na2si2bk5zh7n0b7c33mg8a5n2wnvh0vihl9bmjkp51hb"; + }; + buildInputs = [perl]; + installPhase = '' + bash ./install.sh $out + ''; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7b43cae587e6..7281b659ce22 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -505,6 +505,8 @@ let convertlit = callPackage ../tools/text/convertlit { }; + cowsay = callPackage ../tools/misc/cowsay { }; + unifdef = callPackage ../development/tools/misc/unifdef { }; usb_modeswitch = callPackage ../development/tools/misc/usb-modeswitch { }; From d341b2537c4a11a6b05e4ee27a55d611aa11c44c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Mon, 30 Jan 2012 21:02:08 +0000 Subject: [PATCH 048/179] Updating ffmpeg/x264/vpx svn path=/nixpkgs/trunk/; revision=31937 --- pkgs/development/libraries/ffmpeg/default.nix | 4 ++-- pkgs/development/libraries/libvpx/default.nix | 12 ++++++------ pkgs/development/libraries/x264/default.nix | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/development/libraries/ffmpeg/default.nix b/pkgs/development/libraries/ffmpeg/default.nix index b77b52a5e657..38f12f779b65 100644 --- a/pkgs/development/libraries/ffmpeg/default.nix +++ b/pkgs/development/libraries/ffmpeg/default.nix @@ -18,11 +18,11 @@ assert xvidSupport -> xvidcore != null; assert faacSupport -> faac != null; stdenv.mkDerivation rec { - name = "ffmpeg-0.8.1"; + name = "ffmpeg-0.10"; src = fetchurl { url = "http://www.ffmpeg.org/releases/${name}.tar.bz2"; - sha256 = "0vdq6bmrsi55p1l3dddiwyqsspb3l5dgqb87lysf5cz3sjxcfw2v"; + sha256 = "1ybzw6d5axr807141izvm2yf4pa0hc1zcywj89nsn3qsdnknlna3"; }; # `--enable-gpl' (as well as the `postproc' and `swscale') mean that diff --git a/pkgs/development/libraries/libvpx/default.nix b/pkgs/development/libraries/libvpx/default.nix index 2bbd4d89c3be..0d1a2cacc460 100644 --- a/pkgs/development/libraries/libvpx/default.nix +++ b/pkgs/development/libraries/libvpx/default.nix @@ -1,16 +1,16 @@ -{stdenv, fetchurl, bash, yasm, which}: +{stdenv, fetchurl, bash, yasm, which, perl}: stdenv.mkDerivation rec { - name = "libvpx-0.9.6"; + name = "libvpx-1.0.0"; src = fetchurl { - url = http://webm.googlecode.com/files/libvpx-v0.9.6.tar.bz2; - sha256 = "0wxay9wss4lawrcmnwqkpy0rdnaih1k7ilzh284mgyqnya78mg98"; + url = http://webm.googlecode.com/files/libvpx-v1.0.0.tar.bz2; + sha256 = "08gyx90ndv0v8dhbhp3jdh6g37pmcjlfwljzsy0nskm4345dpkh7"; }; patchPhase = '' sed -e 's,/bin/bash,${bash}/bin/bash,' -i configure build/make/version.sh \ - examples/gen_example_code.sh + examples/gen_example_code.sh build/make/gen_asm_deps.sh sed -e '/enable linux/d' -i configure ''; @@ -34,7 +34,7 @@ stdenv.mkDerivation rec { make quiet=false DIST_DIR=$out install ''; - buildInputs = [ yasm which ]; + buildInputs = [ yasm which perl ]; meta = { description = "VP8 video encoder"; diff --git a/pkgs/development/libraries/x264/default.nix b/pkgs/development/libraries/x264/default.nix index 0bba7af5c3d8..a5e045d27d6d 100644 --- a/pkgs/development/libraries/x264/default.nix +++ b/pkgs/development/libraries/x264/default.nix @@ -1,12 +1,12 @@ {stdenv, fetchurl, yasm}: stdenv.mkDerivation rec { - version = "snapshot-20110724-2245-stable"; + version = "snapshot-20120129-2245-stable"; name = "x264-${version}"; src = fetchurl { url = "ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-${version}.tar.bz2"; - sha256 = "07bylkh8cwcmj01sr41hhrvfbciyixhw1irdpj01kz9d0h8dhhpz"; + sha256 = "1i63xsa46a5l0ys3mqbcqr4gr5kpaf9fs05cbf0782iir5k07pcr"; }; patchPhase = '' From 6cff3215f4a32f0aabd9f9ef6dc92bf193227aa0 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Tue, 31 Jan 2012 06:59:02 +0000 Subject: [PATCH 049/179] add meta attribute for cowsay svn path=/nixpkgs/trunk/; revision=31938 --- pkgs/tools/misc/cowsay/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/misc/cowsay/default.nix b/pkgs/tools/misc/cowsay/default.nix index 19747e92f0f6..59978e2865cb 100644 --- a/pkgs/tools/misc/cowsay/default.nix +++ b/pkgs/tools/misc/cowsay/default.nix @@ -10,4 +10,9 @@ stdenv.mkDerivation { installPhase = '' bash ./install.sh $out ''; + + meta = { + description = "cowsay is a program which generates ASCII pictures of a cow with a message."; + homepage = http://www.nog.net/~tony/warez/cowsay.shtml; + }; } From 4fe11e84382db1acc2f83e34fca938203127616a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 31 Jan 2012 11:01:12 +0000 Subject: [PATCH 050/179] * OpenSSH updated to 5.9p1. svn path=/nixpkgs/trunk/; revision=31939 --- pkgs/tools/networking/openssh/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/networking/openssh/default.nix b/pkgs/tools/networking/openssh/default.nix index 69243b4f68e9..7ea15198f169 100644 --- a/pkgs/tools/networking/openssh/default.nix +++ b/pkgs/tools/networking/openssh/default.nix @@ -6,18 +6,18 @@ let hpnSrc = fetchurl { - url = http://www.psc.edu/networking/projects/hpn-ssh/openssh-5.8p1-hpn13v11.diff.gz; - sha256 = "1xwx2m2sihpy57mwdnc9km3c72hxfdjyp5mmr1vcx2c8kp901db2"; + url = http://www.psc.edu/networking/projects/hpn-ssh/openssh-5.9p1-hpn13v12.diff.gz; + sha256 = "0h1h45vic4zks5bc5mvkc50rlgy2c219vn3rmpmalgm5hws9qjbl"; }; in stdenv.mkDerivation rec { - name = "openssh-5.8p2"; + name = "openssh-5.9p1"; src = fetchurl { url = "ftp://ftp.nl.uu.net/pub/OpenBSD/OpenSSH/portable/${name}.tar.gz"; - sha1 = "64798328d310e4f06c9f01228107520adbc8b3e5"; + sha256 = "1mbpfyq3kjc4p8pc631iqgvcqhwhm6vdwvzsdmd54jzhdxmqngld"; }; prePatch = stdenv.lib.optionalString hpnSupport From 325f8d0b280d34ea7a0cc6025548c79d04a2c555 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 31 Jan 2012 12:13:22 +0000 Subject: [PATCH 051/179] haskell-email-validate: updated to version 0.2.8 svn path=/nixpkgs/trunk/; revision=31940 --- pkgs/development/libraries/haskell/email-validate/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/email-validate/default.nix b/pkgs/development/libraries/haskell/email-validate/default.nix index 10c518611d1d..2906b0a9e645 100644 --- a/pkgs/development/libraries/haskell/email-validate/default.nix +++ b/pkgs/development/libraries/haskell/email-validate/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "email-validate"; - version = "0.2.7"; - sha256 = "13zam197ph431f351g8srsxwqchjdwx1c1bizmildsc1zxm2nm3q"; + version = "0.2.8"; + sha256 = "04cz1nm1zkb46kdxs43pmkxli2xm5nqlh951nn0mdgy6hqhkpkqd"; buildDepends = [ parsec ranges ]; meta = { homepage = "http://porg.es/blog/email-address-validation-simpler-faster-more-correct"; From 3dfbf75fffd00f434dc3961a7f244b74e9d9a3a5 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 31 Jan 2012 12:13:26 +0000 Subject: [PATCH 052/179] haskell-hmatrix: updated to version 0.13.1.0 svn path=/nixpkgs/trunk/; revision=31941 --- pkgs/development/libraries/haskell/hmatrix/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/hmatrix/default.nix b/pkgs/development/libraries/haskell/hmatrix/default.nix index c60c7dc1591e..c87e507c4857 100644 --- a/pkgs/development/libraries/haskell/hmatrix/default.nix +++ b/pkgs/development/libraries/haskell/hmatrix/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "hmatrix"; - version = "0.13.0.0"; - sha256 = "1jlibgg2nrgajw2ny0dq88f5mhrffi7kda9bb8sp9szf4a0kd4wd"; + version = "0.13.1.0"; + sha256 = "0pl5z6zsxyvbdfdng77r2c4isq6d4wbyzx2qs9r8rbn6glaxwrmp"; buildDepends = [ binary storableComplex vector ]; extraLibraries = [ blas gsl liblapack ]; configureFlags = "-fvector"; From 3f5dc7954678d4ecb02d92539677fff60e94c047 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 31 Jan 2012 12:13:28 +0000 Subject: [PATCH 053/179] haskell-string-combinators: updated to version 0.6.0.3 svn path=/nixpkgs/trunk/; revision=31942 --- .../libraries/haskell/string-combinators/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/string-combinators/default.nix b/pkgs/development/libraries/haskell/string-combinators/default.nix index 3371c56ceb22..6d04dcf10dbd 100644 --- a/pkgs/development/libraries/haskell/string-combinators/default.nix +++ b/pkgs/development/libraries/haskell/string-combinators/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "string-combinators"; - version = "0.6.0.2"; - sha256 = "1bsnli6376nq5dmcx8da2fakj7h73plqz6v1myzhkz1f6r3qcjfi"; + version = "0.6.0.3"; + sha256 = "18jawxqvcj7zpvb0wf1zln12s03mp6nglhv5ccywrkb5x0r0557j"; buildDepends = [ baseUnicodeSymbols ]; meta = { homepage = "https://github.com/basvandijk/string-combinators"; From 8565aba2cd85114edf3bb6b04469dc4b6528b809 Mon Sep 17 00:00:00 2001 From: Florian Friesdorf Date: Tue, 31 Jan 2012 13:49:53 +0000 Subject: [PATCH 054/179] sudo upgrade to 1.8.3p2 (security fix included) svn path=/nixpkgs/trunk/; revision=31943 --- pkgs/tools/security/sudo/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/security/sudo/default.nix b/pkgs/tools/security/sudo/default.nix index e84fb50b3599..f9a544d714d1 100644 --- a/pkgs/tools/security/sudo/default.nix +++ b/pkgs/tools/security/sudo/default.nix @@ -1,7 +1,7 @@ {stdenv, fetchurl, coreutils, pam, groff}: stdenv.mkDerivation rec { - name = "sudo-1.7.2"; + name = "sudo-1.8.3p2"; src = fetchurl { urls = From bf95f7fa3cc4ae0c17c36a787976e11ceb753028 Mon Sep 17 00:00:00 2001 From: Florian Friesdorf Date: Tue, 31 Jan 2012 14:09:54 +0000 Subject: [PATCH 055/179] Revert "sudo upgrade to 1.8.3p2 (security fix included)" before was 1.7.2, which is not affected svn path=/nixpkgs/trunk/; revision=31944 --- pkgs/tools/security/sudo/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/security/sudo/default.nix b/pkgs/tools/security/sudo/default.nix index f9a544d714d1..e84fb50b3599 100644 --- a/pkgs/tools/security/sudo/default.nix +++ b/pkgs/tools/security/sudo/default.nix @@ -1,7 +1,7 @@ {stdenv, fetchurl, coreutils, pam, groff}: stdenv.mkDerivation rec { - name = "sudo-1.8.3p2"; + name = "sudo-1.7.2"; src = fetchurl { urls = From f7626c1ddd7e3fd15b680d7010693ebc82bedb3e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 31 Jan 2012 14:55:43 +0000 Subject: [PATCH 056/179] * Unbreak icewm. Without -lfontconfig, it barfs with icewm: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory This causes various NixOS tests to fail (e.g. http://hydra.nixos.org/build/1952097). svn path=/nixpkgs/trunk/; revision=31945 --- pkgs/applications/window-managers/icewm/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/window-managers/icewm/default.nix b/pkgs/applications/window-managers/icewm/default.nix index 000f0e55bb41..0b541d8104d3 100644 --- a/pkgs/applications/window-managers/icewm/default.nix +++ b/pkgs/applications/window-managers/icewm/default.nix @@ -16,6 +16,8 @@ stdenv.mkDerivation rec { sha256 = "0yw813d8amrl0n1fvdiyznxah92wcylj9kj1qhjc6h73d827h6na"; }; + NIX_LDFLAGS = "-lfontconfig"; + # The fuloong2f is not supported by 1.3.6 still # # Don't know whether 1.3.7 supports fuloong2f and don't know how to test it From 38391383f0376f7fe21db44e56af0b888b9408a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 31 Jan 2012 15:02:38 +0000 Subject: [PATCH 057/179] GNU Guile 2.0.5. svn path=/nixpkgs/trunk/; revision=31946 --- pkgs/development/interpreters/guile/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/guile/default.nix b/pkgs/development/interpreters/guile/default.nix index bb64d35f8a47..1b9284dd0467 100644 --- a/pkgs/development/interpreters/guile/default.nix +++ b/pkgs/development/interpreters/guile/default.nix @@ -7,11 +7,11 @@ else stdenv.mkDerivation) rec { - name = "guile-2.0.3"; + name = "guile-2.0.5"; src = fetchurl { url = "mirror://gnu/guile/${name}.tar.xz"; - sha256 = "14rhlpxxa4v5y3gl992l7lnd5qnqawx0a84idnwq0w2qviwcvsyj"; + sha256 = "1lycm10x316jzlv1nyag7x9gisn4d3dz8jcmbi6lbdn0z6a9skc2"; }; buildNativeInputs = [ xz makeWrapper gawk pkgconfig ]; From 27100c36c4250052af6bc96d3e5b630e0fb2b1ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 31 Jan 2012 15:31:23 +0000 Subject: [PATCH 058/179] GNU help2man 1.40.5. svn path=/nixpkgs/trunk/; revision=31947 --- .../tools/misc/help2man/default.nix | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/pkgs/development/tools/misc/help2man/default.nix b/pkgs/development/tools/misc/help2man/default.nix index 6f131e7abe78..746a489c1742 100644 --- a/pkgs/development/tools/misc/help2man/default.nix +++ b/pkgs/development/tools/misc/help2man/default.nix @@ -1,11 +1,11 @@ {stdenv, fetchurl, perl, gettext, LocaleGettext}: -stdenv.mkDerivation { - name = "help2man-1.36.1"; +stdenv.mkDerivation rec { + name = "help2man-1.40.5"; src = fetchurl { - url = http://ftp.gnu.org/gnu/help2man/help2man-1.36.1.tar.gz; - sha256 = "13w20lfvggzhvzs9dinxbhwdd61svsacfv9d78zfl9lf1syb5i1f"; + url = "mirror://gnu/help2man/${name}.tar.gz"; + sha256 = "1d1wn9krvf9mp97c224710n1pcfh73p7w7na65zn2a06124rln8k"; }; buildInputs = [ @@ -14,8 +14,20 @@ stdenv.mkDerivation { LocaleGettext ]; - # So that configure can find `preloadable_libintl.so'. - LD_LIBRARY_PATH = "${gettext}/lib"; + doCheck = false; # target `check' is missing - inherit gettext; + meta = { + description = "GNU help2man generates man pages from `--help' output"; + + longDescription = + '' help2man produces simple manual pages from the ‘--help’ and + ‘--version’ output of other commands. + ''; + + homepage = http://www.gnu.org/software/help2man/; + + license = "GPLv3+"; + platforms = stdenv.lib.platforms.gnu; # arbitrary choice + maintainers = [ stdenv.lib.maintainers.ludo ]; + }; } From 7dc9366796baeb6d6877dff173fb1bbf2af6260e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 31 Jan 2012 15:50:51 +0000 Subject: [PATCH 059/179] GNU help2man: Wrap the program to have a correct $PERL5LIB. svn path=/nixpkgs/trunk/; revision=31948 --- pkgs/development/tools/misc/help2man/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/development/tools/misc/help2man/default.nix b/pkgs/development/tools/misc/help2man/default.nix index 746a489c1742..36a674d0880f 100644 --- a/pkgs/development/tools/misc/help2man/default.nix +++ b/pkgs/development/tools/misc/help2man/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, perl, gettext, LocaleGettext}: +{ stdenv, fetchurl, perl, gettext, LocaleGettext, makeWrapper }: stdenv.mkDerivation rec { name = "help2man-1.40.5"; @@ -8,14 +8,16 @@ stdenv.mkDerivation rec { sha256 = "1d1wn9krvf9mp97c224710n1pcfh73p7w7na65zn2a06124rln8k"; }; - buildInputs = [ - perl - gettext - LocaleGettext - ]; + buildInputs = [ makeWrapper perl gettext LocaleGettext ]; doCheck = false; # target `check' is missing + postInstall = + '' wrapProgram "$out/bin/help2man" \ + --prefix PERL5LIB : "$(echo ${LocaleGettext}/lib/perl*/site_perl)" + ''; + + meta = { description = "GNU help2man generates man pages from `--help' output"; From 690be29797d45fc47fb99f10eefc30269f37ed0b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 1 Feb 2012 10:39:50 +0000 Subject: [PATCH 060/179] haskell-data-object-yaml: updated to version 0.3.4.2 svn path=/nixpkgs/trunk/; revision=31949 --- .../libraries/haskell/data-object-yaml/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/data-object-yaml/default.nix b/pkgs/development/libraries/haskell/data-object-yaml/default.nix index ec24fc554dff..54c2a05f8f14 100644 --- a/pkgs/development/libraries/haskell/data-object-yaml/default.nix +++ b/pkgs/development/libraries/haskell/data-object-yaml/default.nix @@ -4,8 +4,8 @@ cabal.mkDerivation (self: { pname = "data-object-yaml"; - version = "0.3.4.1"; - sha256 = "04mpa59gyfkqi5s94ps3qhphw4csiasb3lj6kf6rhhmd5yx52dnp"; + version = "0.3.4.2"; + sha256 = "18a9r4wfpb7icjb6nji9iy3abq6sxafmsnfwqpnm1nn2nn3fm1ap"; isLibrary = true; isExecutable = true; buildDepends = [ From 8347954f58b72fc754a1c5df9d1625a41cbbecfc Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 1 Feb 2012 10:39:54 +0000 Subject: [PATCH 061/179] haskell-fast-logger: updated to version 0.0.2 svn path=/nixpkgs/trunk/; revision=31950 --- pkgs/development/libraries/haskell/fast-logger/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/fast-logger/default.nix b/pkgs/development/libraries/haskell/fast-logger/default.nix index 68bc8ca60055..462bf7b5230e 100644 --- a/pkgs/development/libraries/haskell/fast-logger/default.nix +++ b/pkgs/development/libraries/haskell/fast-logger/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "fast-logger"; - version = "0.0.1"; - sha256 = "19ff2dhkh62i1ljsl90wnsblzk30dz0yx4kw5gk1hb22md7hakim"; + version = "0.0.2"; + sha256 = "1pwxhgcy4lmc63dnr9fihkmiclf60hrnsv8wzbsdg0jcj4qi0zr7"; buildDepends = [ blazeBuilder ]; meta = { description = "A fast logging system"; From 17fefff71de7e45361649a56db18c619c65220f5 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 1 Feb 2012 10:39:57 +0000 Subject: [PATCH 062/179] haskell-happstack-util: updated to version 6.0.3 svn path=/nixpkgs/trunk/; revision=31951 --- .../libraries/haskell/happstack/happstack-util.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/happstack/happstack-util.nix b/pkgs/development/libraries/haskell/happstack/happstack-util.nix index faeb174f2510..c2af99bafd5e 100644 --- a/pkgs/development/libraries/haskell/happstack/happstack-util.nix +++ b/pkgs/development/libraries/haskell/happstack/happstack-util.nix @@ -4,8 +4,8 @@ cabal.mkDerivation (self: { pname = "happstack-util"; - version = "6.0.2"; - sha256 = "03qlnclpg72iflry1xlkd0sxqm6nybvx113la9r0cmsnz17y546a"; + version = "6.0.3"; + sha256 = "0hqssd5wzir6rxn46q8r3hdp3nl7v5m7w322j39120xpg2bhiphh"; isLibrary = true; isExecutable = true; buildDepends = [ From 349b073889e254cf0da81c329df00bffa85d64e6 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 1 Feb 2012 10:39:59 +0000 Subject: [PATCH 063/179] haskell-pool-conduit: updated to version 0.0.0.1 svn path=/nixpkgs/trunk/; revision=31952 --- pkgs/development/libraries/haskell/pool-conduit/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/pool-conduit/default.nix b/pkgs/development/libraries/haskell/pool-conduit/default.nix index f7d1be2f7d03..339ec70593ca 100644 --- a/pkgs/development/libraries/haskell/pool-conduit/default.nix +++ b/pkgs/development/libraries/haskell/pool-conduit/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "pool-conduit"; - version = "0.0.0"; - sha256 = "0cbs7swb1ay3l1hlbirys171ybqg887csnp6yiy9biq11q5mhsml"; + version = "0.0.0.1"; + sha256 = "1im5fpwadg9hmajay6dkwmlzbp5rzn8hh9wh01iy23jgivkqk2q0"; buildDepends = [ conduit resourcePool transformers ]; meta = { homepage = "http://www.yesodweb.com/book/persistent"; From 128f2e48d1ebbeabe6daf00fb943266542fee8ea Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 1 Feb 2012 10:40:02 +0000 Subject: [PATCH 064/179] haskell-skein: updated to version 0.1.0.5 svn path=/nixpkgs/trunk/; revision=31953 --- pkgs/development/libraries/haskell/skein/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/skein/default.nix b/pkgs/development/libraries/haskell/skein/default.nix index b1911310e241..844e13c11dc9 100644 --- a/pkgs/development/libraries/haskell/skein/default.nix +++ b/pkgs/development/libraries/haskell/skein/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "skein"; - version = "0.1.0.4"; - sha256 = "1m910kvm1ba9cl3ghr6j393xf1lvxb4ms55nipnzc5zg7r2xzh96"; + version = "0.1.0.5"; + sha256 = "12hyyydznss802v4pwfcpjr0y7241114a9z82xxq60q8dval8fyb"; buildDepends = [ cereal cryptoApi tagged ]; meta = { description = "Skein, a family of cryptographic hash functions. Includes Skein-MAC as well."; From ea46f84a54a7339f3e3293f95f053a688c635896 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 1 Feb 2012 10:40:04 +0000 Subject: [PATCH 065/179] haskell-web-routes: updated to version 0.26.3 svn path=/nixpkgs/trunk/; revision=31954 --- pkgs/development/libraries/haskell/web-routes/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/web-routes/default.nix b/pkgs/development/libraries/haskell/web-routes/default.nix index a6ac919ba71d..0a6d10539e15 100644 --- a/pkgs/development/libraries/haskell/web-routes/default.nix +++ b/pkgs/development/libraries/haskell/web-routes/default.nix @@ -4,8 +4,8 @@ cabal.mkDerivation (self: { pname = "web-routes"; - version = "0.26.2"; - sha256 = "0v7vkd53jf9zf2m0lbiq10qp39ghlnxwafs1hixbz2qfcgsns10j"; + version = "0.26.3"; + sha256 = "1ldi4gjraga57qj9drknwp19vmy30fhcp6vw3y7xqcrarvp5n2mx"; buildDepends = [ blazeBuilder httpTypes mtl network parsec text utf8String ]; From eeeab8186340d08bded9a5596bd638e23656ec27 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 1 Feb 2012 10:40:07 +0000 Subject: [PATCH 066/179] haskell-xml-conduit: updated to version 0.5.2 svn path=/nixpkgs/trunk/; revision=31955 --- pkgs/development/libraries/haskell/xml-conduit/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/xml-conduit/default.nix b/pkgs/development/libraries/haskell/xml-conduit/default.nix index bf20012aef2b..132d3de4a8fd 100644 --- a/pkgs/development/libraries/haskell/xml-conduit/default.nix +++ b/pkgs/development/libraries/haskell/xml-conduit/default.nix @@ -5,8 +5,8 @@ cabal.mkDerivation (self: { pname = "xml-conduit"; - version = "0.5.1.2"; - sha256 = "0ww018aj4fy0hngjsj1lc5m7sw36kdc1z2p8nxp4pgsmhj0ccm36"; + version = "0.5.2"; + sha256 = "0wr9xbx2dwv0kmnx9jwlm1734a22mc79ydg4sh61335fdjvchfnd"; buildDepends = [ attoparsec attoparsecConduit blazeBuilder blazeBuilderConduit conduit dataDefault failure systemFilepath text transformers From 7c90b6a9bc5311a4184e2b0e19f9fea997a75aed Mon Sep 17 00:00:00 2001 From: Marco Maggesi Date: Wed, 1 Feb 2012 14:37:50 +0000 Subject: [PATCH 067/179] Update HOL Light to rev 122. svn path=/nixpkgs/trunk/; revision=31956 --- pkgs/applications/science/logic/hol_light/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/science/logic/hol_light/default.nix b/pkgs/applications/science/logic/hol_light/default.nix index 4961bbeabfd1..06d349ad3c8b 100644 --- a/pkgs/applications/science/logic/hol_light/default.nix +++ b/pkgs/applications/science/logic/hol_light/default.nix @@ -9,11 +9,11 @@ let in stdenv.mkDerivation { - name = "hol_light-20120109"; + name = "hol_light-20120129"; src = fetchsvn { url = http://hol-light.googlecode.com/svn/trunk; - rev = "118"; - sha256 = "97e72dad731338328c031421512c26d440a989ea083f3ae34820eb8413aff495"; + rev = "122"; + sha256 = "d837ba5fe941af9595540691ba4be34e58174ba9a9c7e1ce57620e5cd4385769"; }; buildInputs = [ ocaml findlib camlp5 ]; From 4b45a0bfc395451bcaafebeae2eeba1d5a2235a3 Mon Sep 17 00:00:00 2001 From: Arie Middelkoop Date: Wed, 1 Feb 2012 22:05:21 +0000 Subject: [PATCH 068/179] Microcode for intel processors (put in firmware, and 'modprobe microcode') svn path=/nixpkgs/trunk/; revision=31957 --- pkgs/os-specific/linux/microcode/intel.nix | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/os-specific/linux/microcode/intel.nix diff --git a/pkgs/os-specific/linux/microcode/intel.nix b/pkgs/os-specific/linux/microcode/intel.nix new file mode 100644 index 000000000000..3294c90cb3a0 --- /dev/null +++ b/pkgs/os-specific/linux/microcode/intel.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchurl }: + +let version = "20111110"; + num = "20728"; +in stdenv.mkDerivation { + name = "microcode-intel-${version}"; + src = fetchurl { + url = "http://downloadmirror.intel.com/${num}/eng/microcode-${version}.tgz"; + sha256 = "16f532cdf9cce03e01e714619ad9406a465aa965bbd1288035398db79921cbc1"; + }; + +# setSourceRoot = '' +# sourceRoot=. +# ''; + + sourceRoot = "."; + + dontBuild = true; + installPhase = '' + ensureDir $out + cp microcode.dat "$out/" + ''; + + meta = { + homepage = http://www.intel.com; + description = "Microcode for Intel processors"; + }; +} \ No newline at end of file From acda2c1967274b710d922d783ed7ab0d14acaffd Mon Sep 17 00:00:00 2001 From: Arie Middelkoop Date: Wed, 1 Feb 2012 22:06:49 +0000 Subject: [PATCH 069/179] Makes a .desktop startup item from a .desktop menu entry. svn path=/nixpkgs/trunk/; revision=31958 --- .../make-startupitem/default.nix | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/build-support/make-startupitem/default.nix diff --git a/pkgs/build-support/make-startupitem/default.nix b/pkgs/build-support/make-startupitem/default.nix new file mode 100644 index 000000000000..07cdee600d45 --- /dev/null +++ b/pkgs/build-support/make-startupitem/default.nix @@ -0,0 +1,34 @@ +# given a pakcage with a $name.desktop file, makes a copy +# as autostart item. + +{stdenv, lib}: +{ name # name of the desktop file (without .desktop) +, package # package where the desktop file resides in +, after ? null +, condition ? null +, phase ? "2" +}: + +# the builder requires that +# $package/share/applications/$name.desktop +# exists as file. + +stdenv.mkDerivation { + name = "autostart-${name}"; + priority = 5; + + buildCommand = '' + ensureDir $out/share/autostart + target=${name}.desktop + cp ${package}/share/applications/${name}.desktop $target + chmod +rw $target + echo "X-KDE-autostart-phase=${phase}" >> $target + ${lib.optionalString (after != null) ''echo "${after}" >> $target''} + ${lib.optionalString (condition != null) ''echo "${condition}" >> $target''} + cp $target $out/share/autostart + ''; + + # 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 cc145f2ae91d8c3fa304853cdcfbbe2347085cf9 Mon Sep 17 00:00:00 2001 From: Arie Middelkoop Date: Wed, 1 Feb 2012 22:09:35 +0000 Subject: [PATCH 070/179] Update of skype expression: make the use of pulse audio optional based on the configuration setting for pulse audio (off by default). Removing pulse audio from the build inputs when it is not used prevents the bug of Skype taking 100% cpu from showing up. This demonstrates nicely nix' features: in other distributions the recomended solution was to remove read permission from the pulse audio libs. svn path=/nixpkgs/trunk/; revision=31959 --- pkgs/applications/networking/skype/default.nix | 6 +++--- pkgs/top-level/all-packages.nix | 11 ++++++++++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/networking/skype/default.nix b/pkgs/applications/networking/skype/default.nix index 8d3645e38195..45e225496ebb 100644 --- a/pkgs/applications/networking/skype/default.nix +++ b/pkgs/applications/networking/skype/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, alsaLib, libXv, libXi, libXrender, libXrandr, zlib, glib , libXext, libX11, libXScrnSaver, libSM, qt4, libICE, freetype, fontconfig -, pulseaudio }: +, pulseaudio, usePulseAudio, lib }: assert stdenv.system == "i686-linux"; @@ -12,9 +12,9 @@ stdenv.mkDerivation rec { sha256 = "157ba3ci12bq0nv2m8wlsab45ib5sccqagyna8nixnhqw9q72sxm"; }; - buildInputs = [ + buildInputs = + lib.optional usePulseAudio pulseaudio ++ [ alsaLib - pulseaudio stdenv.glibc stdenv.gcc.gcc libXv diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7281b659ce22..c949a1de3fc7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -313,6 +313,11 @@ let inherit stdenv; }; + makeAutostartItem = import ../build-support/make-startupitem { + inherit stdenv; + inherit lib; + }; + makeInitrd = {contents}: import ../build-support/kernel/make-initrd.nix { inherit stdenv perl cpio contents ubootChooser; }; @@ -5256,6 +5261,8 @@ let alsaUtils = callPackage ../os-specific/linux/alsa-utils { }; + microcodeIntel = callPackage ../os-specific/linux/microcode/intel.nix { }; + bcm43xx = callPackage ../os-specific/linux/firmware/bcm43xx { }; bluez = callPackage ../os-specific/linux/bluez { }; @@ -7477,7 +7484,9 @@ let siproxd = callPackage ../applications/networking/siproxd { }; - skype_linux = callPackage_i686 ../applications/networking/skype { }; + skype_linux = callPackage_i686 ../applications/networking/skype { + usePulseAudio = getConfig [ "pulseaudio" ] false; # disabled by default (the 100% cpu bug) + }; slim = callPackage ../applications/display-managers/slim { }; From 89de1150d55a69093d71b717b73422b3d3e36bd7 Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Wed, 1 Feb 2012 22:32:12 +0000 Subject: [PATCH 071/179] Add libnatspec svn path=/nixpkgs/trunk/; revision=31960 --- .../libraries/libnatspec/default.nix | 19 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/development/libraries/libnatspec/default.nix diff --git a/pkgs/development/libraries/libnatspec/default.nix b/pkgs/development/libraries/libnatspec/default.nix new file mode 100644 index 000000000000..fbab569e38cc --- /dev/null +++ b/pkgs/development/libraries/libnatspec/default.nix @@ -0,0 +1,19 @@ +{ stdenv, fetchurl, popt }: + +stdenv.mkDerivation rec { + name = "libnatspec-0.2.6"; + + src = fetchurl { + url = "mirror://sourceforge/natspec/${name}.tar.bz2"; + sha256 = "0zvm9afh1skxgdv62ylrpwyykpjhhskxj0zv7yrdf7jhfdriz0y3"; + }; + + buildInputs = [ popt ]; + + meta = { + homepage = http://natspec.sourceforge.net/ ; + description = "A library intended to smooth national specificities in using of programs"; + platforms = stdenv.lib.platforms.unix; + maintainers = [ stdenv.lib.maintainers.urkud ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c949a1de3fc7..13995e05e124 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4039,6 +4039,8 @@ let libmtp = callPackage ../development/libraries/libmtp { }; + libnatspec = callPackage ../development/libraries/libnatspec { }; + libnice = callPackage ../development/libraries/libnice { inherit (gnome) glib; }; From 75262bcbed4fb93daeaefc2610e0ab3493b587fc Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Wed, 1 Feb 2012 22:32:16 +0000 Subject: [PATCH 072/179] zip, unzip: add NLS support svn path=/nixpkgs/trunk/; revision=31961 --- pkgs/tools/archivers/unzip/6.0.nix | 20 +++++++++++++----- pkgs/tools/archivers/zip/default.nix | 8 ++++++- .../archivers/zip/natspec-gentoo.patch.bz2 | Bin 0 -> 1914 bytes pkgs/top-level/all-packages.nix | 2 ++ 4 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 pkgs/tools/archivers/zip/natspec-gentoo.patch.bz2 diff --git a/pkgs/tools/archivers/unzip/6.0.nix b/pkgs/tools/archivers/unzip/6.0.nix index 803832f52d82..8abd813fb8fe 100644 --- a/pkgs/tools/archivers/unzip/6.0.nix +++ b/pkgs/tools/archivers/unzip/6.0.nix @@ -1,6 +1,7 @@ -{ stdenv, fetchurl, bzip2 }: +{ stdenv, fetchurl, bzip2 +, enableNLS ? false, libnatspec }: -stdenv.mkDerivation { +stdenv.mkDerivation ({ name = "unzip-6.0"; src = fetchurl { @@ -8,11 +9,11 @@ stdenv.mkDerivation { sha256 = "0dxx11knh3nk95p2gg2ak777dd11pr7jx5das2g49l262scrcv83"; }; - buildInputs = [ bzip2 ]; + buildInputs = [ bzip2 ] ++ stdenv.lib.optional enableNLS libnatspec; makefile = "unix/Makefile"; - NIX_LDFLAGS = "-lbz2"; + NIX_LDFLAGS = [ "-lbz2" ] ++ stdenv.lib.optional enableNLS "-lnatspec"; buildFlags = "generic D_USE_BZ2=-DUSE_BZIP2 L_BZ2=-lbz2"; @@ -24,4 +25,13 @@ stdenv.mkDerivation { license = "free"; # http://www.info-zip.org/license.html meta.platforms = stdenv.lib.platforms.all; }; -} +} // (if enableNLS then { + patches = + [ ( fetchurl { + url = + "http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-arch/unzip/files/unzip-6.0-natspec.patch?revision=1.1"; + name = "unzip-6.0-natspec.patch"; + sha256 = "67ab260ae6adf8e7c5eda2d1d7846929b43562943ec4aff629bd7018954058b1"; + }) + ]; +} else {})) diff --git a/pkgs/tools/archivers/zip/default.nix b/pkgs/tools/archivers/zip/default.nix index 884af0f0b035..e3b48f483254 100644 --- a/pkgs/tools/archivers/zip/default.nix +++ b/pkgs/tools/archivers/zip/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl}: +{ stdenv, fetchurl, libnatspec }: stdenv.mkDerivation { name = "zip-3.0"; @@ -12,8 +12,14 @@ stdenv.mkDerivation { installFlags="-f unix/Makefile prefix=$(out) INSTALL=cp"; + patches = [ ./natspec-gentoo.patch.bz2 ]; + + buildInputs = [ libnatspec ]; + meta = { homepage = http://www.info-zip.org; + platforms = stdenv.lib.platforms.all; + maintainer = [ stdenv.lib.maintainers.urkud ]; }; } diff --git a/pkgs/tools/archivers/zip/natspec-gentoo.patch.bz2 b/pkgs/tools/archivers/zip/natspec-gentoo.patch.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..816f32aba3c3d835f8a67440a7088c781fedffbd GIT binary patch literal 1914 zcmV-=2Zi`TT4*^jL0KkKS=3ssIsgQ%e}H%}KmdRL|NsC0-t@o!-~M0+t@o+h%coxM z=bY?y-Q6Jyb2nnp$bu%BO^SGeN0fS=nns#>n4YFh8V^&^sPsKh8W}c0B!MwZ(WIF) z6nY@?Wi$bx8fm6Mpa27E5j15dkpZcJG{Bk+1Y~43rbZBGX_16z!6HZ|RDP-IdY__c zgqj*XH36e)Hj(NY4F-T{G5~R*plH)0O&VkdCI|oqfY2Ib1_a0wBus$-5NS`-P|9d| zLnG1v&9Lg{{B6eNcI_N7X9>u)iSG&{YIhr4#4M zaf-GE9cu$Nz>X=nDw>iS#LkyoXn@2-7_(y{Bgo9e7Lo^`ks(3$((v4j*(-qfchOi! z6~f9HeoAu_S{BVoB1lX?tQKhj3b;>(5UiN*bRO(UoR?#j+pn}sb|$1MCeV$(`_kUFW ztHBeGJ5%v=HV|~H6BD)ZEhJI%jBNa)93@c`d3S_NG1})x3Y|^19}67Jh;B4@;d;Me zrgSLEvA3@kI$rgfVjg&uF2_#G2)>q-bGm)EOVe8F*7CmzpHp+V+bD;jke%qhp)XSA zLLq8LHAu?F3>XbIwjmI_=wJq&hQcFMu3Kn!4C|G0!7%+8YF=1HACOvPLKiG201YwB z>+GSjx-n9MwiAiYeh)7<4>FGMERe^1+_A1RF;y$^hx2k7m?_ZIP~)iQQ)B zxbQ9ZVd|Xv5t1bl^(1oubpV?7kqHAs6d?>5z=44c3vI-Gl@n7yK%Yl=uskG1c`G-I zzy!rBh!%kYG&EchYOF&8feZ}2d{?k+ariLI;v7e7v!KS?=Zq+Y?sb;2*q9#etVD@{ z@ugMQ&SIS7$D99Y#(j3+Q8ik&-0LZC1*PW~4)BQxvoQiS2;d?~Kf2z>)o{@k7nca} zohcYa5{W{Q{nSOG%XQ*BVkcUpcecoU8^q^du+bR$tc%inBt0nN&L>GSS}}vA-_ia1 zV=apzGgAo?b1^83bK@9Ngj32v$l9I#cBv^Ap_tf0*%Yx3H>W;-FVlBW3$!%$b0^cA|!-+wU9#dkR z#(IsbDHa_zJoRHBflns1!8{aI3-c{VP?K?R^JRNB>RcT&Rc+Lx?`Qe?lM`H_CQA}J9E}G^6#E{1kqHv3ldwaMTlY zb(D6gm(kk|m8|C~hN&L3;L22)C7tp;V-_??oLG(pAX8$5PpW`XMHmux5~NKy7Uw%T ztj39;$eSGqk+nVHy4p8b84QAIena`8=qg1QU5ZXLrl_-Zi86V&t#vz*2Tl#qt2$W+ z1f}O zCTpOSf~`>G;&$=wr8)OrWOCID6fiCgzZ7#KJJ?{Dyoa0Mn_{QYMK&=*E8!a#%${!r zA~LpHn+$sU!^$%)r!xi4SW@`xa)8oe9sQI;89O#h3alwtu%PW4Wmqd{O{Yz-wcV|b zGh0Y-s z)!_7m19A*qbiwlF&&$QgrDoHJj7-h3<{(+xOxFs1WCuTNLp|c|NT&)C8jDq@Kmp{9 A3jhEB literal 0 HcmV?d00001 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 13995e05e124..ea3be6129105 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1535,6 +1535,8 @@ let unzip = unzip60; + unzipNLS = unzip.override { enableNLS = true; }; + unzip552 = callPackage ../tools/archivers/unzip/5.52.nix { }; unzip60 = callPackage ../tools/archivers/unzip/6.0.nix { }; From 2b3fb5a8243357b048c869b149bb8d157ae4fc30 Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Wed, 1 Feb 2012 22:33:35 +0000 Subject: [PATCH 073/179] Merge two nix exprs for links2, upgrade to 2.5 svn path=/nixpkgs/trunk/; revision=31962 --- .../networking/browsers/links2/default.nix | 65 +++++++++++-------- .../browsers/links2/src-for-default.nix | 9 --- .../browsers/links2/src-info-for-default.nix | 4 -- .../networking/browsers/links2/stdenv.nix | 41 ------------ pkgs/top-level/all-packages.nix | 8 +-- 5 files changed, 39 insertions(+), 88 deletions(-) delete mode 100644 pkgs/applications/networking/browsers/links2/src-for-default.nix delete mode 100644 pkgs/applications/networking/browsers/links2/src-info-for-default.nix delete mode 100644 pkgs/applications/networking/browsers/links2/stdenv.nix diff --git a/pkgs/applications/networking/browsers/links2/default.nix b/pkgs/applications/networking/browsers/links2/default.nix index 587a51509d61..4e5a3658730e 100644 --- a/pkgs/applications/networking/browsers/links2/default.nix +++ b/pkgs/applications/networking/browsers/links2/default.nix @@ -1,33 +1,44 @@ -a : -let - s = import ./src-for-default.nix; - buildInputs = with a; [ - libpng libjpeg bzip2 zlib libtiff - libX11 libXau xproto gpm - openssl libXt pkgconfig - ]; -in -rec { - src = a.fetchUrlFromSrcInfo s; +{ stdenv, fetchurl +, gpm, openssl, pkgconfig # Misc. +, libpng, libjpeg, libtiff # graphic formats +, bzip2, zlib, xz # Transfer encodings +, enableFB ? true +, enableDirectFB ? false, directfb +, enableX11 ? true, libX11, libXt, libXau # GUI support +}: - inherit (s) name; - inherit buildInputs; - configureFlags = [ - "--enable-graphics" - "--with-ssl" - "--with-x" - "--with-fb" - ]; +stdenv.mkDerivation rec { + version = "2.5"; + name = "links2-${version}"; + + src = fetchurl { + url = "${meta.homepage}/download/links-${version}.tar.bz2"; + sha256 = "1wlmj8s6bxgznh0pnawihyvhffzryciz3lkagcxhf7fp64zz5izm"; + }; + + buildInputs = + [ libpng libjpeg libtiff gpm openssl xz bzip2 zlib ] + ++ stdenv.lib.optionals enableX11 [ libX11 libXau libXt ] + ++ stdenv.lib.optional enableDirectFB [ directfb ]; + + buildNativeInputs = [ pkgconfig ]; + + configureFlags = [ "--with-ssl" ] + ++ stdenv.lib.optional (enableX11 || enableFB || enableDirectFB) "--enable-graphics" + ++ stdenv.lib.optional enableX11 "--with-x" + ++ stdenv.lib.optional enableFB "--with-fb" + ++ stdenv.lib.optional enableDirectFB "--with-directfb"; + + crossAttrs = { + preConfigure = '' + export CC=$crossConfig-gcc + ''; + }; - /* doConfigure should be removed if not needed */ - phaseNames = ["doConfigure" "doMakeInstall"]; - meta = { + homepage = http://links.twibright.com/; description = "A small browser with some graphics support"; - maintainers = [ - a.lib.maintainers.raskin - ]; - platforms = with a.lib.platforms; - linux; + maintainers = with stdenv.lib.maintainers; [ raskin urkud viric ]; + platforms = stdenv.lib.platforms.linux; }; } diff --git a/pkgs/applications/networking/browsers/links2/src-for-default.nix b/pkgs/applications/networking/browsers/links2/src-for-default.nix deleted file mode 100644 index 7e7da1a4641b..000000000000 --- a/pkgs/applications/networking/browsers/links2/src-for-default.nix +++ /dev/null @@ -1,9 +0,0 @@ -rec { - version="2.2"; - name="links2-2.2"; - hash="188y37rw4s9brl55ncc12q1b45w0caxcnsq1gqyby9byw1sawnq9"; - url="http://links.twibright.com/download/links-${version}.tar.gz"; - advertisedUrl="http://links.twibright.com/download/links-2.2.tar.gz"; - - -} diff --git a/pkgs/applications/networking/browsers/links2/src-info-for-default.nix b/pkgs/applications/networking/browsers/links2/src-info-for-default.nix deleted file mode 100644 index b678b251298e..000000000000 --- a/pkgs/applications/networking/browsers/links2/src-info-for-default.nix +++ /dev/null @@ -1,4 +0,0 @@ -{ - downloadPage = "http://links.twibright.com/download.php"; - baseName = "links2"; -} diff --git a/pkgs/applications/networking/browsers/links2/stdenv.nix b/pkgs/applications/networking/browsers/links2/stdenv.nix deleted file mode 100644 index 923d0aff0f5f..000000000000 --- a/pkgs/applications/networking/browsers/links2/stdenv.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ stdenv, fetchurl, libpng, libjpeg, bzip2, zlib, libtiff, gpm, openssl, pkgconfig, directfb -, enableX11 ? true, libX11, libXau, xproto, libXt }: - -let - version="2.2"; - name="links2-2.2"; - hash="188y37rw4s9brl55ncc12q1b45w0caxcnsq1gqyby9byw1sawnq9"; - url="http://links.twibright.com/download/links-${version}.tar.gz"; - advertisedUrl="http://links.twibright.com/download/links-2.2.tar.gz"; -in - -stdenv.mkDerivation { - inherit name; - - src = fetchurl { - inherit url; - sha256 = hash; - }; - - buildInputs = [ libpng libjpeg bzip2 zlib libtiff gpm openssl pkgconfig directfb ] - ++ stdenv.lib.optionals enableX11 [ libX11 libXau xproto libXt ]; - - configureFlags = [ - "--enable-graphics" - "--with-ssl" - "--with-fb" - ] ++ stdenv.lib.optional enableX11 "--with-x"; - - crossAttrs = { - preConfigure = '' - export CC=$crossConfig-gcc - ''; - }; - - meta = { - description = "A small browser with some graphics support"; - maintainers = [ - stdenv.lib.maintainers.viric - ]; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ea3be6129105..1b44d0459385 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7158,13 +7158,7 @@ let ledger = callPackage ../applications/office/ledger/2.6.3.nix { }; ledger3 = callPackage ../applications/office/ledger/3.0.nix { }; - links2 = (builderDefsPackage ../applications/networking/browsers/links2) { - inherit fetchurl stdenv bzip2 zlib libjpeg libpng libtiff - gpm openssl SDL SDL_image SDL_net pkgconfig; - inherit (xlibs) libX11 libXau xproto libXt; - }; - - links2Stdenv = callPackage ../applications/networking/browsers/links2/stdenv.nix { }; + links2 = callPackage ../applications/networking/browsers/links2 { }; linphone = callPackage ../applications/networking/linphone { inherit (gnome) libglade gtk; From f53c231cc438964ec7226e98fd982150330be2dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 2 Feb 2012 08:54:54 +0000 Subject: [PATCH 074/179] Updating truecrypt to 7.1. I pick the tarball not from the mainsite, but we checked that the hash corresponds with that of the main site. svn path=/nixpkgs/trunk/; revision=31963 --- pkgs/applications/misc/truecrypt/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/misc/truecrypt/default.nix b/pkgs/applications/misc/truecrypt/default.nix index 906817fe5a26..bd7197534519 100644 --- a/pkgs/applications/misc/truecrypt/default.nix +++ b/pkgs/applications/misc/truecrypt/default.nix @@ -40,17 +40,17 @@ library, use the 'NOGUI' parameter: $ make NOGUI=1 */ -{ fetchurl, stdenv, pkgconfig, fuse, wxGTK, devicemapper, +{ fetchurl, stdenv, pkgconfig, nasm, fuse, wxGTK, devicemapper, wxGUI ? true }: stdenv.mkDerivation { - name = "truecrypt-6.3a"; + name = "truecrypt-7.1"; builder = ./builder.sh; src = fetchurl { - url = http://www.sfr-fresh.com/unix/misc/TrueCrypt_6.3a_Source.tar.gz; - sha256 = "1vwnzay9gjlldqbdb20rhq2arhyzhdy347qc00hkpqmv2b8z070y"; + url = http://fossies.org/unix/misc/TrueCrypt-7.1-Source.tar.gz; + sha256 = "1x6rdxcvklb3zpmgfc3mg5h71gzki1q55ljkzjab2vzkf9n5v0cl"; }; pkcs11h = fetchurl { @@ -68,7 +68,7 @@ stdenv.mkDerivation { sha256 = "5ae6a4f32ca737e02def3bf314c9842fb89be82bf00b6f4022a97d8d565522b8"; }; - buildInputs = [ pkgconfig fuse devicemapper wxGTK ]; + buildInputs = [ pkgconfig fuse devicemapper wxGTK nasm ]; makeFlags = if (wxGUI) then "" else "NOGUI=1"; meta = { From 6a3feaa3dc3d0c2b091974dc89cfcbb3a06f99cc Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Thu, 2 Feb 2012 09:53:45 +0000 Subject: [PATCH 075/179] rpmclosure, also take into account rel attribute when versions are the same svn path=/nixpkgs/trunk/; revision=31964 --- pkgs/build-support/vm/rpm/rpm-closure.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/vm/rpm/rpm-closure.pl b/pkgs/build-support/vm/rpm/rpm-closure.pl index 2ef59dcbdef3..3771ef6eea55 100644 --- a/pkgs/build-support/vm/rpm/rpm-closure.pl +++ b/pkgs/build-support/vm/rpm/rpm-closure.pl @@ -76,8 +76,9 @@ for (my $i = 0; $i < scalar(@packagesFiles); $i++) { my $earlierPkg = $pkgs{$pkg->{name}}; print STDERR "WARNING: duplicate occurrence of package $pkg->{name}\n"; # - if (rpmvercmp($pkg->{'version'}->{ver}, $earlierPkg->{'version'}->{ver}) >= 0) { - print STDERR "WARNING: replaced package $pkg->{name} with newer one\n"; + my $cmp = rpmvercmp($pkg->{'version'}->{ver}, $earlierPkg->{'version'}->{ver}); + if ($cmp > 0 || ($cmp == 0 && rpmvercmp($pkg->{'version'}->{rel}, $earlierPkg->{'version'}->{rel})>0)) { + print STDERR "WARNING: replaced package $pkg->{name} (".$earlierPkg->{'version'}->{ver}." ".$earlierPkg->{'version'}->{rel}.") with newer one (".$pkg->{'version'}->{ver}." ".$pkg->{'version'}->{rel}.")\n"; $pkg->{urlPrefix} = $urlPrefixes[$i]; $pkgs{$pkg->{name}} = $pkg; } @@ -175,3 +176,4 @@ foreach my $pkgName (@needed) { } print "]\n"; +exit 1 From d52b0c377f11dcee7b447065e495aa85c82660e5 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Thu, 2 Feb 2012 09:54:16 +0000 Subject: [PATCH 076/179] rpmclosure, remove exit svn path=/nixpkgs/trunk/; revision=31965 --- pkgs/build-support/vm/rpm/rpm-closure.pl | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/build-support/vm/rpm/rpm-closure.pl b/pkgs/build-support/vm/rpm/rpm-closure.pl index 3771ef6eea55..94da0a20adc1 100644 --- a/pkgs/build-support/vm/rpm/rpm-closure.pl +++ b/pkgs/build-support/vm/rpm/rpm-closure.pl @@ -176,4 +176,3 @@ foreach my $pkgName (@needed) { } print "]\n"; -exit 1 From d7b739d9a5197b006a281c429f710da790d2c6c7 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 2 Feb 2012 10:37:45 +0000 Subject: [PATCH 077/179] haskell-cmdargs: deleted obsolete 0.8 version svn path=/nixpkgs/trunk/; revision=31966 --- .../libraries/haskell/cmdargs/0.8.nix | 20 ------------------- .../cmdargs/{0.9.2.nix => default.nix} | 0 pkgs/top-level/haskell-packages.nix | 8 ++------ 3 files changed, 2 insertions(+), 26 deletions(-) delete mode 100644 pkgs/development/libraries/haskell/cmdargs/0.8.nix rename pkgs/development/libraries/haskell/cmdargs/{0.9.2.nix => default.nix} (100%) diff --git a/pkgs/development/libraries/haskell/cmdargs/0.8.nix b/pkgs/development/libraries/haskell/cmdargs/0.8.nix deleted file mode 100644 index 4e8b236464a6..000000000000 --- a/pkgs/development/libraries/haskell/cmdargs/0.8.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ cabal, transformers }: - -cabal.mkDerivation (self: { - pname = "cmdargs"; - version = "0.8"; - sha256 = "0yhjg6rck1aj8gq07i9dcfxyjffxlr4lxnir2brkyahpfx5iyw9k"; - isLibrary = true; - isExecutable = true; - buildDepends = [ transformers ]; - meta = { - homepage = "http://community.haskell.org/~ndm/cmdargs/"; - description = "Command line argument processing"; - 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/cmdargs/0.9.2.nix b/pkgs/development/libraries/haskell/cmdargs/default.nix similarity index 100% rename from pkgs/development/libraries/haskell/cmdargs/0.9.2.nix rename to pkgs/development/libraries/haskell/cmdargs/default.nix diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 1898229ec8af..3885912106e9 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -531,9 +531,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); clientsession = callPackage ../development/libraries/haskell/clientsession {}; - cmdargs_0_8 = callPackage ../development/libraries/haskell/cmdargs/0.8.nix {}; - cmdargs_0_9_2 = callPackage ../development/libraries/haskell/cmdargs/0.9.2.nix {}; - cmdargs = self.cmdargs_0_9_2; + cmdargs = callPackage ../development/libraries/haskell/cmdargs {}; cmdlib = callPackage ../development/libraries/haskell/cmdlib {}; @@ -832,9 +830,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); hjsmin = callPackage ../development/libraries/haskell/hjsmin {}; hledger = callPackage ../development/libraries/haskell/hledger {}; - hledgerLib = callPackage ../development/libraries/haskell/hledger-lib { - cmdargs = self.cmdargs_0_8; - }; + hledgerLib = callPackage ../development/libraries/haskell/hledger-lib {}; hledgerVty = callPackage ../development/libraries/haskell/hledger-vty {}; hledgerChart = callPackage ../development/libraries/haskell/hledger-chart {}; hledgerInterest = callPackage ../applications/office/hledger-interest {}; From 8c1822d2d8e6265f140ff5779b02c28e0066988a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 2 Feb 2012 10:37:48 +0000 Subject: [PATCH 078/179] haskell-socks: added version 0.4.0 svn path=/nixpkgs/trunk/; revision=31967 --- .../libraries/haskell/socks/default.nix | 14 ++++++++++++++ pkgs/top-level/haskell-packages.nix | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 pkgs/development/libraries/haskell/socks/default.nix diff --git a/pkgs/development/libraries/haskell/socks/default.nix b/pkgs/development/libraries/haskell/socks/default.nix new file mode 100644 index 000000000000..ac5b87e65a1a --- /dev/null +++ b/pkgs/development/libraries/haskell/socks/default.nix @@ -0,0 +1,14 @@ +{ cabal, cereal, network }: + +cabal.mkDerivation (self: { + pname = "socks"; + version = "0.4.0"; + sha256 = "0181qyxn7n47i7dqzw9yymbf73yr5v91iqjq01iyy43b4vab2ha8"; + buildDepends = [ cereal network ]; + meta = { + homepage = "http://github.com/vincenthz/hs-socks"; + description = "Socks proxy (version 5) implementation"; + 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 3885912106e9..34e169ee6cfa 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1214,6 +1214,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); snapServer = callPackage ../development/libraries/haskell/snap/server.nix {}; + socks = callPackage ../development/libraries/haskell/socks {}; + stateref = callPackage ../development/libraries/haskell/stateref {}; StateVar = callPackage ../development/libraries/haskell/StateVar {}; From 02ef8dd73f3787ddb7ead972317ff1d414d9f6ec Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 2 Feb 2012 10:37:51 +0000 Subject: [PATCH 079/179] haskell-citeproc-hs: updated to version 0.3.4 svn path=/nixpkgs/trunk/; revision=31968 --- pkgs/development/libraries/haskell/citeproc-hs/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/citeproc-hs/default.nix b/pkgs/development/libraries/haskell/citeproc-hs/default.nix index b09409d28df1..d4f1d943088e 100644 --- a/pkgs/development/libraries/haskell/citeproc-hs/default.nix +++ b/pkgs/development/libraries/haskell/citeproc-hs/default.nix @@ -4,8 +4,8 @@ cabal.mkDerivation (self: { pname = "citeproc-hs"; - version = "0.3.3"; - sha256 = "0yhzqxrr7jn1h0r2vy1jmlrf0z64qcr2fl37i04rpiwzb3nc16r4"; + version = "0.3.4"; + sha256 = "17w6fpmlhbfd8jxxz4s6ybz3dswf0i96fjjbs05ykh4i97rs62nv"; buildDepends = [ hsBibutils HTTP json mtl network pandocTypes parsec syb time utf8String xml From a4eebff1d2f4e2e44695f292208211ba7e09b9e6 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 2 Feb 2012 10:37:53 +0000 Subject: [PATCH 080/179] haskell-hledger-lib: updated to version 0.17 svn path=/nixpkgs/trunk/; revision=31969 --- pkgs/development/libraries/haskell/hledger-lib/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/hledger-lib/default.nix b/pkgs/development/libraries/haskell/hledger-lib/default.nix index d8fdbf3f71de..aa17a1a7d92a 100644 --- a/pkgs/development/libraries/haskell/hledger-lib/default.nix +++ b/pkgs/development/libraries/haskell/hledger-lib/default.nix @@ -4,8 +4,8 @@ cabal.mkDerivation (self: { pname = "hledger-lib"; - version = "0.16.1"; - sha256 = "15imhdkzfnxr72lsghrbsfisc7c2al4jkzcp72yf4hhra4zym1sd"; + version = "0.17"; + sha256 = "0dlm3hjbcf48nzz597ag1q9y0phsc09062wvzpmfkhk4hsijpds4"; buildDepends = [ cmdargs HUnit mtl parsec regexpr safe split time utf8String ]; From c7f15bf35e93f1266b021bdbb694cd9528662e2b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 2 Feb 2012 10:37:56 +0000 Subject: [PATCH 081/179] haskell-hledger-web: updated to version 0.17 svn path=/nixpkgs/trunk/; revision=31970 --- .../libraries/haskell/hledger-web/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/haskell/hledger-web/default.nix b/pkgs/development/libraries/haskell/hledger-web/default.nix index 5b697906f3b0..692e57cad94d 100644 --- a/pkgs/development/libraries/haskell/hledger-web/default.nix +++ b/pkgs/development/libraries/haskell/hledger-web/default.nix @@ -1,6 +1,6 @@ -{ cabal, aesonNative, blazeHtml, cabalFileTh, clientsession -, cmdargs, dataObject, dataObjectYaml, failure, fileEmbed, hamlet -, hledger, hledgerLib, HUnit, ioStorage, parsec, regexpr, safe +{ cabal, aeson, blazeHtml, cabalFileTh, clientsession, cmdargs +, dataObject, dataObjectYaml, failure, fileEmbed, hamlet, hledger +, hledgerLib, HUnit, ioStorage, parsec, regexpr, safe , shakespeareCss, shakespeareJs, shakespeareText, text, time , transformers, wai, waiExtra, warp, yesod, yesodCore, yesodForm , yesodJson, yesodStatic @@ -8,12 +8,12 @@ cabal.mkDerivation (self: { pname = "hledger-web"; - version = "0.16.5"; - sha256 = "0gqhmyl62jkz156gypzxwj46xrh5as3wrvkwrg04wfmpqrac5n06"; + version = "0.17"; + sha256 = "1b5k76p27pvxc91gns3aimy3zcy6m366nnpwzbm214v6ka82imfi"; isLibrary = true; isExecutable = true; buildDepends = [ - aesonNative blazeHtml cabalFileTh clientsession cmdargs dataObject + aeson blazeHtml cabalFileTh clientsession cmdargs dataObject dataObjectYaml failure fileEmbed hamlet hledger hledgerLib HUnit ioStorage parsec regexpr safe shakespeareCss shakespeareJs shakespeareText text time transformers wai waiExtra warp yesod From 3170847b139093ef92202340c53823c588192048 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 2 Feb 2012 10:37:58 +0000 Subject: [PATCH 082/179] haskell-hledger: updated to version 0.17 svn path=/nixpkgs/trunk/; revision=31971 --- .../libraries/haskell/hledger/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/haskell/hledger/default.nix b/pkgs/development/libraries/haskell/hledger/default.nix index e0560855286e..6184f551e0c9 100644 --- a/pkgs/development/libraries/haskell/hledger/default.nix +++ b/pkgs/development/libraries/haskell/hledger/default.nix @@ -1,16 +1,16 @@ -{ cabal, cmdargs, csv, haskeline, hledgerLib, HUnit, mtl, parsec -, regexpr, safe, split, time, utf8String +{ cabal, cabalFileTh, cmdargs, csv, haskeline, hledgerLib, HUnit +, mtl, parsec, regexpr, safe, split, time, utf8String }: cabal.mkDerivation (self: { pname = "hledger"; - version = "0.16.1"; - sha256 = "182a5qlcxbh9q8hzrmgm99hcgvxjq8j5xq202iff14p1yqv0irs2"; + version = "0.17"; + sha256 = "0ah01d10hvz12zwkprk6sb3by8azz9fhm772440arhd7r9fn6232"; isLibrary = true; isExecutable = true; buildDepends = [ - cmdargs csv haskeline hledgerLib HUnit mtl parsec regexpr safe - split time utf8String + cabalFileTh cmdargs csv haskeline hledgerLib HUnit mtl parsec + regexpr safe split time utf8String ]; meta = { homepage = "http://hledger.org"; From 36f7262ef33a8fcc72b7d3dc4b3ea2f08e20d125 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 2 Feb 2012 10:38:01 +0000 Subject: [PATCH 083/179] haskell-socks: updated to version 0.4.0 svn path=/nixpkgs/trunk/; revision=31972 --- pkgs/development/libraries/haskell/socks/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/haskell/socks/default.nix b/pkgs/development/libraries/haskell/socks/default.nix index ac5b87e65a1a..d6e9f648f773 100644 --- a/pkgs/development/libraries/haskell/socks/default.nix +++ b/pkgs/development/libraries/haskell/socks/default.nix @@ -10,5 +10,9 @@ cabal.mkDerivation (self: { description = "Socks proxy (version 5) implementation"; license = self.stdenv.lib.licenses.bsd3; platforms = self.ghc.meta.platforms; + maintainers = [ + self.stdenv.lib.maintainers.andres + self.stdenv.lib.maintainers.simons + ]; }; }) From de4350af7dc23264e087558dd08c1952ed90ce8d Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 2 Feb 2012 10:38:03 +0000 Subject: [PATCH 084/179] haskell-test-framework: updated to version 0.5 svn path=/nixpkgs/trunk/; revision=31973 --- pkgs/development/libraries/haskell/test-framework/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/test-framework/default.nix b/pkgs/development/libraries/haskell/test-framework/default.nix index 7fa6dcae0cee..6ac60c1df2dd 100644 --- a/pkgs/development/libraries/haskell/test-framework/default.nix +++ b/pkgs/development/libraries/haskell/test-framework/default.nix @@ -4,8 +4,8 @@ cabal.mkDerivation (self: { pname = "test-framework"; - version = "0.4.2.1"; - sha256 = "1021drmg1k4b844rwsjfbvajai4irrxc9aa7g6rk5n246a2nh9if"; + version = "0.5"; + sha256 = "19zm9xdhyjhqi2ryd2gkwi7m92s88mmiw1b6b91hjfhfw3c1qlzz"; isLibrary = true; isExecutable = true; buildDepends = [ From 9aae354adfcd1112097ecb29d69b26611efe55d8 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 2 Feb 2012 10:38:06 +0000 Subject: [PATCH 085/179] haskell-zlib-bindings: updated to version 0.0.3.1 svn path=/nixpkgs/trunk/; revision=31974 --- pkgs/development/libraries/haskell/zlib-bindings/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/zlib-bindings/default.nix b/pkgs/development/libraries/haskell/zlib-bindings/default.nix index 86ab3ad1aaba..1d4f6659475a 100644 --- a/pkgs/development/libraries/haskell/zlib-bindings/default.nix +++ b/pkgs/development/libraries/haskell/zlib-bindings/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "zlib-bindings"; - version = "0.0.3"; - sha256 = "0hi74pc9lc11j7bvaka2fpy3cdql2z7232nxpjffjk7prqrc0q8d"; + version = "0.0.3.1"; + sha256 = "1j1z797zi5svxyv5ssfx8lyhmzlc2j7iad4b01aw0jvyp3ad4qan"; buildDepends = [ zlib ]; meta = { homepage = "http://github.com/snoyberg/zlib-bindings"; From e3e09ea617451cb18a98b273df275e5250336c9e Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 2 Feb 2012 10:38:08 +0000 Subject: [PATCH 086/179] haskell-packages.nix: disabled hledger-vty and hledger-chart These packages don't build with current versions of hledger-lib. I'll ask upstream about an update. svn path=/nixpkgs/trunk/; revision=31975 --- pkgs/top-level/haskell-packages.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 34e169ee6cfa..cabebd727ba9 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -831,8 +831,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); hledger = callPackage ../development/libraries/haskell/hledger {}; hledgerLib = callPackage ../development/libraries/haskell/hledger-lib {}; - hledgerVty = callPackage ../development/libraries/haskell/hledger-vty {}; - hledgerChart = callPackage ../development/libraries/haskell/hledger-chart {}; + #hledgerVty = callPackage ../development/libraries/haskell/hledger-vty {}; + #hledgerChart = callPackage ../development/libraries/haskell/hledger-chart {}; hledgerInterest = callPackage ../applications/office/hledger-interest {}; hledgerWeb = callPackage ../development/libraries/haskell/hledger-web {}; From c9a9d814716aac33e386c73a58a86e35f5b0e310 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 2 Feb 2012 10:52:12 +0000 Subject: [PATCH 087/179] haskell-conduit: updated to version 0.1.1.1 svn path=/nixpkgs/trunk/; revision=31976 --- pkgs/development/libraries/haskell/conduit/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/conduit/default.nix b/pkgs/development/libraries/haskell/conduit/default.nix index 38285492dd41..bd8d1632af24 100644 --- a/pkgs/development/libraries/haskell/conduit/default.nix +++ b/pkgs/development/libraries/haskell/conduit/default.nix @@ -4,8 +4,8 @@ cabal.mkDerivation (self: { pname = "conduit"; - version = "0.0.4"; - sha256 = "1sc14nh21ba85azm4my5qnllnlbmsq5j6h1yd1mdsk2z3fb0x5zz"; + version = "0.1.1.1"; + sha256 = "0gqkk5q329xbw565xd9xc0pz2ha66jkdbbjgwadvrjw1n52vaqg5"; buildDepends = [ liftedBase monadControl text transformers transformersBase ]; From 0f5ff15cb962d69719d84319a8583417caaddc8a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 2 Feb 2012 10:52:15 +0000 Subject: [PATCH 088/179] haskell-http-conduit: updated to version 1.2.0 svn path=/nixpkgs/trunk/; revision=31977 --- pkgs/development/libraries/haskell/http-conduit/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/http-conduit/default.nix b/pkgs/development/libraries/haskell/http-conduit/default.nix index bf411f89221c..0a4dd110fee2 100644 --- a/pkgs/development/libraries/haskell/http-conduit/default.nix +++ b/pkgs/development/libraries/haskell/http-conduit/default.nix @@ -7,8 +7,8 @@ cabal.mkDerivation (self: { pname = "http-conduit"; - version = "1.1.2.2"; - sha256 = "049gidxmrw4zri2zkibl2298glhapzzh1kg001dn563594bbiccz"; + version = "1.2.0"; + sha256 = "1s3qrvglhymwvr0cp32mi95dijic40lphhsfr4hm63qjphfc8dpi"; buildDepends = [ asn1Data attoparsec attoparsecConduit base64Bytestring blazeBuilder blazeBuilderConduit caseInsensitive certificate conduit cprngAes From 7b5db94b5f16e56212c905fc7f28897570f759ed Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 2 Feb 2012 12:19:17 +0000 Subject: [PATCH 089/179] * Updated Adobe Reader to 9.4.7. svn path=/nixpkgs/trunk/; revision=31978 --- pkgs/applications/misc/adobe-reader/default.nix | 6 +++--- pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/misc/adobe-reader/default.nix b/pkgs/applications/misc/adobe-reader/default.nix index e56982a6680b..25bce4203eed 100644 --- a/pkgs/applications/misc/adobe-reader/default.nix +++ b/pkgs/applications/misc/adobe-reader/default.nix @@ -3,13 +3,13 @@ assert stdenv.system == "i686-linux"; stdenv.mkDerivation { - name = "adobe-reader-9.4.2-1"; + name = "adobe-reader-9.4.7-1"; builder = ./builder.sh; src = fetchurl { - url = http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/9.4.2/enu/AdbeRdr9.4.2-1_i486linux_enu.tar.bz2; - sha256 = "0xm8ngr7lslhxli9ly1g2w7ichip88vpf7lfx1ma0liaw4m2gv0h"; + url = http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/9.4.7/enu/AdbeRdr9.4.7-1_i486linux_enu.tar.bz2; + sha256 = "0bzx1rcwc9bi5jkh8f8hjb354zxlvvx37lhm0l2r0mjxj8fimfb5"; }; # !!! Adobe Reader contains copies of OpenSSL, libcurl, and libicu. diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1b44d0459385..99aab924b0ca 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3084,7 +3084,6 @@ let omake = callPackage ../development/tools/ocaml/omake { }; - openocd = callPackage ../development/tools/misc/openocd { }; oprofile = import ../development/tools/profiling/oprofile { @@ -8693,7 +8692,6 @@ let texLiveFull = lib.setName "texlive-full" (texLiveAggregationFun { paths = [ texLive texLiveExtra lmodern texLiveCMSuper texLiveLatexXColor texLivePGF texLiveBeamer texLiveModerncv ]; - }); /* Look in configurations/misc/raskin.nix for usage example (around revisions From 57c1279ce8a6f0dbdad7d0cae9d3173d7bdd071b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 2 Feb 2012 13:33:54 +0000 Subject: [PATCH 090/179] haskell-clientsession: updated to version 0.7.4 svn path=/nixpkgs/trunk/; revision=31980 --- .../development/libraries/haskell/clientsession/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/haskell/clientsession/default.nix b/pkgs/development/libraries/haskell/clientsession/default.nix index 32e88cbf2cf4..a59b3b9ef0e4 100644 --- a/pkgs/development/libraries/haskell/clientsession/default.nix +++ b/pkgs/development/libraries/haskell/clientsession/default.nix @@ -4,14 +4,14 @@ cabal.mkDerivation (self: { pname = "clientsession"; - version = "0.7.3.6"; - sha256 = "04cvws7h2pm3rk8p2yj1pqkf9vjqq65hxg9sjldg7zhxdjgq1hgc"; + version = "0.7.4"; + sha256 = "050mg3rzyld4v2b9v1pc1q563sp7sffiapvr8ks8f46ibl17lvss"; buildDepends = [ base64Bytestring cereal cprngAes cryptoApi cryptocipher entropy skein tagged ]; meta = { - homepage = "http://github.com/snoyberg/clientsession/tree/master"; + homepage = "http://github.com/yesodweb/clientsession/tree/master"; description = "Securely store session data in a client-side cookie"; license = self.stdenv.lib.licenses.bsd3; platforms = self.ghc.meta.platforms; From 0ff686650199823c878381a7c5734924964016d0 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 2 Feb 2012 13:33:58 +0000 Subject: [PATCH 091/179] haskell-crypto-api: updated to version 0.9 svn path=/nixpkgs/trunk/; revision=31981 --- pkgs/development/libraries/haskell/crypto-api/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/crypto-api/default.nix b/pkgs/development/libraries/haskell/crypto-api/default.nix index 66204112c166..546392d70872 100644 --- a/pkgs/development/libraries/haskell/crypto-api/default.nix +++ b/pkgs/development/libraries/haskell/crypto-api/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "crypto-api"; - version = "0.8"; - sha256 = "1fwkafb9v2348vr1a4xnlmkgs4kh85az4f3wnrl9cbqwxf3cc328"; + version = "0.9"; + sha256 = "11372brnpiqdm6fdfp95wyyl8nvhbagnq0q2bdhn4xsskpnp4hnp"; buildDepends = [ cereal entropy largeword tagged ]; meta = { homepage = "http://trac.haskell.org/crypto-api/wiki"; From e11c942238ee3d17bd23ea926f96fd516d92fd6b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 2 Feb 2012 14:54:53 +0000 Subject: [PATCH 092/179] haskell-yesod-default: added version 0.5.0 svn path=/nixpkgs/trunk/; revision=31982 --- .../haskell/yesod-default/default.nix | 23 +++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/libraries/haskell/yesod-default/default.nix diff --git a/pkgs/development/libraries/haskell/yesod-default/default.nix b/pkgs/development/libraries/haskell/yesod-default/default.nix new file mode 100644 index 000000000000..bfed775756fd --- /dev/null +++ b/pkgs/development/libraries/haskell/yesod-default/default.nix @@ -0,0 +1,23 @@ +{ cabal, cmdargs, dataObject, dataObjectYaml, shakespeareCss +, shakespeareJs, text, transformers, wai, waiExtra, warp, yesodCore +}: + +cabal.mkDerivation (self: { + pname = "yesod-default"; + version = "0.5.0"; + sha256 = "02j9567nmyxr68q8p8ihbig9b6f9p9ciif8nlp03mfkbq10hwrm3"; + buildDepends = [ + cmdargs dataObject dataObjectYaml shakespeareCss shakespeareJs text + transformers wai waiExtra warp yesodCore + ]; + meta = { + homepage = "http://www.yesodweb.com/"; + description = "Default config and main functions for your yesod application"; + 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 cabebd727ba9..4f3e4357e02a 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1473,6 +1473,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); pathPieces = self.pathPieces_0_0_0; }; + yesodDefault = callPackage ../development/libraries/haskell/yesod-default {}; + yesodForm = callPackage ../development/libraries/haskell/yesod-form {}; yesodJson = callPackage ../development/libraries/haskell/yesod-json {}; From bd2c29d5533f84654e2a9c5ef410a3a1f769129d Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 2 Feb 2012 14:54:56 +0000 Subject: [PATCH 093/179] haskell-persistent-sqlite: added version 0.6.2.1 svn path=/nixpkgs/trunk/; revision=31983 --- .../haskell/persistent-sqlite/default.nix | 22 +++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/libraries/haskell/persistent-sqlite/default.nix diff --git a/pkgs/development/libraries/haskell/persistent-sqlite/default.nix b/pkgs/development/libraries/haskell/persistent-sqlite/default.nix new file mode 100644 index 000000000000..0037573cea7e --- /dev/null +++ b/pkgs/development/libraries/haskell/persistent-sqlite/default.nix @@ -0,0 +1,22 @@ +{ cabal, dataObject, monadControl, neither, persistent, text +, transformers +}: + +cabal.mkDerivation (self: { + pname = "persistent-sqlite"; + version = "0.6.2.1"; + sha256 = "10sqmkd7vnrrpr8phcswbxcvn8vjipgy96nk2jj3g96j3cfwfpk0"; + buildDepends = [ + dataObject monadControl neither persistent text transformers + ]; + meta = { + homepage = "http://www.yesodweb.com/book/persistent"; + description = "Backend for the persistent library using sqlite3"; + 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 4f3e4357e02a..ce0781c12e94 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1084,6 +1084,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); pathPieces = self.pathPieces_0_0_0; }; + persistentSqlite = callPackage ../development/libraries/haskell/persistent-sqlite {}; + persistentTemplate = callPackage ../development/libraries/haskell/persistent-template {}; polyparse = callPackage ../development/libraries/haskell/polyparse/default.nix {}; From 9d9e33b98d8319cf10e77694e6dbd7ed28339a2f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 2 Feb 2012 15:44:22 +0000 Subject: [PATCH 094/179] * Added Firefox 10.0. P.S. it seems that Firefox 10 no longer needs --enable-official-branding to get a browser that calls itself "Firefox". But I'll leave the flag in for the moment. * Removed Firefox 8.0. svn path=/nixpkgs/trunk/; revision=31984 --- .../browsers/firefox/{8.0.nix => 10.0.nix} | 8 ++++---- pkgs/top-level/all-packages.nix | 14 +++++++------- pkgs/top-level/release.nix | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) rename pkgs/applications/networking/browsers/firefox/{8.0.nix => 10.0.nix} (96%) diff --git a/pkgs/applications/networking/browsers/firefox/8.0.nix b/pkgs/applications/networking/browsers/firefox/10.0.nix similarity index 96% rename from pkgs/applications/networking/browsers/firefox/8.0.nix rename to pkgs/applications/networking/browsers/firefox/10.0.nix index 823d6e0cbd28..79869b324b9b 100644 --- a/pkgs/applications/networking/browsers/firefox/8.0.nix +++ b/pkgs/applications/networking/browsers/firefox/10.0.nix @@ -15,14 +15,14 @@ assert stdenv.gcc ? libc && stdenv.gcc.libc != null; rec { - firefoxVersion = "8.0.1"; + firefoxVersion = "10.0"; - xulVersion = "8.0.1"; # this attribute is used by other packages + xulVersion = "10.0"; # this attribute is used by other packages src = fetchurl { url = "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${firefoxVersion}/source/firefox-${firefoxVersion}.source.tar.bz2"; - sha1 = "0dd207c5cee9d53114c55aa23eeca36b754bc128"; + sha1 = "cbf1fb0efe0a3a2b2dafaa324b136736e93de70c"; }; commonConfigureFlags = @@ -139,7 +139,7 @@ rec { [ "--enable-application=browser" "--with-libxul-sdk=${xulrunner}/lib/xulrunner-devel-${xulrunner.version}" "--enable-chrome-format=jar" - "--disable-elf-hack" + "--disable-elf-hack" ] ++ commonConfigureFlags ++ stdenv.lib.optional enableOfficialBranding "--enable-official-branding"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 99aab924b0ca..ed955eceb3ca 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6838,13 +6838,6 @@ let firefox36Wrapper = wrapFirefox { browser = firefox36Pkgs.firefox; }; - firefox80Pkgs = callPackage ../applications/networking/browsers/firefox/8.0.nix { - inherit (gtkLibs) gtk pango; - inherit (gnome) libIDL; - }; - - firefox80Wrapper = wrapFirefox { browser = firefox80Pkgs.firefox; }; - firefox90Pkgs = callPackage ../applications/networking/browsers/firefox/9.0.nix { inherit (gtkLibs) gtk pango; inherit (gnome) libIDL; @@ -6852,6 +6845,13 @@ let firefox90Wrapper = wrapFirefox { browser = firefox90Pkgs.firefox; }; + firefox100Pkgs = callPackage ../applications/networking/browsers/firefox/10.0.nix { + inherit (gtkLibs) gtk pango; + inherit (gnome) libIDL; + }; + + firefox100Wrapper = wrapFirefox { browser = firefox100Pkgs.firefox; }; + flac = callPackage ../applications/audio/flac { }; flashplayer = flashplayer11; diff --git a/pkgs/top-level/release.nix b/pkgs/top-level/release.nix index 08f6e993b11f..44419a040fdb 100644 --- a/pkgs/top-level/release.nix +++ b/pkgs/top-level/release.nix @@ -363,8 +363,8 @@ with (import ./release-lib.nix); }; firefox36Pkgs.firefox = linux; - firefox80Pkgs.firefox = linux; firefox90Pkgs.firefox = linux; + firefox100Pkgs.firefox = linux; gnome = { gnome_panel = linux; From 798890b819e188a8a70fd2ade1e9872addb19d19 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 2 Feb 2012 17:03:01 +0000 Subject: [PATCH 095/179] haskell-zlib: drop version 0.5.3.2 again; it's causing lots of trouble This change affects only GHC 7.2 or later. svn path=/nixpkgs/trunk/; revision=31985 --- .../libraries/haskell/zlib/0.5.3.2.nix | 17 ----------------- pkgs/top-level/haskell-packages.nix | 13 ++----------- 2 files changed, 2 insertions(+), 28 deletions(-) delete mode 100644 pkgs/development/libraries/haskell/zlib/0.5.3.2.nix diff --git a/pkgs/development/libraries/haskell/zlib/0.5.3.2.nix b/pkgs/development/libraries/haskell/zlib/0.5.3.2.nix deleted file mode 100644 index 6370c5560b83..000000000000 --- a/pkgs/development/libraries/haskell/zlib/0.5.3.2.nix +++ /dev/null @@ -1,17 +0,0 @@ -{ cabal, zlib }: - -cabal.mkDerivation (self: { - pname = "zlib"; - version = "0.5.3.2"; - sha256 = "1a5xr59bw7hpgd7fwkpgkrpib7i46dsip7285pccvi2934k0628q"; - extraLibraries = [ zlib ]; - meta = { - description = "Compression and decompression in the gzip and zlib formats"; - 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 ce0781c12e94..5f445ef9f4f2 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -151,7 +151,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); stm = self.stm_2_2_0_1; # 7.2 ok, 7.3 ok syb = self.syb_0_3_6; # 7.2 ok, 7.3 ok xhtml = self.xhtml_3000_2_0_1; # 7.2 ok, 7.3 ok - zlib = self.zlib_0_5_3_2; # 7.2 ok, 7.3 ok + zlib = self.zlib_0_5_3_1; # 7.2 ok, 7.3 ok HTTP = self.HTTP_4000_2_2; # 7.2 ok, 7.3 ok deepseq = self.deepseq_1_1_0_2; # 7.2 ok, 7.3 ok text = self.text_0_11_1_13; # 7.2 ok, 7.3 ok @@ -210,7 +210,6 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); haskellPlatform = self.haskellPlatform_2011_4_0_0; mtl1 = self.mtl_1_1_1_1; repaExamples = null; # don't pick this version of 'repa-examples' during nix-env -u - zlib_0_5_3_2 = null; # don't pick this version of 'zlib' during nix-env -u }; haskellPlatform_2011_4_0_0 = @@ -253,7 +252,6 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); haskellPlatform = self.haskellPlatform_2011_2_0_1; mtl1 = self.mtl_1_1_1_1; repaExamples = null; # don't pick this version of 'repa-examples' during nix-env -u - zlib_0_5_3_2 = null; # don't pick this version of 'zlib' during nix-env -u }; haskellPlatform_2011_2_0_1 = @@ -296,7 +294,6 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); haskellPlatform = self.haskellPlatform_2011_2_0_0; mtl1 = self.mtl_1_1_1_1; repaExamples = null; # don't pick this version of 'repa-examples' during nix-env -u - zlib_0_5_3_2 = null; # don't pick this version of 'zlib' during nix-env -u }; haskellPlatform_2011_2_0_0 = @@ -335,7 +332,6 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); self : self.haskellPlatformArgs_2010_2_0_0 self // { haskellPlatform = self.haskellPlatform_2010_2_0_0; repaExamples = null; # don't pick this version of 'repa-examples' during nix-env -u - zlib_0_5_3_2 = null; # don't pick this version of 'zlib' during nix-env -u deepseq = self.deepseq_1_1_0_2; # deviating from Haskell platform here, to make some packages (notably statistics) compile }; @@ -375,7 +371,6 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); haskellPlatform = self.haskellPlatform_2010_1_0_0; extensibleExceptions = self.extensibleExceptions_0_1_1_0; repaExamples = null; # don't pick this version of 'repa-examples' during nix-env -u - zlib_0_5_3_2 = null; # don't pick this version of 'zlib' during nix-env -u }; haskellPlatform_2010_1_0_0 = @@ -415,7 +410,6 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); extensibleExceptions = self.extensibleExceptions_0_1_1_0; text = self.text_0_11_0_6; repaExamples = null; # don't pick this version of 'repa-examples' during nix-env -u - zlib_0_5_3_2 = null; # don't pick this version of 'zlib' during nix-env -u }; haskellPlatform_2009_2_0_2 = @@ -1502,10 +1496,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); zlib_0_5_3_1 = callPackage ../development/libraries/haskell/zlib/0.5.3.1.nix { inherit (pkgs) zlib; }; - zlib_0_5_3_2 = callPackage ../development/libraries/haskell/zlib/0.5.3.2.nix { - inherit (pkgs) zlib; - }; - zlib = self.zlib_0_5_3_2; + zlib = self.zlib_0_5_3_1; zlibBindings = callPackage ../development/libraries/haskell/zlib-bindings {}; From 9758857fbe69d84e98e9ffd9a0f73e1ac94e4bac Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Thu, 2 Feb 2012 20:30:55 +0000 Subject: [PATCH 096/179] libdevil: pick a couple of debian patches svn path=/nixpkgs/trunk/; revision=31986 --- .../libraries/libdevil/default.nix | 25 ++++++++++----- .../libraries/libdevil/ftbfs-libpng15.patch | 31 +++++++++++++++++++ 2 files changed, 49 insertions(+), 7 deletions(-) create mode 100644 pkgs/development/libraries/libdevil/ftbfs-libpng15.patch diff --git a/pkgs/development/libraries/libdevil/default.nix b/pkgs/development/libraries/libdevil/default.nix index a67dc71f699f..12008bcbccb0 100644 --- a/pkgs/development/libraries/libdevil/default.nix +++ b/pkgs/development/libraries/libdevil/default.nix @@ -1,5 +1,6 @@ -{ stdenv, fetchurl -, libjpeg ? null, libpng ? null, libmng ? null, lcms1 ? null, libtiff ? null, openexr ? null, mesa ? null, xlibs ? null }: +{ stdenv, fetchurl, libjpeg, libpng, libmng, lcms1, libtiff, openexr, mesa +, libX11, pkgconfig }: + stdenv.mkDerivation rec { name ="libdevil-${version}"; @@ -10,14 +11,24 @@ stdenv.mkDerivation rec { sha256 = "1zd850nn7nvkkhasrv7kn17kzgslr5ry933v6db62s4lr0zzlbv8"; }; - buildInputs = [ libjpeg libpng libmng lcms1 libtiff openexr mesa xlibs.libX11 ]; + buildInputs = [ libjpeg libpng libmng lcms1 libtiff openexr mesa libX11 ]; + buildNativeInputs = [ pkgconfig ]; + configureFlags = [ "--enable-ILU" "--enable-ILUT" ]; + patches = + [ ( fetchurl { + url = http://patch-tracker.debian.org/patch/series/dl/devil/1.7.8-6.1/03_CVE-2009-3994.diff; + sha256 = "0qkx2qfv02igbrmsn6z5a3lbrbwjfh3rb0c2sj54wy0j1f775hbc"; + } ) + ./ftbfs-libpng15.patch + ]; + meta = with stdenv.lib; { homepage = http://openil.sourceforge.net/; - description = "An image library which can can load, save, convert, manipulate, - filter and display a wide variety of image formats."; + description = "An image library which can can load, save, convert, manipulate, filter and display a wide variety of image formats"; license = licenses.lgpl2; - maintainers = [ maintainers.phreedom ]; + platforms = platforms.all; + maintainers = [ maintainers.phreedom maintainers.urkud ]; }; -} \ No newline at end of file +} diff --git a/pkgs/development/libraries/libdevil/ftbfs-libpng15.patch b/pkgs/development/libraries/libdevil/ftbfs-libpng15.patch new file mode 100644 index 000000000000..5fc53c2dc6a7 --- /dev/null +++ b/pkgs/development/libraries/libdevil/ftbfs-libpng15.patch @@ -0,0 +1,31 @@ +Source: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=649554 +--- devil-1.7.8.orig/src-IL/src/il_icon.c ++++ devil-1.7.8/src-IL/src/il_icon.c +@@ -525,7 +525,11 @@ + + // Expand low-bit-depth grayscale images to 8 bits + if (ico_color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) { ++#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4 ++ png_set_expand_gray_1_2_4_to_8(ico_png_ptr); ++#else + png_set_gray_1_2_4_to_8(ico_png_ptr); ++#endif + } + + // Expand RGB images with transparency to full alpha channels +only in patch2: +unchanged: +--- devil-1.7.8.orig/src-IL/src/il_png.c ++++ devil-1.7.8/src-IL/src/il_png.c +@@ -278,7 +278,11 @@ + + // Expand low-bit-depth grayscale images to 8 bits + if (png_color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) { ++#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4 ++ png_set_expand_gray_1_2_4_to_8(png_ptr); ++#else + png_set_gray_1_2_4_to_8(png_ptr); ++#endif + } + + // Expand RGB images with transparency to full alpha channels From f113ee27ad1befdff3eef7cbd714065f167b946b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 2 Feb 2012 20:49:42 +0000 Subject: [PATCH 097/179] LZO 2.06. svn path=/nixpkgs/trunk/; revision=31988 --- pkgs/development/libraries/lzo/default.nix | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/lzo/default.nix b/pkgs/development/libraries/lzo/default.nix index e765cf1a6825..1da101478890 100644 --- a/pkgs/development/libraries/lzo/default.nix +++ b/pkgs/development/libraries/lzo/default.nix @@ -1,18 +1,32 @@ {stdenv, fetchurl}: stdenv.mkDerivation rec { - name = "lzo-2.03"; - + name = "lzo-2.06"; + src = fetchurl { url = "${meta.homepage}/download/${name}.tar.gz"; - sha256 = "8b1b0da8f757b9ac318e1c15a0eac8bdb56ca902a2dd25beda06c0f265f22591"; + sha256 = "0wryshs446s7cclrbjykyj766znhcpnr7s3cxy33ybfn6vwfcygz"; }; - configureFlags = "--enable-shared"; + configureFlags = [ "--enable-shared" ]; + + doCheck = true; meta = { description = "A data compresion library suitable for real-time data de-/compression"; + longDescription = + '' LZO is a data compression library which is suitable for data + de-/compression in real-time. This means it favours speed over + compression ratio. + + LZO is written in ANSI C. Both the source code and the compressed + data format are designed to be portable across platforms. + ''; + homepage = http://www.oberhumer.com/opensource/lzo; license = "GPLv2+"; + + platforms = stdenv.lib.platforms.all; + maintainers = [ stdenv.lib.maintainers.ludo ]; }; } From b66db5ca1384374f79922643ad55a77431b51996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andres=20L=C3=B6h?= Date: Thu, 2 Feb 2012 21:08:30 +0000 Subject: [PATCH 098/179] Add ghc-7.4.1. Remove Hydra building for the 7.2.* series. svn path=/nixpkgs/trunk/; revision=31989 --- pkgs/development/compilers/ghc/7.4.1.nix | 44 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 16 +++++---- pkgs/top-level/haskell-packages.nix | 1 + 3 files changed, 55 insertions(+), 6 deletions(-) create mode 100644 pkgs/development/compilers/ghc/7.4.1.nix diff --git a/pkgs/development/compilers/ghc/7.4.1.nix b/pkgs/development/compilers/ghc/7.4.1.nix new file mode 100644 index 000000000000..9a554a467d8d --- /dev/null +++ b/pkgs/development/compilers/ghc/7.4.1.nix @@ -0,0 +1,44 @@ +{stdenv, fetchurl, ghc, perl, gmp, ncurses, darwinInstallNameToolUtility}: + +stdenv.mkDerivation rec { + version = "7.4.1"; + name = "ghc-${version}"; + + src = fetchurl { + url = "http://haskell.org/ghc/dist/${version}/${name}-src.tar.bz2"; + sha256 = "0ycscsagyy9n796a59q6761s6ar50d8inibvnrcp96siksj0j73j"; + }; + + buildInputs = [ghc perl gmp ncurses] ++ + (if stdenv.isDarwin then [darwinInstallNameToolUtility] else []); + + 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 + sed -i -e 's|-isysroot /Developer/SDKs/MacOSX10.5.sdk||' configure + ''; + + 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 = { + homepage = "http://haskell.org/ghc"; + description = "The Glasgow Haskell Compiler"; + maintainers = [ + stdenv.lib.maintainers.marcweber + stdenv.lib.maintainers.andres + stdenv.lib.maintainers.simons + ]; + platforms = ghc.meta.platforms; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ed955eceb3ca..ba8051b6f3ef 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2274,16 +2274,20 @@ let (x : x.ghc704Prefs) false false (x : x); haskellPackages_ghc721 = - recurseIntoAttrs - (haskellPackagesFun ../development/compilers/ghc/7.2.1.nix - (if stdenv.isDarwin then ghc704Binary else ghc6121Binary) - (x : x.ghc721Prefs) false false lowPrio); + haskellPackagesFun ../development/compilers/ghc/7.2.1.nix + (if stdenv.isDarwin then ghc704Binary else ghc6121Binary) + (x : x.ghc721Prefs) false false lowPrio; haskellPackages_ghc722 = + haskellPackagesFun ../development/compilers/ghc/7.2.2.nix + (if stdenv.isDarwin then ghc704Binary else ghc6121Binary) + (x : x.ghc722Prefs) false false lowPrio; + + haskellPackages_ghc741 = recurseIntoAttrs - (haskellPackagesFun ../development/compilers/ghc/7.2.2.nix + (haskellPackagesFun ../development/compilers/ghc/7.4.1.nix (if stdenv.isDarwin then ghc704Binary else ghc6121Binary) - (x : x.ghc722Prefs) false false lowPrio); + (x : x.ghc741Prefs) false false lowPrio); # Reasonably current HEAD snapshot. Should *always* be lowPrio. haskellPackages_ghcHEAD = diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 5f445ef9f4f2..030d4a87a596 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -90,6 +90,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); ghc704Prefs = super : super // super.haskellPlatformDefaults_2011_4_0_0 super; # link ghc721Prefs = super : super // super.haskellPlatformDefaults_future super; ghc722Prefs = super : super // super.haskellPlatformDefaults_future super; #link + ghc741Prefs = super : super // super.haskellPlatformDefaults_HEAD super; ghcHEADPrefs = super : super // super.haskellPlatformDefaults_HEAD super; # GHC and its wrapper From cdf1a3a3c60662f08455ec499ff47bdd8a3fb8e3 Mon Sep 17 00:00:00 2001 From: Karn Kallio Date: Thu, 2 Feb 2012 22:41:21 +0000 Subject: [PATCH 099/179] Racket version 5.2.1 svn path=/nixpkgs/trunk/; revision=31990 --- pkgs/development/interpreters/racket/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/racket/default.nix b/pkgs/development/interpreters/racket/default.nix index 81a8c8ec696f..db92e0fa55b6 100644 --- a/pkgs/development/interpreters/racket/default.nix +++ b/pkgs/development/interpreters/racket/default.nix @@ -4,12 +4,12 @@ stdenv.mkDerivation rec { pname = "racket"; - version = "5.2"; + version = "5.2.1"; name = "${pname}-${version}"; src = fetchurl { url = "http://download.racket-lang.org/installers/${version}/${pname}/${name}-src-unix.tgz"; - sha256 = "1viz2hq1q1wyw9jmnssg5sbgglh05fwqkhyhfbak9lb6nfbhlg5w"; + sha256 = "1v5kvp7vfi4a4bn08jlaga441amlfxpjw9dm6vc1fazwzd72m539"; }; # Various racket executables do run-time searches for these. From f2d6ca5d02bfa20172b4661edbab11d7b2110233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andres=20L=C3=B6h?= Date: Fri, 3 Feb 2012 12:15:00 +0000 Subject: [PATCH 100/179] Added haskell-{bitarray,containers-deepseq,gd}. svn path=/nixpkgs/trunk/; revision=31991 --- .../libraries/haskell/bitarray/default.nix | 17 +++++++++++++++++ .../haskell/containers-deepseq/default.nix | 17 +++++++++++++++++ .../libraries/haskell/gd/default.nix | 19 +++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 8 ++++++++ 4 files changed, 61 insertions(+) create mode 100644 pkgs/development/libraries/haskell/bitarray/default.nix create mode 100644 pkgs/development/libraries/haskell/containers-deepseq/default.nix create mode 100644 pkgs/development/libraries/haskell/gd/default.nix diff --git a/pkgs/development/libraries/haskell/bitarray/default.nix b/pkgs/development/libraries/haskell/bitarray/default.nix new file mode 100644 index 000000000000..faf51870ae9b --- /dev/null +++ b/pkgs/development/libraries/haskell/bitarray/default.nix @@ -0,0 +1,17 @@ +{ cabal }: + +cabal.mkDerivation (self: { + pname = "bitarray"; + version = "0.0.1"; + sha256 = "01ijysisw70zaw70hx851axw48agfamdqj21rzzhdqd2ww6bwchb"; + meta = { + homepage = "http://code.haskell.org/~bkomuves/"; + description = "Mutable and immutable bit arrays"; + 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/containers-deepseq/default.nix b/pkgs/development/libraries/haskell/containers-deepseq/default.nix new file mode 100644 index 000000000000..1e7630a93e8c --- /dev/null +++ b/pkgs/development/libraries/haskell/containers-deepseq/default.nix @@ -0,0 +1,17 @@ +{ cabal, deepseq }: + +cabal.mkDerivation (self: { + pname = "containers-deepseq"; + version = "0.1.0.1"; + sha256 = "0l9d7hj66fygpsbjw6wy4l11c9cw739lvkrypapwihav7jzva541"; + buildDepends = [ deepseq ]; + meta = { + description = "Provide orphan NFData instances for containers as needed. (deprecated)"; + 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/gd/default.nix b/pkgs/development/libraries/haskell/gd/default.nix new file mode 100644 index 000000000000..42de27483801 --- /dev/null +++ b/pkgs/development/libraries/haskell/gd/default.nix @@ -0,0 +1,19 @@ +{ cabal, expat, fontconfig, freetype, gd, libjpeg, libpng, zlib }: + +cabal.mkDerivation (self: { + pname = "gd"; + version = "3000.7.1"; + sha256 = "07rb02jfmz6bw853b6snw1inby9qgaygdmlsid35snc2xn2ylb50"; + extraLibraries = [ + expat fontconfig freetype gd libjpeg libpng zlib + ]; + meta = { + description = "A Haskell binding to a subset of the GD graphics library"; + 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 030d4a87a596..807b40ead0f7 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -466,6 +466,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); binaryShared = callPackage ../development/libraries/haskell/binary-shared {}; + bitarray = callPackage ../development/libraries/haskell/bitarray {}; + bitmap = callPackage ../development/libraries/haskell/bitmap {}; bktrees = callPackage ../development/libraries/haskell/bktrees {}; @@ -540,6 +542,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); ConfigFile = callPackage ../development/libraries/haskell/ConfigFile {}; + containersDeepseq = callPackage ../development/libraries/haskell/containers-deepseq {}; + controlMonadAttempt = callPackage ../development/libraries/haskell/control-monad-attempt {}; convertible = callPackage ../development/libraries/haskell/convertible { @@ -678,6 +682,10 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); gamma = callPackage ../development/libraries/haskell/gamma {}; + gd = callPackage ../development/libraries/haskell/gd { + inherit (pkgs) gd zlib; + }; + gdiff = callPackage ../development/libraries/haskell/gdiff {}; genericDeriving = callPackage ../development/libraries/haskell/generic-deriving {}; From 4aac439f0030b53bb2b5bd779e8ab84412421534 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 13:12:07 +0000 Subject: [PATCH 101/179] redis: added version 2.4.7 Patch submitted by Phil Hagelberg . svn path=/nixpkgs/trunk/; revision=31992 --- pkgs/servers/nosql/redis/default.nix | 22 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/servers/nosql/redis/default.nix diff --git a/pkgs/servers/nosql/redis/default.nix b/pkgs/servers/nosql/redis/default.nix new file mode 100644 index 000000000000..e2e111a81fb6 --- /dev/null +++ b/pkgs/servers/nosql/redis/default.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + pname = "redis"; + version = "2.4.7"; + name = "${pname}-${version}"; + + src = fetchurl { + url = "http://redis.googlecode.com/files/redis-2.4.7.tar.gz"; + sha256 = "f91956377b7ff23cc23e0c8758e0b873032f36545c61d88436ebb741bf4dd5e1"; + }; + + makeFlags = "PREFIX=$(out)"; + + meta = { + homepage = http://redis.io; + description = "An open source, advanced key-value store"; + license = "BSD"; + + platforms = stdenv.lib.platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ba8051b6f3ef..b0e617326aed 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5184,6 +5184,8 @@ let radius = callPackage ../servers/radius { }; + redis = callPackage ../servers/nosql/redis { }; + redstore = callPackage ../servers/http/redstore { }; samba = callPackage ../servers/samba { }; From cf2591c5ece86df319ee41205b774b922a48b2fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Fri, 3 Feb 2012 16:16:18 +0000 Subject: [PATCH 102/179] Updating rdesktop to 1.7.1 svn path=/nixpkgs/trunk/; revision=31993 --- pkgs/applications/networking/remote/rdesktop/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/remote/rdesktop/default.nix b/pkgs/applications/networking/remote/rdesktop/default.nix index cceb70b74fbf..c8c72160b341 100644 --- a/pkgs/applications/networking/remote/rdesktop/default.nix +++ b/pkgs/applications/networking/remote/rdesktop/default.nix @@ -2,12 +2,12 @@ stdenv.mkDerivation (rec { pname = "rdesktop"; - version = "1.7.0"; + version = "1.7.1"; name = "${pname}-${version}"; src = fetchurl { url = "mirror://sourceforge/${pname}/${name}.tar.gz"; - sha256 = "0x2hnzvm0smnanin28n4mvzx9chpj2qnjfrxy307x21mgw6l5q1v"; + sha256 = "0yc4xz95w40m8ailpjgqp9h7bkc758vp0dlq4nj1pvr3xfnl7sni"; }; buildInputs = [openssl libX11]; From ade99756f914fb75743516be7352b5faa38fe5fb Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 19:06:12 +0000 Subject: [PATCH 103/179] haskell-idris: updated to version 0.9.1 svn path=/nixpkgs/trunk/; revision=31996 --- pkgs/development/compilers/idris/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/compilers/idris/default.nix b/pkgs/development/compilers/idris/default.nix index 56d5060662b7..4e491ffde0da 100644 --- a/pkgs/development/compilers/idris/default.nix +++ b/pkgs/development/compilers/idris/default.nix @@ -3,8 +3,8 @@ cabal.mkDerivation (self: { pname = "idris"; - version = "0.9.0"; - sha256 = "03zbdcl3v90zv0ibzq9fa8z2qrrdsilh5m509mczwrcmlzbzsmrl"; + version = "0.9.1"; + sha256 = "1yvw15750mqrvq1kd7bsk3ldq3s0z947c4f93pv7008gq5im4cvr"; isLibrary = false; isExecutable = true; buildDepends = [ binary epic haskeline mtl parsec transformers ]; @@ -12,7 +12,7 @@ cabal.mkDerivation (self: { noHaddock = true; meta = { homepage = "http://www.idris-lang.org/"; - description = "Dependently Typed Functional Programming Language"; + description = "Functional Programming Language with Dependent Types"; license = self.stdenv.lib.licenses.bsd3; platforms = self.ghc.meta.platforms; maintainers = [ From 51d6cf8c9084734e5de191569f654171e93849e5 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 19:06:15 +0000 Subject: [PATCH 104/179] haskell-binary: updated to version 0.5.1.0 svn path=/nixpkgs/trunk/; revision=31997 --- pkgs/development/libraries/haskell/binary/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/binary/default.nix b/pkgs/development/libraries/haskell/binary/default.nix index 65018a4d5c51..9195e24d5293 100644 --- a/pkgs/development/libraries/haskell/binary/default.nix +++ b/pkgs/development/libraries/haskell/binary/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "binary"; - version = "0.5.0.2"; - sha256 = "02qkybh11psmggkqcs7f8kh4izfj44gq1wk23xhv3jbxc7gdxhp0"; + version = "0.5.1.0"; + sha256 = "18si0f021447b1kqshar224zyh02gc65z7v82waxcn4igss7gm1a"; meta = { homepage = "http://code.haskell.org/binary/"; description = "Binary serialisation for Haskell values using lazy ByteStrings"; From 7851600fcf2a11f1f6cb8ce8a614ee4a492f805e Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 19:06:18 +0000 Subject: [PATCH 105/179] haskell-filepath: updated to version 1.3.0.0 svn path=/nixpkgs/trunk/; revision=31998 --- pkgs/development/libraries/haskell/filepath/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/filepath/default.nix b/pkgs/development/libraries/haskell/filepath/default.nix index 6e3362bf42ce..3511cddeee23 100644 --- a/pkgs/development/libraries/haskell/filepath/default.nix +++ b/pkgs/development/libraries/haskell/filepath/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "filepath"; - version = "1.2.0.1"; - sha256 = "1fq62kxf68y2952qhipllz049cq52yc3wm4i31v2lg5hdcwbw152"; + version = "1.3.0.0"; + sha256 = "1v5affq82b4fypm49d5sradcx4ymgmkac563vfx483pmyl73i5jl"; meta = { homepage = "http://www-users.cs.york.ac.uk/~ndm/filepath/"; description = "Library for manipulating FilePaths in a cross platform way"; From 65ad5c83ef829f4ec8d247aa5b61d4e354535e7a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 19:06:20 +0000 Subject: [PATCH 106/179] haskell-hastache: updated to version 0.3.3 svn path=/nixpkgs/trunk/; revision=31999 --- pkgs/development/libraries/haskell/hastache/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/haskell/hastache/default.nix b/pkgs/development/libraries/haskell/hastache/default.nix index ac9515348db2..906df662fa75 100644 --- a/pkgs/development/libraries/haskell/hastache/default.nix +++ b/pkgs/development/libraries/haskell/hastache/default.nix @@ -1,10 +1,10 @@ -{ cabal, blazeBuilder, mtl, syb, text, utf8String }: +{ cabal, blazeBuilder, ieee754, mtl, syb, text, utf8String }: cabal.mkDerivation (self: { pname = "hastache"; - version = "0.2.4"; - sha256 = "0881sh3vp5v8kk3rnz9dg2bnis6qy4gx5sr0sqj6xl162sbhf3yv"; - buildDepends = [ blazeBuilder mtl syb text utf8String ]; + version = "0.3.3"; + sha256 = "18ayrfwi3jn3q650m5dm9wx9c7djwc2miz3mxlscd9gzlnrfi772"; + buildDepends = [ blazeBuilder ieee754 mtl syb text utf8String ]; meta = { homepage = "http://github.com/lymar/hastache"; description = "Haskell implementation of Mustache templates"; From 77625e49e56b6fa18b347de8f1169b74c9e6274f Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 19:06:23 +0000 Subject: [PATCH 107/179] haskell-hjsmin: updated to version 0.0.15 svn path=/nixpkgs/trunk/; revision=32000 --- pkgs/development/libraries/haskell/hjsmin/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/hjsmin/default.nix b/pkgs/development/libraries/haskell/hjsmin/default.nix index f9b823eeb8b2..588a6006f7ec 100644 --- a/pkgs/development/libraries/haskell/hjsmin/default.nix +++ b/pkgs/development/libraries/haskell/hjsmin/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "hjsmin"; - version = "0.0.14"; - sha256 = "16053hnxnr9vsqvasbibjwjdg0jpsl5fwzgy54ac1xkh4rhp3a5i"; + version = "0.0.15"; + sha256 = "1bik3bvaz4zjhyx8nyghhs61l14zm71hndfhj4k0xvkw3h6hlj9k"; isLibrary = true; isExecutable = true; buildDepends = [ blazeBuilder languageJavascript text ]; From d9546f6165d649a8c97bf7ca06793fda89750227 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 19:06:26 +0000 Subject: [PATCH 108/179] haskell-http-conduit: updated to version 1.2.3 svn path=/nixpkgs/trunk/; revision=32001 --- .../libraries/haskell/http-conduit/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/haskell/http-conduit/default.nix b/pkgs/development/libraries/haskell/http-conduit/default.nix index 0a4dd110fee2..6fd387fc23b9 100644 --- a/pkgs/development/libraries/haskell/http-conduit/default.nix +++ b/pkgs/development/libraries/haskell/http-conduit/default.nix @@ -1,19 +1,19 @@ { cabal, asn1Data, attoparsec, attoparsecConduit, base64Bytestring , blazeBuilder, blazeBuilderConduit, caseInsensitive, certificate , conduit, cprngAes, dataDefault, failure, httpTypes, liftedBase -, monadControl, network, text, time, tls, tlsExtra, transformers -, transformersBase, utf8String, zlibConduit +, monadControl, network, socks, text, time, tls, tlsExtra +, transformers, transformersBase, utf8String, zlibConduit }: cabal.mkDerivation (self: { pname = "http-conduit"; - version = "1.2.0"; - sha256 = "1s3qrvglhymwvr0cp32mi95dijic40lphhsfr4hm63qjphfc8dpi"; + version = "1.2.3"; + sha256 = "0kygmbcvv0j020ml9jgmg3yzda3k066s2h8g3c135cmad6jc8hnd"; buildDepends = [ asn1Data attoparsec attoparsecConduit base64Bytestring blazeBuilder blazeBuilderConduit caseInsensitive certificate conduit cprngAes - dataDefault failure httpTypes liftedBase monadControl network text - time tls tlsExtra transformers transformersBase utf8String + dataDefault failure httpTypes liftedBase monadControl network socks + text time tls tlsExtra transformers transformersBase utf8String zlibConduit ]; meta = { From f7889c850cce1b1d20e4498d6f69e138ff68f114 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 19:06:29 +0000 Subject: [PATCH 109/179] haskell-language-javascript: updated to version 0.4.7 svn path=/nixpkgs/trunk/; revision=32002 --- .../libraries/haskell/language-javascript/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/language-javascript/default.nix b/pkgs/development/libraries/haskell/language-javascript/default.nix index 17f57fbe5467..66dec5356760 100644 --- a/pkgs/development/libraries/haskell/language-javascript/default.nix +++ b/pkgs/development/libraries/haskell/language-javascript/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "language-javascript"; - version = "0.4.6"; - sha256 = "1rqbb44cyvj6iyipi4bzrdd59lk9q1vxh0zvilvc54kqg97y07v6"; + version = "0.4.7"; + sha256 = "029ncc7hdw3pi9fbnxd0knz7wy3jpj5wcfqsxzyk5dkwji6d95x1"; isLibrary = true; isExecutable = true; buildDepends = [ mtl utf8Light ]; From 4d25e699a1f3047852d19691fec38161f920a155 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 19:06:32 +0000 Subject: [PATCH 110/179] haskell-socks: updated to version 0.4.1 svn path=/nixpkgs/trunk/; revision=32003 --- pkgs/development/libraries/haskell/socks/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/socks/default.nix b/pkgs/development/libraries/haskell/socks/default.nix index d6e9f648f773..ab52a72f6ced 100644 --- a/pkgs/development/libraries/haskell/socks/default.nix +++ b/pkgs/development/libraries/haskell/socks/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "socks"; - version = "0.4.0"; - sha256 = "0181qyxn7n47i7dqzw9yymbf73yr5v91iqjq01iyy43b4vab2ha8"; + version = "0.4.1"; + sha256 = "0kapic4rf1cwbqy5f229b69kr1mg9blpr5p5jna8sx5ds2b8jdjn"; buildDepends = [ cereal network ]; meta = { homepage = "http://github.com/vincenthz/hs-socks"; From 8cba75ac346ec71a0399697e222ba52a36e767b9 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 19:06:35 +0000 Subject: [PATCH 111/179] haskell-ieee754: added version 0.7.3 svn path=/nixpkgs/trunk/; revision=32004 --- .../libraries/haskell/ieee754/default.nix | 13 +++++++++++++ pkgs/top-level/haskell-packages.nix | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 pkgs/development/libraries/haskell/ieee754/default.nix diff --git a/pkgs/development/libraries/haskell/ieee754/default.nix b/pkgs/development/libraries/haskell/ieee754/default.nix new file mode 100644 index 000000000000..ba814ec34f24 --- /dev/null +++ b/pkgs/development/libraries/haskell/ieee754/default.nix @@ -0,0 +1,13 @@ +{ cabal }: + +cabal.mkDerivation (self: { + pname = "ieee754"; + version = "0.7.3"; + sha256 = "0gq747h15inxbxbgmzmchb9a8p57rhv3bmj69idx5arh0d3whgv0"; + meta = { + homepage = "http://github.com/patperry/hs-ieee754"; + description = "Utilities for dealing with IEEE floating point numbers"; + 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 807b40ead0f7..179405728246 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -900,6 +900,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); hxtUnicode = callPackage ../development/libraries/haskell/hxt-unicode {}; + ieee754 = callPackage ../development/libraries/haskell/ieee754 {}; + instantGenerics = callPackage ../development/libraries/haskell/instant-generics {}; ioStorage = callPackage ../development/libraries/haskell/io-storage {}; From 49ca209cd2ff462ca27aa13c297ffb4ea3ad5d37 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 19:06:38 +0000 Subject: [PATCH 112/179] haskell-deepseq: added version 1.3.0.0 svn path=/nixpkgs/trunk/; revision=32005 --- .../libraries/haskell/deepseq/1.3.0.0.nix | 16 ++++++++++++++++ pkgs/top-level/haskell-packages.nix | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 pkgs/development/libraries/haskell/deepseq/1.3.0.0.nix diff --git a/pkgs/development/libraries/haskell/deepseq/1.3.0.0.nix b/pkgs/development/libraries/haskell/deepseq/1.3.0.0.nix new file mode 100644 index 000000000000..e2c9c926aa78 --- /dev/null +++ b/pkgs/development/libraries/haskell/deepseq/1.3.0.0.nix @@ -0,0 +1,16 @@ +{ cabal }: + +cabal.mkDerivation (self: { + pname = "deepseq"; + version = "1.3.0.0"; + sha256 = "0z2k1rda67nmhv62irjfd642iarj1i9m55l6p47j4cysrszhvqgy"; + meta = { + description = "Deep evaluation of data structures"; + 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 179405728246..f896515c721b 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -172,7 +172,6 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); haskellPlatformDefaults_HEAD = self : self.haskellPlatformDefaults_future self // { - deepseq = null; # apparently a core library in ghc-7.3 }; haskellPlatformArgs_2011_4_0_0 = self : { @@ -602,7 +601,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); deepseq_1_1_0_0 = callPackage ../development/libraries/haskell/deepseq/1.1.0.0.nix {}; deepseq_1_1_0_2 = callPackage ../development/libraries/haskell/deepseq/1.1.0.2.nix {}; deepseq_1_2_0_1 = callPackage ../development/libraries/haskell/deepseq/1.2.0.1.nix {}; - deepseq = self.deepseq_1_1_0_0; + deepseq_1_3_0_0 = callPackage ../development/libraries/haskell/deepseq/1.3.0.0.nix {}; + deepseq = null; # a core package in recent GHCs deepseqTh = callPackage ../development/libraries/haskell/deepseq-th {}; From 351627cb88e41ec064f9dc34445cdc16495899d1 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 19:06:41 +0000 Subject: [PATCH 113/179] haskell-extensible-exceptions: added version 0.1.1.4 svn path=/nixpkgs/trunk/; revision=32006 --- .../haskell/extensible-exceptions/0.1.1.4.nix | 16 ++++++++++++++++ pkgs/top-level/haskell-packages.nix | 1 + 2 files changed, 17 insertions(+) create mode 100644 pkgs/development/libraries/haskell/extensible-exceptions/0.1.1.4.nix diff --git a/pkgs/development/libraries/haskell/extensible-exceptions/0.1.1.4.nix b/pkgs/development/libraries/haskell/extensible-exceptions/0.1.1.4.nix new file mode 100644 index 000000000000..f217db39bc61 --- /dev/null +++ b/pkgs/development/libraries/haskell/extensible-exceptions/0.1.1.4.nix @@ -0,0 +1,16 @@ +{ cabal }: + +cabal.mkDerivation (self: { + pname = "extensible-exceptions"; + version = "0.1.1.4"; + sha256 = "1273nqws9ij1rp1bsq5jc7k2jxpqa0svawdbim05lf302y0firbc"; + meta = { + description = "Extensible exceptions"; + 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 f896515c721b..f227599018a5 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -653,6 +653,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); extensibleExceptions_0_1_1_0 = callPackage ../development/libraries/haskell/extensible-exceptions/0.1.1.0.nix {}; extensibleExceptions_0_1_1_2 = callPackage ../development/libraries/haskell/extensible-exceptions/0.1.1.2.nix {}; extensibleExceptions_0_1_1_3 = callPackage ../development/libraries/haskell/extensible-exceptions/0.1.1.3.nix {}; + extensibleExceptions_0_1_1_4 = callPackage ../development/libraries/haskell/extensible-exceptions/0.1.1.4.nix {}; extensibleExceptions = null; # a core package in recent GHCs failure = callPackage ../development/libraries/haskell/failure {}; From dd28867e4ff004cfe9ad12ed75eadddf8d1ef889 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 19:06:44 +0000 Subject: [PATCH 114/179] haskell-network: added version 2.3.0.10 svn path=/nixpkgs/trunk/; revision=32007 --- .../libraries/haskell/network/2.3.0.10.nix | 18 ++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/libraries/haskell/network/2.3.0.10.nix diff --git a/pkgs/development/libraries/haskell/network/2.3.0.10.nix b/pkgs/development/libraries/haskell/network/2.3.0.10.nix new file mode 100644 index 000000000000..d3e72fa72ed1 --- /dev/null +++ b/pkgs/development/libraries/haskell/network/2.3.0.10.nix @@ -0,0 +1,18 @@ +{ cabal, parsec }: + +cabal.mkDerivation (self: { + pname = "network"; + version = "2.3.0.10"; + sha256 = "1f1z7wggxl2rzix1r4bhvcdl0fmx2mzkn70iy3w5yl54vmym21bm"; + buildDepends = [ parsec ]; + meta = { + homepage = "http://github.com/haskell/network"; + description = "Low-level networking interface"; + 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 f227599018a5..1aa4cedd3f5d 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1024,7 +1024,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); network_2_3_0_2 = callPackage ../development/libraries/haskell/network/2.3.0.2.nix {}; network_2_3_0_5 = callPackage ../development/libraries/haskell/network/2.3.0.5.nix {}; network_2_3_0_8 = callPackage ../development/libraries/haskell/network/2.3.0.8.nix {}; - network = self.network_2_3_0_8; + network_2_3_0_10 = callPackage ../development/libraries/haskell/network/2.3.0.10.nix {}; + network = self.network_2_3_0_10; nixosTypes = callPackage ../development/libraries/haskell/nixos-types {}; From 83c6e41b15b8d6564987cc2bc97e170a225ec2ce Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 19:06:47 +0000 Subject: [PATCH 115/179] haskell-xhtml: added version 3000.2.0.5 svn path=/nixpkgs/trunk/; revision=32008 --- .../libraries/haskell/xhtml/3000.2.0.5.nix | 17 +++++++++++++++++ pkgs/top-level/haskell-packages.nix | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/libraries/haskell/xhtml/3000.2.0.5.nix diff --git a/pkgs/development/libraries/haskell/xhtml/3000.2.0.5.nix b/pkgs/development/libraries/haskell/xhtml/3000.2.0.5.nix new file mode 100644 index 000000000000..c5a374eb2d0c --- /dev/null +++ b/pkgs/development/libraries/haskell/xhtml/3000.2.0.5.nix @@ -0,0 +1,17 @@ +{ cabal }: + +cabal.mkDerivation (self: { + pname = "xhtml"; + version = "3000.2.0.5"; + sha256 = "1gqq910pncqppb2dscxnfxvm1ly4qpb5mwmady2i4irar3gngh9v"; + meta = { + homepage = "https://github.com/haskell/xhtml"; + description = "An XHTML combinator library"; + 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 1aa4cedd3f5d..20f8bc03baac 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1458,7 +1458,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); xhtml_3000_2_0_1 = callPackage ../development/libraries/haskell/xhtml/3000.2.0.1.nix {}; xhtml_3000_2_0_4 = callPackage ../development/libraries/haskell/xhtml/3000.2.0.4.nix {}; - xhtml = self.xhtml_3000_2_0_1; + xhtml_3000_2_0_5 = callPackage ../development/libraries/haskell/xhtml/3000.2.0.5.nix {}; + xhtml = self.xhtml_3000_2_0_5; xml = callPackage ../development/libraries/haskell/xml {}; From 0861eb5a3d6a6facef64be31927bf2014eb9ce32 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 19:06:50 +0000 Subject: [PATCH 116/179] haskell-packages.nix: updated 'haskellPlatformArgs_future' configuration to reflect the current state of affairs for GHC 7.4.1 * DeepSeq has been removed because it's now a core package. * XHTML and network have been updated to the latest version. * The comments that state whether a package builds or not have been updated. svn path=/nixpkgs/trunk/; revision=32009 --- pkgs/top-level/haskell-packages.nix | 55 ++++++++++++++--------------- 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 20f8bc03baac..b52f6d392718 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -135,34 +135,33 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); haskellPlatformArgs_future = self : { inherit (self) cabal ghc; - cgi = self.cgi_3001_1_7_4; # 7.2 ok, 7.3 ok - fgl = self.fgl_5_4_2_4; # 7.2 ok, 7.3 ok - GLUT = self.GLUT_2_1_2_1; # 7.2 ok, 7.3 ok - haskellSrc = self.haskellSrc_1_0_1_5; # 7.2 fails, 7.3 fails - html = self.html_1_0_1_2; # 7.2 ok, 7.3 ok - HUnit = self.HUnit_1_2_2_3; # 7.2 ok, 7.3 ok - network = self.network_2_3_0_8; # 7.2 ok, 7.3 ok - OpenGL = self.OpenGL_2_2_3_0; # 7.2 ok, 7.3 ok - parallel = self.parallel_3_2_0_2; # 7.2 ok, 7.3 ok - parsec = self.parsec_3_1_2; # 7.2 ok, 7.3 ok - QuickCheck = self.QuickCheck_2_4_2; # 7.2 ok, 7.3 ok - regexBase = self.regexBase_0_93_2; # 7.2 ok, 7.3 ok - regexCompat = self.regexCompat_0_93_1; # 7.2 ok, 7.3 ok - regexPosix = self.regexPosix_0_94_4; # 7.2 ok, 7.3 ok - stm = self.stm_2_2_0_1; # 7.2 ok, 7.3 ok - syb = self.syb_0_3_6; # 7.2 ok, 7.3 ok - xhtml = self.xhtml_3000_2_0_1; # 7.2 ok, 7.3 ok - zlib = self.zlib_0_5_3_1; # 7.2 ok, 7.3 ok - HTTP = self.HTTP_4000_2_2; # 7.2 ok, 7.3 ok - deepseq = self.deepseq_1_1_0_2; # 7.2 ok, 7.3 ok - text = self.text_0_11_1_13; # 7.2 ok, 7.3 ok - transformers = self.transformers_0_2_2_0; # 7.2 ok, 7.3 ok - mtl = self.mtl_2_0_1_0; # 7.2 ok, 7.3 ok - random = self.random_1_0_1_1; # 7.2 ok, 7.3 ok - cabalInstall = self.cabalInstall_0_10_2; # 7.2 fails, 7.3 fails - alex = self.alex_3_0_1; # 7.2 ok, 7.3 ok - happy = self.happy_1_18_8; # 7.2 ok, 7.3 ok - haddock = self.haddock_2_9_2; # 7.2 fails, 7.3 fails + cgi = self.cgi_3001_1_7_4; # 7.4.1 ok + fgl = self.fgl_5_4_2_4; # 7.4.1 ok + GLUT = self.GLUT_2_1_2_1; # 7.4.1 fails + haskellSrc = self.haskellSrc_1_0_1_5; # 7.4.1 fails + html = self.html_1_0_1_2; # 7.4.1 ok + HUnit = self.HUnit_1_2_2_3; # 7.4.1 ok + network = self.network_2_3_0_10; # 7.4.1 ok + OpenGL = self.OpenGL_2_2_3_0; # 7.4.1 fails + parallel = self.parallel_3_2_0_2; # 7.4.1 ok + parsec = self.parsec_3_1_2; # 7.4.1 ok + QuickCheck = self.QuickCheck_2_4_2; # 7.4.1 ok + regexBase = self.regexBase_0_93_2; # 7.4.1 ok + regexCompat = self.regexCompat_0_93_1; # 7.4.1 ok + regexPosix = self.regexPosix_0_94_4; # 7.4.1 ok + stm = self.stm_2_2_0_1; # 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_1; # 7.4.1 ok + HTTP = self.HTTP_4000_2_2; # 7.4.1 ok + text = self.text_0_11_1_13; # 7.4.1 ok + transformers = self.transformers_0_2_2_0; # 7.4.1 ok + mtl = self.mtl_2_0_1_0; # 7.4.1 ok + random = self.random_1_0_1_1; # 7.4.1 ok + cabalInstall = self.cabalInstall_0_10_2; # 7.4.1 fails + alex = self.alex_3_0_1; # 7.4.1 ok + happy = self.happy_1_18_8; # 7.4.1 fails + haddock = self.haddock_2_9_2; # 7.4.1 fails }; haskellPlatformDefaults_future = From 875b61eeb9e9828ecbd16f2615df82ee65b56c47 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 19:10:14 +0000 Subject: [PATCH 117/179] haskell-cabal-file-th: patch cabal file to fix build with GHC 7.4.1 svn path=/nixpkgs/trunk/; revision=32010 --- pkgs/development/libraries/haskell/cabal-file-th/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/haskell/cabal-file-th/default.nix b/pkgs/development/libraries/haskell/cabal-file-th/default.nix index e03c10dea311..37350562eacc 100644 --- a/pkgs/development/libraries/haskell/cabal-file-th/default.nix +++ b/pkgs/development/libraries/haskell/cabal-file-th/default.nix @@ -4,6 +4,7 @@ cabal.mkDerivation (self: { pname = "cabal-file-th"; version = "0.2.1"; sha256 = "0nczwicgf6kx3lk5m7wqf1wj6ghn8jfx112dzh7jh4f4xs66nsd1"; + patchPhase = "sed -i cabal-file-th.cabal -e 's|Cabal >= 1.10 && < 1.13|Cabal|'"; meta = { homepage = "http://github.com/nkpart/cabal-file-th"; description = "Template Haskell expressions for reading fields from a project's cabal file"; From 37346e00a3c6d2cab81b69da1ca694e91d691508 Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Fri, 3 Feb 2012 20:50:33 +0000 Subject: [PATCH 118/179] Enable IPv6 by default svn path=/nixpkgs/trunk/; revision=32011 --- pkgs/servers/sql/mysql55/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/sql/mysql55/default.nix b/pkgs/servers/sql/mysql55/default.nix index f1bc60673cbb..df390e4abf2e 100644 --- a/pkgs/servers/sql/mysql55/default.nix +++ b/pkgs/servers/sql/mysql55/default.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation { buildInputs = [ cmake bison ncurses openssl readline zlib ] ++ stdenv.lib.optionals stdenv.isDarwin [ darwinInstallNameToolUtility perl ]; - cmakeFlags = "-DWITH_SSL=yes -DWITH_READLINE=yes -DWITH_EMBEDDED_SERVER=yes -DWITH_ZLIB=yes -DINSTALL_SCRIPTDIR=bin"; + cmakeFlags = "-DWITH_SSL=yes -DWITH_READLINE=yes -DWITH_EMBEDDED_SERVER=yes -DWITH_ZLIB=yes -DINSTALL_SCRIPTDIR=bin -DHAVE_IPV6=yes"; NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s"; From 133e2db3de1f1e0dc4cf0c80a7a04d8e821faa32 Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Fri, 3 Feb 2012 20:51:06 +0000 Subject: [PATCH 119/179] Upgraded broadcom-sta driver to version 5_100_82_112 svn path=/nixpkgs/trunk/; revision=32012 --- pkgs/os-specific/linux/broadcom-sta/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/os-specific/linux/broadcom-sta/default.nix b/pkgs/os-specific/linux/broadcom-sta/default.nix index 9749b1568e46..67ae073c6c70 100644 --- a/pkgs/os-specific/linux/broadcom-sta/default.nix +++ b/pkgs/os-specific/linux/broadcom-sta/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, kernel }: -let version = "5_100_82_38"; +let version = "5_100_82_112"; bits = if stdenv.system == "i686-linux" then "32" else assert stdenv.system == "x86_64-linux"; "64"; in @@ -10,15 +10,15 @@ stdenv.mkDerivation { src = fetchurl { url = "http://www.broadcom.com/docs/linux_sta/hybrid-portsrc_x86_${bits}-v${version}.tar.gz"; sha256 = if bits == "32" - then "0dzvnk0vmi5dlbsi9k2agvs5xsqn07mv66g9v1jzn1gsl8fsydpp" - else "19rm9m949yqahgii7wr14lj451sd84s72mqj15yd0dnpm4k5n5hw"; + then "1rvhw9ngw0djxyyjx5m01c0js89zs3xiwmra03al6f9q7cbf7d45" + else "1qsarnry10f5m8a73wbr9cg2ifs00sqg6x0ay59l72vl9hb2zlww"; }; buildInputs = [ kernel ]; - patches = [ ./makefile.patch ] - ++ stdenv.lib.optional - (! builtins.lessThan (builtins.compareVersions kernel.version "2.6.37") 0) - [ ./mutex-sema.patch ]; + patches = [ ./makefile.patch ]; + #++ stdenv.lib.optional + #(! builtins.lessThan (builtins.compareVersions kernel.version "2.6.37") 0) + #[ ./mutex-sema.patch ]; makeFlags = "KDIR=${kernel}/lib/modules/${kernel.modDirVersion}/build"; From 69d6b66571c0c79975b35d16ce4698c0845f7329 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 21:00:09 +0000 Subject: [PATCH 120/179] haskell-packages.nix: the latest regexPosix must use a matching regexBase in order to compile with older versions of GHC, i.e. 6.10.4 svn path=/nixpkgs/trunk/; revision=32013 --- pkgs/top-level/haskell-packages.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index b52f6d392718..e0a32a8f4ad2 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1168,11 +1168,13 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); regexCompat = self.regexCompat_0_71_0_1; regexPosix_0_72_0_3 = callPackage ../development/libraries/haskell/regex-posix/0.72.0.3.nix {}; - regexPosix_0_94_1 = callPackage ../development/libraries/haskell/regex-posix/0.94.1.nix {}; - regexPosix_0_94_2 = callPackage ../development/libraries/haskell/regex-posix/0.94.2.nix {}; - regexPosix_0_94_4 = callPackage ../development/libraries/haskell/regex-posix/0.94.4.nix {}; - regexPosix_0_95_1 = callPackage ../development/libraries/haskell/regex-posix/0.95.1.nix {}; - regexPosix = self.regexPosix_0_72_0_3; + regexPosix_0_94_1 = callPackage ../development/libraries/haskell/regex-posix/0.94.1.nix {}; + regexPosix_0_94_2 = callPackage ../development/libraries/haskell/regex-posix/0.94.2.nix {}; + regexPosix_0_94_4 = callPackage ../development/libraries/haskell/regex-posix/0.94.4.nix {}; + regexPosix_0_95_1 = callPackage ../development/libraries/haskell/regex-posix/0.95.1.nix { + regexBase = self.regexBase_0_93_2; + }; + regexPosix = self.regexPosix_0_95_1; regexTDFA = callPackage ../development/libraries/haskell/regex-tdfa {}; regexTdfa = self.regexTDFA; From 74e822d76a1b5fa8c106583eb728b944cabe9196 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 21:00:13 +0000 Subject: [PATCH 121/179] haskell-packages.nix: GHC 7.4.1 should use the latest version of regexPosix svn path=/nixpkgs/trunk/; revision=32014 --- pkgs/top-level/haskell-packages.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index e0a32a8f4ad2..786ea8262ff5 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); QuickCheck = self.QuickCheck_2_4_2; # 7.4.1 ok regexBase = self.regexBase_0_93_2; # 7.4.1 ok regexCompat = self.regexCompat_0_93_1; # 7.4.1 ok - regexPosix = self.regexPosix_0_94_4; # 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 syb = self.syb_0_3_6; # 7.4.1 ok xhtml = self.xhtml_3000_2_0_5; # 7.4.1 ok @@ -1156,7 +1156,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); regexBase_0_72_0_2 = callPackage ../development/libraries/haskell/regex-base/0.72.0.2.nix {}; regexBase_0_93_1 = callPackage ../development/libraries/haskell/regex-base/0.93.1.nix {}; regexBase_0_93_2 = callPackage ../development/libraries/haskell/regex-base/0.93.2.nix {}; - regexBase = self.regexBase_0_72_0_2; + regexBase = self.regexBase_0_93_2; regexCompat_0_71_0_1 = callPackage ../development/libraries/haskell/regex-compat/0.71.0.1.nix {}; regexCompat_0_92 = callPackage ../development/libraries/haskell/regex-compat/0.92.nix {}; From 412e5dd87d8c925d3967151cd1d575ed46672c2f Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 21:00:16 +0000 Subject: [PATCH 122/179] haskell-hledger-interest: updated to version 1.4 svn path=/nixpkgs/trunk/; revision=32015 --- pkgs/applications/office/hledger-interest/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/office/hledger-interest/default.nix b/pkgs/applications/office/hledger-interest/default.nix index 5f61138f6ec2..a400730878ea 100644 --- a/pkgs/applications/office/hledger-interest/default.nix +++ b/pkgs/applications/office/hledger-interest/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "hledger-interest"; - version = "1.3"; - sha256 = "1sgnl3vv38cmgxv3xag3c78j1955xxwdmr5xr3f8rc78np6d0wnz"; + version = "1.4"; + sha256 = "0lm4jcxcig3yxzhbnka1q54fvshn5b9d91a5a2mbmkzbwhzjj0lg"; isLibrary = false; isExecutable = true; buildDepends = [ hledgerLib mtl time ]; From 2a10a4d967d1fd9d3e9c463661a19f6546f968c1 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 21:00:18 +0000 Subject: [PATCH 123/179] haskell-bytestring-lexing: updated to version 0.4.0 svn path=/nixpkgs/trunk/; revision=32016 --- .../libraries/haskell/bytestring-lexing/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/haskell/bytestring-lexing/default.nix b/pkgs/development/libraries/haskell/bytestring-lexing/default.nix index d67c9907f99a..05b316f24129 100644 --- a/pkgs/development/libraries/haskell/bytestring-lexing/default.nix +++ b/pkgs/development/libraries/haskell/bytestring-lexing/default.nix @@ -2,12 +2,12 @@ cabal.mkDerivation (self: { pname = "bytestring-lexing"; - version = "0.3.0"; - sha256 = "1jrhmljy7m84imcmvsarv74i3hcm60ja9pl1ww3lm0zgi0rrddqd"; + version = "0.4.0"; + sha256 = "1lww38rab9k8drndqkg306kiq6663i89sq6l1bvjv6cs13acc8wr"; buildTools = [ alex ]; meta = { homepage = "http://code.haskell.org/~wren/"; - description = "Parse literals efficiently from strict or lazy bytestrings"; + description = "Parse and produce literals efficiently from strict or lazy bytestrings"; license = self.stdenv.lib.licenses.bsd3; platforms = self.ghc.meta.platforms; maintainers = [ From c77c727641812efda1d85884670f5786423ca621 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 21:00:21 +0000 Subject: [PATCH 124/179] haskell-hackage-db: updated to version 1.2 svn path=/nixpkgs/trunk/; revision=32017 --- pkgs/development/libraries/haskell/hackage-db/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/hackage-db/default.nix b/pkgs/development/libraries/haskell/hackage-db/default.nix index 4cfc1527f921..2afb2108f06a 100644 --- a/pkgs/development/libraries/haskell/hackage-db/default.nix +++ b/pkgs/development/libraries/haskell/hackage-db/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "hackage-db"; - version = "1.0"; - sha256 = "0y769ssr9jlyzcdr0l8wh5s3ivc3zbp9mf7xy7vnq6mr9hjh7lcw"; + version = "1.2"; + sha256 = "1dsm8mp8f6z7jqqgx39xfvl5kql6bbwxk25k435rsb685q9hzpxq"; buildDepends = [ tar ]; meta = { homepage = "http://github.com/peti/hackage-db"; From 88f110cb756f56f51bec15f084ea885fc395c57a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 21:00:24 +0000 Subject: [PATCH 125/179] haskell-ieee754: updated to version 0.7.3 svn path=/nixpkgs/trunk/; revision=32018 --- pkgs/development/libraries/haskell/ieee754/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/haskell/ieee754/default.nix b/pkgs/development/libraries/haskell/ieee754/default.nix index ba814ec34f24..3a731c626231 100644 --- a/pkgs/development/libraries/haskell/ieee754/default.nix +++ b/pkgs/development/libraries/haskell/ieee754/default.nix @@ -9,5 +9,9 @@ cabal.mkDerivation (self: { description = "Utilities for dealing with IEEE floating point numbers"; license = self.stdenv.lib.licenses.bsd3; platforms = self.ghc.meta.platforms; + maintainers = [ + self.stdenv.lib.maintainers.andres + self.stdenv.lib.maintainers.simons + ]; }; }) From 56230f309e2df40a790bd6801412690fe011bd53 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 21:00:27 +0000 Subject: [PATCH 126/179] haskell-nixos-types: updated to version 1.3 svn path=/nixpkgs/trunk/; revision=32019 --- pkgs/development/libraries/haskell/nixos-types/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/nixos-types/default.nix b/pkgs/development/libraries/haskell/nixos-types/default.nix index 9a1103a2bb80..88506a5377d4 100644 --- a/pkgs/development/libraries/haskell/nixos-types/default.nix +++ b/pkgs/development/libraries/haskell/nixos-types/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "nixos-types"; - version = "1.2"; - sha256 = "140qk6wqq87qfk471cnhrg135fnqv0vfmfxh8kj14ar2kxvzrr8w"; + version = "1.3"; + sha256 = "0kdi3q316c9irrzwl1vx764f958i5d61v2vc03356sfyy13d19sk"; buildDepends = [ regexPosix ]; meta = { homepage = "http://github.com/haskell4nix/nixos-types"; From 038a3e5b2e411a24ce55230288fe2e47c45a841c Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 21:00:30 +0000 Subject: [PATCH 127/179] haskell-vty: updated to version 4.7.0.10 svn path=/nixpkgs/trunk/; revision=32020 --- pkgs/development/libraries/haskell/vty/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/vty/default.nix b/pkgs/development/libraries/haskell/vty/default.nix index 368c29017cea..209eb667c775 100644 --- a/pkgs/development/libraries/haskell/vty/default.nix +++ b/pkgs/development/libraries/haskell/vty/default.nix @@ -4,8 +4,8 @@ cabal.mkDerivation (self: { pname = "vty"; - version = "4.7.0.8"; - sha256 = "1wh94m2i0ivdkf8hhl9qrsfs7z3mk0xrzgwdfgqw7lhq321i2bnm"; + version = "4.7.0.10"; + sha256 = "03cvr4z0fvxfyrikgf89777cp1xqhy22yj83p0dysp0i5ds6cd9v"; buildDepends = [ deepseq mtl parallel parsec terminfo utf8String vector ]; From 868d8c2d9c0f2f816454b61e77383bc30ba0d3a7 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 21:00:32 +0000 Subject: [PATCH 128/179] haskell-cabal2nix: updated to version 1.25 svn path=/nixpkgs/trunk/; revision=32021 --- pkgs/development/tools/haskell/cabal2nix/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/haskell/cabal2nix/default.nix b/pkgs/development/tools/haskell/cabal2nix/default.nix index ce342d42d576..bf7a52f3c034 100644 --- a/pkgs/development/tools/haskell/cabal2nix/default.nix +++ b/pkgs/development/tools/haskell/cabal2nix/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "cabal2nix"; - version = "1.24"; - sha256 = "1k0dqj64z08n1kgdjgdk3ra3l8xw1bg7yh0s8s4pv5g2ajwj2f83"; + version = "1.25"; + sha256 = "12csiw7j51vlf8l0prhjj06l7sqii12qy5ryl5n8vrgp8vch2kvl"; isLibrary = false; isExecutable = true; buildDepends = [ hackageDb HTTP mtl nixosTypes regexPosix ]; From 4a5673f52048c2aa0fb342d22a3c8beb95b9976b Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Fri, 3 Feb 2012 21:02:00 +0000 Subject: [PATCH 129/179] graphicsmagick: add meta.platforms svn path=/nixpkgs/trunk/; revision=32022 --- pkgs/applications/graphics/graphicsmagick/1.3.7.nix | 1 + pkgs/applications/graphics/graphicsmagick/default.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/pkgs/applications/graphics/graphicsmagick/1.3.7.nix b/pkgs/applications/graphics/graphicsmagick/1.3.7.nix index 0d33cc757b90..291d61d5f6f5 100644 --- a/pkgs/applications/graphics/graphicsmagick/1.3.7.nix +++ b/pkgs/applications/graphics/graphicsmagick/1.3.7.nix @@ -27,5 +27,6 @@ stdenv.mkDerivation { homepage = http://www.graphicsmagick.org; description = "Swiss army knife of image processing"; license = stdenv.lib.licenses.mit; + platforms = stdenv.lib.platforms.all; }; } diff --git a/pkgs/applications/graphics/graphicsmagick/default.nix b/pkgs/applications/graphics/graphicsmagick/default.nix index 980413bc8f81..0636903d329f 100644 --- a/pkgs/applications/graphics/graphicsmagick/default.nix +++ b/pkgs/applications/graphics/graphicsmagick/default.nix @@ -27,5 +27,6 @@ stdenv.mkDerivation { homepage = http://www.graphicsmagick.org; description = "Swiss army knife of image processing"; license = stdenv.lib.licenses.mit; + platforms = stdenv.lib.platforms.all; }; } From 2286dd1f51e95476ead555a7ce0c9afaf121417d Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Feb 2012 21:06:28 +0000 Subject: [PATCH 130/179] haskell-packages.nix: updated configurations for older GHC versions to prefer a more modern DeepSeq svn path=/nixpkgs/trunk/; revision=32023 --- pkgs/top-level/haskell-packages.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 786ea8262ff5..044a3c93d839 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -370,6 +370,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); haskellPlatform = self.haskellPlatform_2010_1_0_0; extensibleExceptions = self.extensibleExceptions_0_1_1_0; repaExamples = null; # don't pick this version of 'repa-examples' during nix-env -u + deepseq = self.deepseq_1_1_0_2; + # deviating from Haskell platform here, to make some packages (notably statistics) compile }; haskellPlatform_2010_1_0_0 = @@ -409,13 +411,14 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); extensibleExceptions = self.extensibleExceptions_0_1_1_0; text = self.text_0_11_0_6; repaExamples = null; # don't pick this version of 'repa-examples' during nix-env -u + deepseq = self.deepseq_1_1_0_2; + # deviating from Haskell platform here, to make some packages (notably statistics) compile }; haskellPlatform_2009_2_0_2 = callPackage ../development/libraries/haskell/haskell-platform/2009.2.0.2.nix (self.haskellPlatformArgs_2009_2_0_2 self); - # Haskell libraries. Agda = callPackage ../development/libraries/haskell/Agda {}; From 49009f72ce3edde14d9f02353960f63fc9318210 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 4 Feb 2012 08:38:04 +0000 Subject: [PATCH 131/179] haskell-hakyll: updated to version 3.2.5.1 svn path=/nixpkgs/trunk/; revision=32025 --- pkgs/development/libraries/haskell/hakyll/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/hakyll/default.nix b/pkgs/development/libraries/haskell/hakyll/default.nix index 654d50cdc95a..97b2012eefd8 100644 --- a/pkgs/development/libraries/haskell/hakyll/default.nix +++ b/pkgs/development/libraries/haskell/hakyll/default.nix @@ -5,8 +5,8 @@ cabal.mkDerivation (self: { pname = "hakyll"; - version = "3.2.5.0"; - sha256 = "1y1dqfbas7ym1jghq3i7zhqcny01paqfrszj0aakg6ys2jjx0m29"; + version = "3.2.5.1"; + sha256 = "1vb3jqasf6j10fk8afwrbd85dc4k9dx6zls5c6wn0wnh87r5987x"; buildDepends = [ binary blazeHtml citeprocHs cryptohash hamlet mtl pandoc parsec regexBase regexPcre snapCore snapServer tagsoup time From ce1ce28f96dfe912b7a82ff521fbcb0e584feeca Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 4 Feb 2012 08:38:09 +0000 Subject: [PATCH 132/179] haskell-yap: updated to version 0.2 svn path=/nixpkgs/trunk/; revision=32026 --- pkgs/development/libraries/haskell/yap/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/yap/default.nix b/pkgs/development/libraries/haskell/yap/default.nix index 27938a2fad09..62dc82b10685 100644 --- a/pkgs/development/libraries/haskell/yap/default.nix +++ b/pkgs/development/libraries/haskell/yap/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "yap"; - version = "0.1"; - sha256 = "14x1z5pmb499qq5sy0iksxv0mli8556s1jh9jm7rdg671h1cy1hl"; + version = "0.2"; + sha256 = "14lq549jhgnf51pgy1jv31ik8qx71yl7d53w8dpq1f9mlsn1g16i"; meta = { description = "yet another prelude - a simplistic refactoring with algebraic classes"; license = self.stdenv.lib.licenses.bsd3; From dbafd99a0aaa3b65067cf48d840353f230327368 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 4 Feb 2012 09:30:53 +0000 Subject: [PATCH 133/179] Moved python debugger into development/tools hierarchy. svn path=/nixpkgs/trunk/; revision=32027 --- pkgs/{ => development}/tools/pydb/default.nix | 0 pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename pkgs/{ => development}/tools/pydb/default.nix (100%) diff --git a/pkgs/tools/pydb/default.nix b/pkgs/development/tools/pydb/default.nix similarity index 100% rename from pkgs/tools/pydb/default.nix rename to pkgs/development/tools/pydb/default.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b0e617326aed..3ec62d3e9042 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1251,7 +1251,7 @@ let pwgen = callPackage ../tools/security/pwgen { }; - pydb = callPackage ../tools/pydb { }; + pydb = callPackage ../development/tools/pydb { }; pystringtemplate = callPackage ../development/python-modules/stringtemplate { }; From b69d6bf7e099a6d8e5bec8dd2a1d337d3fcd4a3b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 4 Feb 2012 09:31:07 +0000 Subject: [PATCH 134/179] Moved all LaTeX expressions into tools/typesetting hierarchy. svn path=/nixpkgs/trunk/; revision=32028 --- .../typesetting}/tex/auctex/default.nix | 0 .../typesetting}/tex/dblatex/default.nix | 0 .../typesetting}/tex/disser/default.nix | 0 .../typesetting}/tex/latex2html/default.nix | 0 .../typesetting}/tex/lazylist/builder.sh | 0 .../typesetting}/tex/lazylist/default.nix | 0 .../typesetting}/tex/lkproof/default.nix | 0 .../typesetting}/tex/nix/animatedot.sh | 0 .../typesetting}/tex/nix/copy-includes.pl | 0 .../typesetting}/tex/nix/default.nix | 0 .../typesetting}/tex/nix/dot2pdf.sh | 0 .../typesetting}/tex/nix/dot2ps.sh | 0 .../typesetting}/tex/nix/find-includes.pl | 0 .../tex/nix/find-lhs2tex-includes.sh | 0 .../typesetting}/tex/nix/lhs2tex.sh | 0 .../typesetting}/tex/nix/run-latex.sh | 0 .../typesetting}/tex/pgf/1.x.nix | 0 .../typesetting}/tex/pgf/2.x.nix | 0 .../typesetting}/tex/polytable/builder.sh | 0 .../typesetting}/tex/polytable/default.nix | 0 .../typesetting}/tex/tetex/default.nix | 0 .../typesetting}/tex/tetex/environment.patch | 0 .../typesetting}/tex/tetex/getline.patch | 0 .../typesetting}/tex/tetex/setup-hook.sh | 0 .../typesetting}/tex/tex4ht/default.nix | 0 .../typesetting}/tex/texlive/aggregate.nix | 0 .../typesetting}/tex/texlive/beamer.nix | 0 .../typesetting}/tex/texlive/cm-super.nix | 0 .../typesetting}/tex/texlive/context.nix | 0 .../typesetting}/tex/texlive/default.nix | 0 .../typesetting}/tex/texlive/extra.nix | 0 .../typesetting}/tex/texlive/moderncv.nix | 0 .../typesetting}/tex/texlive/pgf.nix | 0 .../typesetting}/tex/texlive/setup-hook.sh | 0 .../typesetting}/tex/texlive/xcolor.nix | 0 pkgs/top-level/all-packages.nix | 42 +++++++++---------- 36 files changed, 21 insertions(+), 21 deletions(-) rename pkgs/{misc => tools/typesetting}/tex/auctex/default.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/dblatex/default.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/disser/default.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/latex2html/default.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/lazylist/builder.sh (100%) rename pkgs/{misc => tools/typesetting}/tex/lazylist/default.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/lkproof/default.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/nix/animatedot.sh (100%) rename pkgs/{misc => tools/typesetting}/tex/nix/copy-includes.pl (100%) rename pkgs/{misc => tools/typesetting}/tex/nix/default.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/nix/dot2pdf.sh (100%) rename pkgs/{misc => tools/typesetting}/tex/nix/dot2ps.sh (100%) rename pkgs/{misc => tools/typesetting}/tex/nix/find-includes.pl (100%) rename pkgs/{misc => tools/typesetting}/tex/nix/find-lhs2tex-includes.sh (100%) rename pkgs/{misc => tools/typesetting}/tex/nix/lhs2tex.sh (100%) rename pkgs/{misc => tools/typesetting}/tex/nix/run-latex.sh (100%) rename pkgs/{misc => tools/typesetting}/tex/pgf/1.x.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/pgf/2.x.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/polytable/builder.sh (100%) rename pkgs/{misc => tools/typesetting}/tex/polytable/default.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/tetex/default.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/tetex/environment.patch (100%) rename pkgs/{misc => tools/typesetting}/tex/tetex/getline.patch (100%) rename pkgs/{misc => tools/typesetting}/tex/tetex/setup-hook.sh (100%) rename pkgs/{misc => tools/typesetting}/tex/tex4ht/default.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/texlive/aggregate.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/texlive/beamer.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/texlive/cm-super.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/texlive/context.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/texlive/default.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/texlive/extra.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/texlive/moderncv.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/texlive/pgf.nix (100%) rename pkgs/{misc => tools/typesetting}/tex/texlive/setup-hook.sh (100%) rename pkgs/{misc => tools/typesetting}/tex/texlive/xcolor.nix (100%) diff --git a/pkgs/misc/tex/auctex/default.nix b/pkgs/tools/typesetting/tex/auctex/default.nix similarity index 100% rename from pkgs/misc/tex/auctex/default.nix rename to pkgs/tools/typesetting/tex/auctex/default.nix diff --git a/pkgs/misc/tex/dblatex/default.nix b/pkgs/tools/typesetting/tex/dblatex/default.nix similarity index 100% rename from pkgs/misc/tex/dblatex/default.nix rename to pkgs/tools/typesetting/tex/dblatex/default.nix diff --git a/pkgs/misc/tex/disser/default.nix b/pkgs/tools/typesetting/tex/disser/default.nix similarity index 100% rename from pkgs/misc/tex/disser/default.nix rename to pkgs/tools/typesetting/tex/disser/default.nix diff --git a/pkgs/misc/tex/latex2html/default.nix b/pkgs/tools/typesetting/tex/latex2html/default.nix similarity index 100% rename from pkgs/misc/tex/latex2html/default.nix rename to pkgs/tools/typesetting/tex/latex2html/default.nix diff --git a/pkgs/misc/tex/lazylist/builder.sh b/pkgs/tools/typesetting/tex/lazylist/builder.sh similarity index 100% rename from pkgs/misc/tex/lazylist/builder.sh rename to pkgs/tools/typesetting/tex/lazylist/builder.sh diff --git a/pkgs/misc/tex/lazylist/default.nix b/pkgs/tools/typesetting/tex/lazylist/default.nix similarity index 100% rename from pkgs/misc/tex/lazylist/default.nix rename to pkgs/tools/typesetting/tex/lazylist/default.nix diff --git a/pkgs/misc/tex/lkproof/default.nix b/pkgs/tools/typesetting/tex/lkproof/default.nix similarity index 100% rename from pkgs/misc/tex/lkproof/default.nix rename to pkgs/tools/typesetting/tex/lkproof/default.nix diff --git a/pkgs/misc/tex/nix/animatedot.sh b/pkgs/tools/typesetting/tex/nix/animatedot.sh similarity index 100% rename from pkgs/misc/tex/nix/animatedot.sh rename to pkgs/tools/typesetting/tex/nix/animatedot.sh diff --git a/pkgs/misc/tex/nix/copy-includes.pl b/pkgs/tools/typesetting/tex/nix/copy-includes.pl similarity index 100% rename from pkgs/misc/tex/nix/copy-includes.pl rename to pkgs/tools/typesetting/tex/nix/copy-includes.pl diff --git a/pkgs/misc/tex/nix/default.nix b/pkgs/tools/typesetting/tex/nix/default.nix similarity index 100% rename from pkgs/misc/tex/nix/default.nix rename to pkgs/tools/typesetting/tex/nix/default.nix diff --git a/pkgs/misc/tex/nix/dot2pdf.sh b/pkgs/tools/typesetting/tex/nix/dot2pdf.sh similarity index 100% rename from pkgs/misc/tex/nix/dot2pdf.sh rename to pkgs/tools/typesetting/tex/nix/dot2pdf.sh diff --git a/pkgs/misc/tex/nix/dot2ps.sh b/pkgs/tools/typesetting/tex/nix/dot2ps.sh similarity index 100% rename from pkgs/misc/tex/nix/dot2ps.sh rename to pkgs/tools/typesetting/tex/nix/dot2ps.sh diff --git a/pkgs/misc/tex/nix/find-includes.pl b/pkgs/tools/typesetting/tex/nix/find-includes.pl similarity index 100% rename from pkgs/misc/tex/nix/find-includes.pl rename to pkgs/tools/typesetting/tex/nix/find-includes.pl diff --git a/pkgs/misc/tex/nix/find-lhs2tex-includes.sh b/pkgs/tools/typesetting/tex/nix/find-lhs2tex-includes.sh similarity index 100% rename from pkgs/misc/tex/nix/find-lhs2tex-includes.sh rename to pkgs/tools/typesetting/tex/nix/find-lhs2tex-includes.sh diff --git a/pkgs/misc/tex/nix/lhs2tex.sh b/pkgs/tools/typesetting/tex/nix/lhs2tex.sh similarity index 100% rename from pkgs/misc/tex/nix/lhs2tex.sh rename to pkgs/tools/typesetting/tex/nix/lhs2tex.sh diff --git a/pkgs/misc/tex/nix/run-latex.sh b/pkgs/tools/typesetting/tex/nix/run-latex.sh similarity index 100% rename from pkgs/misc/tex/nix/run-latex.sh rename to pkgs/tools/typesetting/tex/nix/run-latex.sh diff --git a/pkgs/misc/tex/pgf/1.x.nix b/pkgs/tools/typesetting/tex/pgf/1.x.nix similarity index 100% rename from pkgs/misc/tex/pgf/1.x.nix rename to pkgs/tools/typesetting/tex/pgf/1.x.nix diff --git a/pkgs/misc/tex/pgf/2.x.nix b/pkgs/tools/typesetting/tex/pgf/2.x.nix similarity index 100% rename from pkgs/misc/tex/pgf/2.x.nix rename to pkgs/tools/typesetting/tex/pgf/2.x.nix diff --git a/pkgs/misc/tex/polytable/builder.sh b/pkgs/tools/typesetting/tex/polytable/builder.sh similarity index 100% rename from pkgs/misc/tex/polytable/builder.sh rename to pkgs/tools/typesetting/tex/polytable/builder.sh diff --git a/pkgs/misc/tex/polytable/default.nix b/pkgs/tools/typesetting/tex/polytable/default.nix similarity index 100% rename from pkgs/misc/tex/polytable/default.nix rename to pkgs/tools/typesetting/tex/polytable/default.nix diff --git a/pkgs/misc/tex/tetex/default.nix b/pkgs/tools/typesetting/tex/tetex/default.nix similarity index 100% rename from pkgs/misc/tex/tetex/default.nix rename to pkgs/tools/typesetting/tex/tetex/default.nix diff --git a/pkgs/misc/tex/tetex/environment.patch b/pkgs/tools/typesetting/tex/tetex/environment.patch similarity index 100% rename from pkgs/misc/tex/tetex/environment.patch rename to pkgs/tools/typesetting/tex/tetex/environment.patch diff --git a/pkgs/misc/tex/tetex/getline.patch b/pkgs/tools/typesetting/tex/tetex/getline.patch similarity index 100% rename from pkgs/misc/tex/tetex/getline.patch rename to pkgs/tools/typesetting/tex/tetex/getline.patch diff --git a/pkgs/misc/tex/tetex/setup-hook.sh b/pkgs/tools/typesetting/tex/tetex/setup-hook.sh similarity index 100% rename from pkgs/misc/tex/tetex/setup-hook.sh rename to pkgs/tools/typesetting/tex/tetex/setup-hook.sh diff --git a/pkgs/misc/tex/tex4ht/default.nix b/pkgs/tools/typesetting/tex/tex4ht/default.nix similarity index 100% rename from pkgs/misc/tex/tex4ht/default.nix rename to pkgs/tools/typesetting/tex/tex4ht/default.nix diff --git a/pkgs/misc/tex/texlive/aggregate.nix b/pkgs/tools/typesetting/tex/texlive/aggregate.nix similarity index 100% rename from pkgs/misc/tex/texlive/aggregate.nix rename to pkgs/tools/typesetting/tex/texlive/aggregate.nix diff --git a/pkgs/misc/tex/texlive/beamer.nix b/pkgs/tools/typesetting/tex/texlive/beamer.nix similarity index 100% rename from pkgs/misc/tex/texlive/beamer.nix rename to pkgs/tools/typesetting/tex/texlive/beamer.nix diff --git a/pkgs/misc/tex/texlive/cm-super.nix b/pkgs/tools/typesetting/tex/texlive/cm-super.nix similarity index 100% rename from pkgs/misc/tex/texlive/cm-super.nix rename to pkgs/tools/typesetting/tex/texlive/cm-super.nix diff --git a/pkgs/misc/tex/texlive/context.nix b/pkgs/tools/typesetting/tex/texlive/context.nix similarity index 100% rename from pkgs/misc/tex/texlive/context.nix rename to pkgs/tools/typesetting/tex/texlive/context.nix diff --git a/pkgs/misc/tex/texlive/default.nix b/pkgs/tools/typesetting/tex/texlive/default.nix similarity index 100% rename from pkgs/misc/tex/texlive/default.nix rename to pkgs/tools/typesetting/tex/texlive/default.nix diff --git a/pkgs/misc/tex/texlive/extra.nix b/pkgs/tools/typesetting/tex/texlive/extra.nix similarity index 100% rename from pkgs/misc/tex/texlive/extra.nix rename to pkgs/tools/typesetting/tex/texlive/extra.nix diff --git a/pkgs/misc/tex/texlive/moderncv.nix b/pkgs/tools/typesetting/tex/texlive/moderncv.nix similarity index 100% rename from pkgs/misc/tex/texlive/moderncv.nix rename to pkgs/tools/typesetting/tex/texlive/moderncv.nix diff --git a/pkgs/misc/tex/texlive/pgf.nix b/pkgs/tools/typesetting/tex/texlive/pgf.nix similarity index 100% rename from pkgs/misc/tex/texlive/pgf.nix rename to pkgs/tools/typesetting/tex/texlive/pgf.nix diff --git a/pkgs/misc/tex/texlive/setup-hook.sh b/pkgs/tools/typesetting/tex/texlive/setup-hook.sh similarity index 100% rename from pkgs/misc/tex/texlive/setup-hook.sh rename to pkgs/tools/typesetting/tex/texlive/setup-hook.sh diff --git a/pkgs/misc/tex/texlive/xcolor.nix b/pkgs/tools/typesetting/tex/texlive/xcolor.nix similarity index 100% rename from pkgs/misc/tex/texlive/xcolor.nix rename to pkgs/tools/typesetting/tex/texlive/xcolor.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3ec62d3e9042..5cd24af482e2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8491,7 +8491,7 @@ let ataripp = callPackage ../misc/emulators/atari++ { }; - auctex = callPackage ../misc/tex/auctex { }; + auctex = callPackage ../tools/typesetting/tex/auctex { }; busybox = callPackage ../misc/busybox { enableStatic = true; @@ -8509,7 +8509,7 @@ let darcnes = callPackage ../misc/emulators/darcnes { }; - dblatex = callPackage ../misc/tex/dblatex { }; + dblatex = callPackage ../tools/typesetting/tex/dblatex { }; dosbox = callPackage ../misc/emulators/dosbox { }; @@ -8565,7 +8565,7 @@ let keynav = callPackage ../tools/X11/keynav { }; - lazylist = callPackage ../misc/tex/lazylist { }; + lazylist = callPackage ../tools/typesetting/tex/lazylist { }; lilypond = callPackage ../misc/lilypond { inherit (gtkLibs) pango; @@ -8624,11 +8624,11 @@ let DisnixWebService = callPackage ../tools/package-management/disnix/DisnixWebService { }; - latex2html = callPackage ../misc/tex/latex2html/default.nix { + latex2html = callPackage ../tools/typesetting/tex/latex2html/default.nix { tex = tetex; }; - lkproof = callPackage ../misc/tex/lkproof { }; + lkproof = callPackage ../tools/typesetting/tex/lkproof { }; mysqlWorkbench = newScope gnome ../applications/misc/mysql-workbench { lua = lua5; @@ -8643,13 +8643,13 @@ let # Keep the old PGF since some documents don't render properly with # the new one. - pgf1 = callPackage ../misc/tex/pgf/1.x.nix { }; + pgf1 = callPackage ../tools/typesetting/tex/pgf/1.x.nix { }; - pgf2 = callPackage ../misc/tex/pgf/2.x.nix { }; + pgf2 = callPackage ../tools/typesetting/tex/pgf/2.x.nix { }; pjsip = callPackage ../applications/networking/pjsip { }; - polytable = callPackage ../misc/tex/polytable { }; + polytable = callPackage ../tools/typesetting/tex/polytable { }; uae = callPackage ../misc/emulators/uae { }; @@ -8679,13 +8679,13 @@ let splix = callPackage ../misc/cups/drivers/splix { }; - tetex = callPackage ../misc/tex/tetex { }; + tetex = callPackage ../tools/typesetting/tex/tetex { }; - tex4ht = callPackage ../misc/tex/tex4ht { }; + tex4ht = callPackage ../tools/typesetting/tex/tex4ht { }; - texFunctions = import ../misc/tex/nix pkgs; + texFunctions = import ../tools/typesetting/tex/nix pkgs; - texLive = builderDefsPackage (import ../misc/tex/texlive) { + texLive = builderDefsPackage (import ../tools/typesetting/tex/texlive) { inherit builderDefs zlib bzip2 ncurses libpng ed gd t1lib freetype icu perl expat curl libjpeg bison python fontconfig flex; @@ -8713,35 +8713,35 @@ let Just installing a few packages doesn't work. */ texLiveAggregationFun = - (builderDefsPackage (import ../misc/tex/texlive/aggregate.nix)); + (builderDefsPackage (import ../tools/typesetting/tex/texlive/aggregate.nix)); - texDisser = callPackage ../misc/tex/disser {}; + texDisser = callPackage ../tools/typesetting/tex/disser {}; - texLiveContext = builderDefsPackage (import ../misc/tex/texlive/context.nix) { + texLiveContext = builderDefsPackage (import ../tools/typesetting/tex/texlive/context.nix) { inherit texLive; }; - texLiveExtra = builderDefsPackage (import ../misc/tex/texlive/extra.nix) { + texLiveExtra = builderDefsPackage (import ../tools/typesetting/tex/texlive/extra.nix) { inherit texLive; }; - texLiveCMSuper = builderDefsPackage (import ../misc/tex/texlive/cm-super.nix) { + texLiveCMSuper = builderDefsPackage (import ../tools/typesetting/tex/texlive/cm-super.nix) { inherit texLive; }; - texLiveLatexXColor = builderDefsPackage (import ../misc/tex/texlive/xcolor.nix) { + texLiveLatexXColor = builderDefsPackage (import ../tools/typesetting/tex/texlive/xcolor.nix) { inherit texLive; }; - texLivePGF = builderDefsPackage (import ../misc/tex/texlive/pgf.nix) { + texLivePGF = builderDefsPackage (import ../tools/typesetting/tex/texlive/pgf.nix) { inherit texLiveLatexXColor texLive; }; - texLiveBeamer = builderDefsPackage (import ../misc/tex/texlive/beamer.nix) { + texLiveBeamer = builderDefsPackage (import ../tools/typesetting/tex/texlive/beamer.nix) { inherit texLiveLatexXColor texLivePGF texLive; }; - texLiveModerncv = builderDefsPackage (import ../misc/tex/texlive/moderncv.nix) { + texLiveModerncv = builderDefsPackage (import ../tools/typesetting/tex/texlive/moderncv.nix) { inherit texLive unzip; }; From 282449afe8a0ca3f683d1df8bc78eb6eda261142 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 4 Feb 2012 10:32:07 +0000 Subject: [PATCH 135/179] analog: added version 6.0 svn path=/nixpkgs/trunk/; revision=32029 --- pkgs/tools/admin/analog/default.nix | 39 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/tools/admin/analog/default.nix diff --git a/pkgs/tools/admin/analog/default.nix b/pkgs/tools/admin/analog/default.nix new file mode 100644 index 000000000000..91a49ac997ff --- /dev/null +++ b/pkgs/tools/admin/analog/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchurl }: + +let + name = "analog-6.0"; +in +stdenv.mkDerivation { + inherit name; + + src = fetchurl { + url = "http://www.analog.cx/${name}.tar.gz"; + sha256 = "31c0e2bedd0968f9d4657db233b20427d8c497be98194daf19d6f859d7f6fcca"; + }; + + configurePhase = '' + sed -i src/anlghead.h \ + -e "s|#define DEFAULTCONFIGFILE .*|#define DEFAULTCONFIGFILE \"$out/etc/analog.cfg\"|g" \ + -e "s|#define LANGDIR .*|#define LANGDIR \"$out/share/${name}/lang/\"|g" + ''; + + installPhase = '' + mkdir -p $out/bin $out/etc $out/share/doc/${name} $out/share/man/man1 $out/share/${name} + mv analog $out/bin/ + cp examples/big.cfg $out/etc/analog.cfg + mv analog.man $out/share/man/man1/analog.1 + mv docs $out/share/doc/${name}/manual + mv how-to $out/share/doc/${name}/ + mv lang $out/share/${name}/ + mv examples $out/share/${name}/ + ''; + + meta = { + homepage = "http://www.analog.cx/"; + license = "GPL"; + description = "a powerful tool to generate web server statistics"; + maintainers = [ stdenv.lib.maintainers.simons ]; + platforms = stdenv.lib.platforms.linux; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5cd24af482e2..6b8fb6474a70 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -363,6 +363,8 @@ let aircrackng = callPackage ../tools/networking/aircrack-ng { }; + analog = callPackage ../tools/admin/analog {}; + archivemount = callPackage ../tools/filesystems/archivemount { }; asymptote = builderDefsPackage ../tools/graphics/asymptote { From 60c8201514a341dee5d6feff82663812f1e07cd8 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 4 Feb 2012 10:48:48 +0000 Subject: [PATCH 136/179] analog: install images directory, too svn path=/nixpkgs/trunk/; revision=32030 --- pkgs/tools/admin/analog/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/tools/admin/analog/default.nix b/pkgs/tools/admin/analog/default.nix index 91a49ac997ff..debd6e4c2b77 100644 --- a/pkgs/tools/admin/analog/default.nix +++ b/pkgs/tools/admin/analog/default.nix @@ -24,8 +24,7 @@ stdenv.mkDerivation { mv analog.man $out/share/man/man1/analog.1 mv docs $out/share/doc/${name}/manual mv how-to $out/share/doc/${name}/ - mv lang $out/share/${name}/ - mv examples $out/share/${name}/ + mv lang images examples $out/share/${name}/ ''; meta = { From b59eac3bfc754b418477ce73400a998be8544f3b Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sat, 4 Feb 2012 15:04:04 +0000 Subject: [PATCH 137/179] Add autotest-rails gem svn path=/nixpkgs/trunk/; revision=32033 --- .../interpreters/ruby/generated.nix | 52 +++++++++++++++++-- 1 file changed, 47 insertions(+), 5 deletions(-) diff --git a/pkgs/development/interpreters/ruby/generated.nix b/pkgs/development/interpreters/ruby/generated.nix index 712b2fe04837..92641f1ca448 100644 --- a/pkgs/development/interpreters/ruby/generated.nix +++ b/pkgs/development/interpreters/ruby/generated.nix @@ -3,6 +3,7 @@ g: # Get dependencies from patched gems { aliases = { + ZenTest = g.ZenTest_4_5_0; actionmailer = g.actionmailer_3_2_1; actionpack = g.actionpack_3_2_1; activemodel = g.activemodel_3_2_1; @@ -11,6 +12,7 @@ g: # Get dependencies from patched gems activesupport = g.activesupport_3_2_1; arel = g.arel_3_0_0; atoulme_Antwrap = g.atoulme_Antwrap_0_7_1; + autotest_rails = g.autotest_rails_4_1_1; builder = g.builder_3_0_0; buildr = g.buildr_1_4_6; bundler = g.bundler_1_0_21; @@ -49,7 +51,7 @@ g: # Get dependencies from patched gems rspec_mocks = g.rspec_mocks_2_1_0; rubyforge = g.rubyforge_2_0_4; rubyzip = g.rubyzip_0_9_5; - sass = g.sass_3_1_12; + sass = g.sass_3_1_13; selenium_webdriver = g.selenium_webdriver_2_18_0; sprockets = g.sprockets_2_1_2; thor = g.thor_0_14_6; @@ -58,8 +60,36 @@ g: # Get dependencies from patched gems tzinfo = g.tzinfo_0_3_31; xml_simple = g.xml_simple_1_0_12; }; - gem_nix_args = [ ''buildr'' ''nix'' ''rails'' ''rake'' ''rb-fsevent'' ''sass'' ''selenium-webdriver'' ]; + gem_nix_args = [ ''autotest-rails'' ''buildr'' ''nix'' ''rails'' ''rake'' ''rb-fsevent'' ''sass'' ''selenium-webdriver'' ]; gems = { + ZenTest_4_5_0 = { + basename = ''ZenTest''; + meta = { + description = ''ZenTest provides 4 different tools: zentest, unit_diff, autotest, and multiruby''; + homepage = ''http://www.zenspider.com/ZSS/Products/ZenTest/''; + longDescription = ''ZenTest provides 4 different tools: zentest, unit_diff, autotest, and +multiruby. + +ZenTest scans your target and unit-test code and writes your missing +code based on simple naming rules, enabling XP at a much quicker +pace. ZenTest only works with Ruby and Test::Unit. Nobody uses this +tool anymore but it is the package namesake, so it stays. + +unit_diff is a command-line filter to diff expected results from +actual results and allow you to quickly see exactly what is wrong. + +autotest is a continous testing facility meant to be used during +development. As soon as you save a file, autotest will run the +corresponding dependent tests. + +multiruby runs anything you want on multiple versions of ruby. Great +for compatibility checking! Use multiruby_setup to manage your +installed versions.''; + }; + name = ''ZenTest-4.5.0''; + requiredGems = [ ]; + sha256 = ''05iam95wqafz4c890b17w7ahp9i4jbz4hsw6304p9zbsaq7d7h1h''; + }; actionmailer_3_2_1 = { basename = ''actionmailer''; meta = { @@ -166,6 +196,18 @@ database compatibility and query generation.''; requiredGems = [ g.rjb_1_3_9 ]; sha256 = ''0r9jy2asyma8h0878nhjfbi00qvb4yapc8glngvmkkj21zbx2mfy''; }; + autotest_rails_4_1_1 = { + basename = ''autotest_rails''; + meta = { + description = ''This is an autotest plugin to provide rails support''; + homepage = ''https://github.com/seattlerb/autotest-rails''; + longDescription = ''This is an autotest plugin to provide rails support. It provides basic +rails support and extra plugins for migrations and fixtures.''; + }; + name = ''autotest-rails-4.1.1''; + requiredGems = [ g.ZenTest_4_5_0 ]; + sha256 = ''09i6mpxibs8yfdcr53nazlxq94yswahz9gdjqdz9srfshcccqbal''; + }; builder_2_1_2 = { basename = ''builder''; meta = { @@ -777,7 +819,7 @@ See RDoc for a description of RDoc's markup and basic use.''; requiredGems = [ ]; sha256 = ''1744bds6lc46d1kjfgapf34p2574s70hcyz63877qkry4db2jb54''; }; - sass_3_1_12 = { + sass_3_1_13 = { basename = ''sass''; meta = { description = ''A powerful but elegant CSS compiler that makes CSS fun again.''; @@ -788,9 +830,9 @@ See RDoc for a description of RDoc's markup and basic use.''; command line tool or a web-framework plugin. ''; }; - name = ''sass-3.1.12''; + name = ''sass-3.1.13''; requiredGems = [ ]; - sha256 = ''10n2aic53290xsa3y3d63523s8xc78w5q5gqpns6cbljkdwb0ndy''; + sha256 = ''0x07yckw9c4d59713midk2n85d3h88fcp147p8nai88gbvrm8b63''; }; selenium_webdriver_2_18_0 = { basename = ''selenium_webdriver''; From d15738aca5632a6496f81797530ba5395e80d937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sat, 4 Feb 2012 23:21:33 +0000 Subject: [PATCH 138/179] GnuTLS: Get Hydra to build the Guile-less variants. svn path=/nixpkgs/trunk/; revision=32034 --- pkgs/top-level/all-packages.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6b8fb6474a70..e6df28175948 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3684,6 +3684,9 @@ let guileBindings = getConfig ["gnutls" "guile"] true; }; + gnutls_without_guile = gnutls.override { guileBindings = false; }; + gnutls2_without_guile = gnutls2.override { guileBindings = false; }; + gpgme = callPackage ../development/libraries/gpgme { }; grantlee = callPackage ../development/libraries/grantlee { }; From b4d5957ac4c8026589f2d4569c76a8709affbd81 Mon Sep 17 00:00:00 2001 From: Arie Middelkoop Date: Sun, 5 Feb 2012 00:43:54 +0000 Subject: [PATCH 139/179] Version bumb of 'xf86-synaptics' module, which fixes a cpu-stealing bug when using syndaemon. svn path=/nixpkgs/trunk/; revision=32035 --- pkgs/servers/x11/xorg/default.nix | 6 +++--- pkgs/servers/x11/xorg/tarballs-7.6.list | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/x11/xorg/default.nix b/pkgs/servers/x11/xorg/default.nix index 296dac46cbae..4fbc6fbdfda8 100644 --- a/pkgs/servers/x11/xorg/default.nix +++ b/pkgs/servers/x11/xorg/default.nix @@ -1398,11 +1398,11 @@ let })) // {inherit inputproto xorgserver xproto ;}; xf86inputsynaptics = (stdenv.mkDerivation ((if overrides ? xf86inputsynaptics then overrides.xf86inputsynaptics else x: x) { - name = "xf86-input-synaptics-1.3.0"; + name = "xf86-input-synaptics-1.5.0"; builder = ./builder.sh; src = fetchurl { - url = mirror://xorg/X11R7.6/src/everything/xf86-input-synaptics-1.3.0.tar.bz2; - sha256 = "1mwgb85qjyzx2yfi7jhgvd435zdyqxyq9aqwlsldmlpkqi8358rh"; + url = mirror://xorg/individual/driver/xf86-input-synaptics-1.5.0.tar.bz2; + sha256 = "0khwda8lrrvrdb37i4i1kdhg8f44kgcjq9y209ds7ja9zjcm7k4m"; }; buildInputs = [pkgconfig inputproto randrproto recordproto libX11 libXi xorgserver xproto libXtst ]; })) // {inherit inputproto randrproto recordproto libX11 libXi xorgserver xproto libXtst ;}; diff --git a/pkgs/servers/x11/xorg/tarballs-7.6.list b/pkgs/servers/x11/xorg/tarballs-7.6.list index 27cd5ca5d827..613c3107c867 100644 --- a/pkgs/servers/x11/xorg/tarballs-7.6.list +++ b/pkgs/servers/x11/xorg/tarballs-7.6.list @@ -121,7 +121,7 @@ mirror://xorg/individual/driver/xf86-input-evdev-2.6.0.tar.bz2 mirror://xorg/X11R7.6/src/everything/xf86-input-joystick-1.5.0.tar.bz2 mirror://xorg/X11R7.6/src/everything/xf86-input-keyboard-1.5.0.tar.bz2 mirror://xorg/X11R7.6/src/everything/xf86-input-mouse-1.6.0.tar.bz2 -mirror://xorg/X11R7.6/src/everything/xf86-input-synaptics-1.3.0.tar.bz2 +mirror://xorg/individual/driver/xf86-input-synaptics-1.5.0.tar.bz2 mirror://xorg/X11R7.6/src/everything/xf86-input-vmmouse-12.6.10.tar.bz2 mirror://xorg/X11R7.6/src/everything/xf86-input-void-1.3.1.tar.bz2 mirror://xorg/X11R7.6/src/everything/xf86-video-apm-1.2.3.tar.bz2 From 3f1054b1ec156b85bb676b74cd5eda86d72436e2 Mon Sep 17 00:00:00 2001 From: Arie Middelkoop Date: Sun, 5 Feb 2012 00:51:35 +0000 Subject: [PATCH 140/179] Added 'bumblebee', a package that facilitates NVidia Optimus graphics with X11. Note: it relies heavily on 'virtualgl'. This also makes the approach taken by bumblebee not very effective. So, this package is actually mainly useful for shutting down your card so that it does not consume power/produce heat. See the comments in bumblebee/default.nix svn path=/nixpkgs/trunk/; revision=32036 --- pkgs/development/libraries/libbsd/default.nix | 24 ++++ .../libraries/libjpeg-turbo/default.nix | 6 +- pkgs/tools/X11/bumblebee/config.patch | 30 ++++ pkgs/tools/X11/bumblebee/default.nix | 136 ++++++++++++++++++ pkgs/tools/X11/bumblebee/xopts.patch | 11 ++ pkgs/tools/X11/bumblebee/xorg.conf.nvidia | 49 +++++++ pkgs/tools/X11/virtualgl/default.nix | 15 +- pkgs/tools/X11/virtualgl/fixturbopath.patch | 16 +++ pkgs/top-level/all-packages.nix | 4 + 9 files changed, 282 insertions(+), 9 deletions(-) create mode 100644 pkgs/development/libraries/libbsd/default.nix create mode 100644 pkgs/tools/X11/bumblebee/config.patch create mode 100644 pkgs/tools/X11/bumblebee/default.nix create mode 100644 pkgs/tools/X11/bumblebee/xopts.patch create mode 100644 pkgs/tools/X11/bumblebee/xorg.conf.nvidia create mode 100644 pkgs/tools/X11/virtualgl/fixturbopath.patch diff --git a/pkgs/development/libraries/libbsd/default.nix b/pkgs/development/libraries/libbsd/default.nix new file mode 100644 index 000000000000..3c28b95c0667 --- /dev/null +++ b/pkgs/development/libraries/libbsd/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchurl }: + +let name = "libbsd-0.3.0"; +in stdenv.mkDerivation { + inherit name; + + src = fetchurl { + url = "http://libbsd.freedesktop.org/releases/${name}.tar.gz"; + sha256 = "fbf36ed40443e1d0d795adbae8d461952509e610c3ccf0866ae160b723f7fe38"; + }; + + patchPhase = '' + substituteInPlace Makefile \ + --replace "/usr" "$out" \ + --replace "{exec_prefix}" "{prefix}" + ''; + + meta = { + description = "Common functions found on BSD systems"; + homepage = http://libbsd.freedesktop.org/; + license = "BSD3"; + }; +} + diff --git a/pkgs/development/libraries/libjpeg-turbo/default.nix b/pkgs/development/libraries/libjpeg-turbo/default.nix index 63a8c53afb78..f7135e4018d8 100644 --- a/pkgs/development/libraries/libjpeg-turbo/default.nix +++ b/pkgs/development/libraries/libjpeg-turbo/default.nix @@ -1,11 +1,11 @@ { stdenv, fetchurl, nasm }: stdenv.mkDerivation { - name = "libjpeg-turbo-1.0.1"; + name = "libjpeg-turbo-1.1.1"; src = fetchurl { - url = mirror://sourceforge/libjpeg-turbo/libjpeg-turbo-1.0.1.tar.gz; - sha256 = "094jvqzibqbzmhh7mz3xi76lzlilxzb4j1x8rpdcdkzyig9dizqf"; + url = mirror://sourceforge/libjpeg-turbo/libjpeg-turbo-1.1.1.tar.gz; + sha256 = "553b1f5a968fb9efc089623ed99be2aa6bc21586be92eb04848489c91a63f1e2"; }; buildInputs = [ nasm ]; diff --git a/pkgs/tools/X11/bumblebee/config.patch b/pkgs/tools/X11/bumblebee/config.patch new file mode 100644 index 000000000000..61b671f80c1c --- /dev/null +++ b/pkgs/tools/X11/bumblebee/config.patch @@ -0,0 +1,30 @@ +--- bumblebee-3.0/src/driver.c.orig 2012-02-03 14:51:10.282464426 +0100 ++++ bumblebee-3.0/src/driver.c 2012-02-04 22:26:02.715498536 +0100 +@@ -23,6 +23,7 @@ + #include "module.h" + #include "bblogger.h" + #include "driver.h" ++#include + + /** + * Check what drivers are available and autodetect if possible. Driver, module +@@ -30,6 +31,7 @@ + */ + void driver_detect(void) { + /* determine driver to be used */ ++ set_string_value(&bb_config.driver, getenv("BUMBLEBEE_DRIVER")); + if (*bb_config.driver) { + bb_log(LOG_DEBUG, "Skipping auto-detection, using configured driver" + " '%s'\n", bb_config.driver); +@@ -65,8 +67,8 @@ + } + } + +- if (strcmp(bb_config.driver, "nvidia")) { +- set_string_value(&bb_config.ld_path, CONF_LDPATH_NVIDIA); +- set_string_value(&bb_config.mod_path, CONF_MODPATH_NVIDIA); ++ if (!strcmp(bb_config.driver, "nvidia")) { ++ set_string_value(&bb_config.ld_path, getenv("BUMBLEBEE_LDPATH_NVIDIA")); ++ set_string_value(&bb_config.mod_path, getenv("BUMBLEBEE_MODPATH_NVIDIA")); + } + } diff --git a/pkgs/tools/X11/bumblebee/default.nix b/pkgs/tools/X11/bumblebee/default.nix new file mode 100644 index 000000000000..2e0c700641f7 --- /dev/null +++ b/pkgs/tools/X11/bumblebee/default.nix @@ -0,0 +1,136 @@ +# The bumblebee package allows a program to be rendered on an +# dedicated video card by spawning an additional X11 server +# and streaming the results via VirtualGL to the primary server. + +# The package is rather chaotic; it's also quite recent. +# As it may change a lot, some of the hacks in this nix expression +# will hopefully not be needed in the future anymore. + +# To test: make sure that the 'bbswitch' kernel module is installed, +# then run 'bumblebeed' as root and 'optirun glxgears' as user. +# To use at startup, add e.g. to configuration.nix: +# jobs = { +# bumblebeed = { +# name = "bumblebeed"; +# description = "Manages the Optimus video card"; +# startOn = "started udev and started syslogd"; +# stopOn = "starting shutdown"; +# exec = "bumblebeed --use-syslog"; +# path = [ pkgs.bumblebee ]; +# environment = { MODULE_DIR = "${config.system.modulesTree}/lib/modules"; }; +# respawn = true; +# }; +# }; + +# This nix expression supports for now only the native nvidia driver. +# It should not be hard to generalize this approach to support the +# nouveau driver as well (parameterize commonEnv over the module +# package, and parameterize the two wrappers as well) + +{ stdenv, fetchurl, pkgconfig, help2man +, libX11, glibc, gtkLibs, libbsd +, makeWrapper, buildEnv, module_init_tools +, linuxPackages, virtualgl, xorg, xkeyboard_config +}: + +let + version = "3.0"; + name = "bumblebee-${version}"; + + # isolated X11 environment with the nvidia module + # it should include all components needed for bumblebeed and + # optirun to spawn the second X server and to connect to it. + commonEnv = buildEnv { + name = "bumblebee-env"; + paths = [ + module_init_tools + + linuxPackages.nvidia_x11 + xorg.xorgserver + xorg.xrandr + xorg.xrdb + xorg.setxkbmap + xorg.libX11 + xorg.libXext + + virtualgl + ]; + + # the nvidia GLX module overwrites the one of xorgserver, + # thus nvidia_x11 must be before xorgserver in the paths. + ignoreCollisions = true; + }; + + # Custom X11 configuration for the additional xserver instance. + xorgConf = ./xorg.conf.nvidia; + +in stdenv.mkDerivation { + inherit name; + + src = fetchurl { + url = "http://github.com/downloads/Bumblebee-Project/Bumblebee/${name}.tar.gz"; + sha256 = "a27ddb77b282ac8b972857fdb0dc5061cf0a0982b7ac3e1cfa698b4f786e49a1"; + }; + + # 'config.patch' makes bumblebee read the active module and the nvidia configuration + # from the environment variables instead of the config file: + # BUMBLEBEE_DRIVER, BUMBLEBEE_LDPATH_NVIDIA, BUMBLEBEE_MODPATH_NVIDIA + # These variables must be set when bumblebeed and optirun are executed. + patches = [ ./config.patch ./xopts.patch ]; + + preConfigure = '' + # Substitute the path to the actual modinfo program in module.c. + # Note: module.c also calls rmmod and modprobe, but those just have to + # be in PATH, and thus no action for them is required. + substituteInPlace src/module.c \ + --replace "/sbin/modinfo" "${module_init_tools}/sbin/modinfo" + + # Don't use a special group, just reuse wheel. + substituteInPlace configure \ + --replace 'CONF_GID="bumblebee"' 'CONF_GID="wheel"' + + # Ensures that the config file ends up with a nonempty + # name of the nvidia module. This is needed, because the + # configuration handling code otherwise resets the + # data that we obtained from the environment (see config.patch) + export CONF_DRIVER_MODULE_NVIDIA=nvidia + ''; + + # Build-time dependencies of bumblebeed and optirun. + # Note that it has several runtime dependencies. + buildInputs = [ stdenv makeWrapper pkgconfig help2man libX11 gtkLibs.glib libbsd ]; + + # create a wrapper environment for bumblebeed and optirun + postInstall = '' + # remove some entries from the configuration file that would otherwise + # cause our environment variables to be ignored. + substituteInPlace "$out/etc/bumblebee/bumblebee.conf" \ + --replace "LibraryPath=" "" \ + --replace "XorgModulePath=" "" + + wrapProgram "$out/sbin/bumblebeed" \ + --prefix PATH : "${commonEnv}/sbin:${commonEnv}/bin:\$PATH" \ + --prefix LD_LIBRARY_PATH : "${commonEnv}/lib:\$LD_LIBRARY_PATH" \ + --set BUMBLEBEE_DRIVER "nvidia" \ + --set BUMBLEBEE_LDPATH_NVIDIA "${commonEnv}/lib" \ + --set BUMBLEBEE_MODPATH_NVIDIA "${commonEnv}/lib/xorg/modules" \ + --set FONTCONFIG_FILE "/etc/fonts/fonts.conf" \ + --set XKB_BINDIR "${xorg.xkbcomp}/bin" \ + --set XKB_DIR "${xkeyboard_config}/etc/X11/xkb" + + wrapProgram "$out/bin/optirun" \ + --prefix PATH : "${commonEnv}/sbin:${commonEnv}/bin" \ + --prefix LD_LIBRARY_PATH : "${commonEnv}/lib" \ + --set BUMBLEBEE_DRIVER "nvidia" \ + --set BUMBLEBEE_LDPATH_NVIDIA "${commonEnv}/lib" \ + --set BUMBLEBEE_MODPATH_NVIDIA "${commonEnv}/lib/xorg/modules" + + cp ${xorgConf} "$out/etc/bumblebee/xorg.conf.nvidia" + ''; + + meta = { + homepage = http://github.com/Bumblebee-Project/Bumblebee; + description = "Daemon for managing Optimus videocards (power-on/off, spawns xservers)"; + license = "free"; + }; +} diff --git a/pkgs/tools/X11/bumblebee/xopts.patch b/pkgs/tools/X11/bumblebee/xopts.patch new file mode 100644 index 000000000000..9e44a8e9fd1a --- /dev/null +++ b/pkgs/tools/X11/bumblebee/xopts.patch @@ -0,0 +1,11 @@ +--- bumblebee-3.0/src/bbsecondary.c.orig 2012-02-05 00:03:06.003439638 +0100 ++++ bumblebee-3.0/src/bbsecondary.c 2012-02-05 00:46:38.017382619 +0100 +@@ -149,6 +149,8 @@ + "-sharevts", + "-nolisten", "tcp", + "-noreset", ++ "-xkbdir", getenv("XKB_DIR"), ++ "-logfile", "/dev/null", + "-verbose", "3", + "-isolateDevice", pci_id, + "-modulepath", diff --git a/pkgs/tools/X11/bumblebee/xorg.conf.nvidia b/pkgs/tools/X11/bumblebee/xorg.conf.nvidia new file mode 100644 index 000000000000..31c417d6971e --- /dev/null +++ b/pkgs/tools/X11/bumblebee/xorg.conf.nvidia @@ -0,0 +1,49 @@ +Section "DRI" + Mode 0666 +EndSection + +Section "ServerLayout" + Identifier "Layout0" + Screen "Screen1" + Option "AutoAddDevices" "false" +EndSection + +Section "Module" + Load "dbe" + Load "extmod" + Load "glx" + Load "record" + Load "freetype" + Load "type1" +EndSection + +Section "Files" +EndSection + +Section "Device" + Identifier "Device1" + Driver "nvidia" + VendorName "NVIDIA Corporation" + Option "NoLogo" "true" + Option "UseEDID" "false" + Option "ConnectedMonitor" "CRT-0" +EndSection + +Section "Screen" + Identifier "Screen1" + Device "Device1" + Monitor "Monitor0" + DefaultDepth 24 + SubSection "Display" + Depth 24 + EndSubSection +EndSection + +Section "Extensions" + Option "Composite" "Enable" +EndSection + +Section "Monitor" + Identifier "Monitor0" + Option "DPMS" +EndSection diff --git a/pkgs/tools/X11/virtualgl/default.nix b/pkgs/tools/X11/virtualgl/default.nix index 433c22d128d6..57df08c1e2be 100644 --- a/pkgs/tools/X11/virtualgl/default.nix +++ b/pkgs/tools/X11/virtualgl/default.nix @@ -1,4 +1,5 @@ -{stdenv, fetchurl, mesa, libX11, openssl, libXext, libjpeg_turbo}: +{ stdenv, fetchurl, mesa, libX11, openssl, libXext +, libjpeg_turbo, cmake }: let libDir = if stdenv.is64bit then "lib64" else "lib"; @@ -6,21 +7,23 @@ in stdenv.mkDerivation { name = "virtualgl-2.1.4"; src = fetchurl { - url = mirror://sourceforge/virtualgl/VirtualGL-2.1.4.tar.gz; - sha256 = "d455e599620473a07711196615e59c73d08a7f392a9fcf60a6bc05d82809d89d"; + url = mirror://sourceforge/virtualgl/VirtualGL-2.3.tar.gz; + sha256 = "2f00c4eb20b0ae88e957a23fb66882e4ade2faa208abd30aa8c4f61570ecd4b9"; }; - patches = [ ./xshm.patch ]; + patches = [ ./xshm.patch ./fixturbopath.patch ]; prePatch = '' sed -i s,LD_PRELOAD=lib,LD_PRELOAD=$out/${libDir}/lib, rr/vglrun ''; - preInstall ='' + cmakeFlags = [ "-DTJPEG_LIBRARY=${libjpeg_turbo}/lib/libturbojpeg.so" ]; + + preInstall = '' export makeFlags="prefix=$out" ''; - buildInputs = [ mesa libX11 openssl libXext libjpeg_turbo ]; + buildInputs = [ cmake mesa libX11 openssl libXext libjpeg_turbo ]; meta = { homepage = http://www.virtualgl.org/; diff --git a/pkgs/tools/X11/virtualgl/fixturbopath.patch b/pkgs/tools/X11/virtualgl/fixturbopath.patch new file mode 100644 index 000000000000..2177555e33ae --- /dev/null +++ b/pkgs/tools/X11/virtualgl/fixturbopath.patch @@ -0,0 +1,16 @@ +--- VirtualGL-2.3/cmakescripts/FindTurboJPEG.cmake.orig 2012-02-02 17:33:49.496283001 +0100 ++++ VirtualGL-2.3/cmakescripts/FindTurboJPEG.cmake 2012-02-02 17:44:18.772483239 +0100 +@@ -40,8 +40,11 @@ + endif() + endif() + +-set(TJPEG_LIBRARY ${DEFAULT_TJPEG_LIBRARY} CACHE PATH +- "TurboJPEG library path (default: ${DEFAULT_TJPEG_LIBRARY})") ++if(NOT TJPEG_LIBRARY) ++ message(STATUS "TJPEG_LIBRARY environment variable not set") ++ set(TJPEG_LIBRARY ${DEFAULT_TJPEG_LIBRARY} CACHE PATH ++ "TurboJPEG library path (default: ${DEFAULT_TJPEG_LIBRARY})") ++endif() + + if(WIN32) + set(CMAKE_REQUIRED_DEFINITIONS -MT) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e6df28175948..7207db292776 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -680,6 +680,8 @@ let flvstreamer = callPackage ../tools/networking/flvstreamer { }; + libbsd = callPackage ../development/libraries/libbsd { }; + flvtool2 = callPackage ../tools/video/flvtool2 { }; fontforge = callPackage ../tools/misc/fontforge { }; @@ -7682,6 +7684,8 @@ let virtualgl = callPackage ../tools/X11/virtualgl { }; + bumblebee = callPackage ../tools/X11/bumblebee { }; + vkeybd = callPackage ../applications/audio/vkeybd { inherit (xlibs) libX11; }; From 33f14fc3cf5a73e594e71279bb5bceec2dcc5104 Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Sun, 5 Feb 2012 09:26:06 +0000 Subject: [PATCH 141/179] enblend-enfuse-4.0 svn path=/nixpkgs/trunk/; revision=32037 --- pkgs/tools/graphics/enblend-enfuse/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/graphics/enblend-enfuse/default.nix b/pkgs/tools/graphics/enblend-enfuse/default.nix index 4a9ef054417a..807b0a8ed795 100644 --- a/pkgs/tools/graphics/enblend-enfuse/default.nix +++ b/pkgs/tools/graphics/enblend-enfuse/default.nix @@ -1,14 +1,17 @@ -{stdenv, fetchurl, libtiff, libpng, lcms, libxmi, boost }: +{stdenv, fetchurl, libtiff, libpng, lcms, libxmi, boost, mesa, freeglut +, pkgconfig, perl, glew }: -stdenv.mkDerivation { - name = "enblend-enfuse-3.2"; +stdenv.mkDerivation rec { + name = "enblend-enfuse-4.0"; src = fetchurl { - url = mirror://sourceforge/enblend/enblend-enfuse-3.2.tar.gz; - sha256 = "0ly6fdn5ym1v6m1f4gqc6s4zqgrfcys1ypfm82g5qbhh66x6gqw4"; + url = "mirror://sourceforge/enblend/${name}.tar.gz"; + sha256 = "1i2kq842zrncpadarhcikg447abmh5r7a5js3mzg553ql3148am1"; }; - buildInputs = [ libtiff libpng lcms libxmi boost ]; + buildInputs = [ libtiff libpng lcms libxmi boost mesa freeglut glew ]; + + buildNativeInputs = [ perl pkgconfig ]; meta = { homepage = http://enblend.sourceforge.net/; From ba50fa3ad220f447139372c3e3f2fba61e2310f5 Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Sun, 5 Feb 2012 09:26:11 +0000 Subject: [PATCH 142/179] Whitespace svn path=/nixpkgs/trunk/; revision=32038 --- pkgs/top-level/all-packages.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7207db292776..27838526caf5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3301,8 +3301,7 @@ let clanlib = callPackage ../development/libraries/clanlib { }; - clapack = callPackage ../development/libraries/clapack { - }; + clapack = callPackage ../development/libraries/clapack { }; classads = callPackage ../development/libraries/classads { }; From 06a8db81ca2c2848c2833e9a765f2933d452210b Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Sun, 5 Feb 2012 09:26:15 +0000 Subject: [PATCH 143/179] qhull-2012.1 svn path=/nixpkgs/trunk/; revision=32039 --- pkgs/development/libraries/qhull/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/qhull/default.nix b/pkgs/development/libraries/qhull/default.nix index 002a25988b69..b9d9c19a10d8 100644 --- a/pkgs/development/libraries/qhull/default.nix +++ b/pkgs/development/libraries/qhull/default.nix @@ -1,11 +1,11 @@ {stdenv, fetchurl, cmake}: stdenv.mkDerivation rec { - name = "qhull-2011.1"; + name = "qhull-2012.1"; src = fetchurl { url = "${meta.homepage}/download/${name}-src.tgz"; - sha256 = "1i2lqw0552mvbcc1q7l4b31fpzf2l2qcabc23r4sybhwyljl9bmd"; + sha256 = "19hb10vs7ww45ifn7mpvxykn470gd1g568d84mlld6v4pnz7gamv"; }; buildNativeInputs = [ cmake ]; From c81e27f1f7f4ce14a650214e537033eb302f4692 Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Sun, 5 Feb 2012 18:29:42 +0000 Subject: [PATCH 144/179] Move gtkLibs to top-level namespace Earlier there was a strict correspondence between versions of gtkLibs.* but now upstream moves to gtk-3.x, and there is no simple rule anymore. Thus it is easier to override particular libs on a case-by-case basis than using gtkLibs2x. svn path=/nixpkgs/trunk/; revision=32040 --- pkgs/top-level/all-packages.nix | 55 ++++++++++++++++----------------- 1 file changed, 26 insertions(+), 29 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 27838526caf5..848c1ac4dd9f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3038,6 +3038,8 @@ let gnumake380 = callPackage ../development/tools/build-managers/gnumake-3.80 { }; gnumake381 = callPackage ../development/tools/build-managers/gnumake/3.81.nix { }; + gob2 = callPackage ../development/tools/misc/gob2 { }; + gradle = callPackage ../development/tools/build-managers/gradle { }; gperf = callPackage ../development/tools/misc/gperf { }; @@ -3708,36 +3710,31 @@ let gtkmathview = callPackage ../development/libraries/gtkmathview { }; - gtkLibs = recurseIntoAttrs pkgs.gtkLibs224; - - inherit (pkgs.gtkLibs) glib gtk pango cairo gdk_pixbuf; - - gtkLibs224 = let callPackage = pkgs.newScope pkgs.gtkLibs224; in { - - glib = callPackage ../development/libraries/glib/2.28.x.nix { }; - - glibmm = callPackage ../development/libraries/glibmm/2.28.x.nix { }; - - atk = callPackage ../development/libraries/atk/2.2.x.nix { }; - - atkmm = callPackage ../development/libraries/atkmm/2.22.x.nix { }; - - cairo = callPackage ../development/libraries/cairo { }; - - pango = callPackage ../development/libraries/pango/1.28.x.nix { }; - - pangomm = callPackage ../development/libraries/pangomm/2.28.x.nix { }; - - gdk_pixbuf = callPackage ../development/libraries/gdk-pixbuf/2.24.x.nix { }; - - gtk = callPackage ../development/libraries/gtk+/2.24.x.nix { }; - - gtkmm = callPackage ../development/libraries/gtkmm/2.24.x.nix { }; - - gob2 = callPackage ../development/tools/misc/gob2 { }; - + gtkLibs = { + inherit (pkgs) glib glibmm atk atkmm cairo pango pangomm gdk_pixbuf gtk + gtkmm; }; + glib = callPackage ../development/libraries/glib/2.28.x.nix { }; + + glibmm = callPackage ../development/libraries/glibmm/2.28.x.nix { }; + + atk = callPackage ../development/libraries/atk/2.2.x.nix { }; + + atkmm = callPackage ../development/libraries/atkmm/2.22.x.nix { }; + + cairo = callPackage ../development/libraries/cairo { }; + + pango = callPackage ../development/libraries/pango/1.28.x.nix { }; + + pangomm = callPackage ../development/libraries/pangomm/2.28.x.nix { }; + + gdk_pixbuf = callPackage ../development/libraries/gdk-pixbuf/2.24.x.nix { }; + + gtk = callPackage ../development/libraries/gtk+/2.24.x.nix { }; + + gtkmm = callPackage ../development/libraries/gtkmm/2.24.x.nix { }; + gtkLibs3x = let callPackage = newScope pkgs.gtkLibs3x; in { glib = callPackage ../development/libraries/glib/2.30.x.nix { }; @@ -6923,7 +6920,7 @@ let gitSVN = gitAndTools.gitSVN; giv = callPackage ../applications/graphics/giv { - inherit (gtkLibs) gdk_pixbuf gtk gob2; + inherit (gtkLibs) gdk_pixbuf gtk; pcre = pcre.override { unicodeSupport = true; }; }; From 2d7fe3028818f008f2f431a98fbadf98cfebc73c Mon Sep 17 00:00:00 2001 From: Arie Middelkoop Date: Sun, 5 Feb 2012 20:44:19 +0000 Subject: [PATCH 145/179] Improved the expression for intel microcode. svn path=/nixpkgs/trunk/; revision=32042 --- .../os-specific/linux/microcode/converter.nix | 29 +++++++++++++++++++ pkgs/os-specific/linux/microcode/intel.nix | 14 ++++----- pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 38 insertions(+), 7 deletions(-) create mode 100644 pkgs/os-specific/linux/microcode/converter.nix diff --git a/pkgs/os-specific/linux/microcode/converter.nix b/pkgs/os-specific/linux/microcode/converter.nix new file mode 100644 index 000000000000..ea00c7a6ae42 --- /dev/null +++ b/pkgs/os-specific/linux/microcode/converter.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation { + name = "microcode2ucode-20120205"; + src = fetchurl { + url = "http://gentoo-overlays.zugaina.org/gentoo/portage/sys-apps/microcode-data/files/intel-microcode2ucode.c"; + sha256 = "c51b1b1d8b4b28e7d5d007917c1e444af1a2ff04a9408aa9067c0e57d70164de"; + }; + + sourceRoot = "."; + + unpackPhase = '' + # nothing to unpack + ''; + + buildPhase = '' + gcc -Wall -O2 $src -o intel-microcode2ucode + ''; + + installPhase = '' + ensureDir "$out/bin" + cp intel-microcode2ucode "$out/bin/" + ''; + + meta = { + homepage = http://www.intel.com; + description = "Microcode converter for Intel .dat files"; + }; +} \ No newline at end of file diff --git a/pkgs/os-specific/linux/microcode/intel.nix b/pkgs/os-specific/linux/microcode/intel.nix index 3294c90cb3a0..9a57fef67a1b 100644 --- a/pkgs/os-specific/linux/microcode/intel.nix +++ b/pkgs/os-specific/linux/microcode/intel.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, microcode2ucode }: let version = "20111110"; num = "20728"; @@ -9,16 +9,16 @@ in stdenv.mkDerivation { sha256 = "16f532cdf9cce03e01e714619ad9406a465aa965bbd1288035398db79921cbc1"; }; -# setSourceRoot = '' -# sourceRoot=. -# ''; - + buildInputs = [ microcode2ucode ]; sourceRoot = "."; - dontBuild = true; + buildPhase = '' + intel-microcode2ucode microcode.dat + ''; + installPhase = '' ensureDir $out - cp microcode.dat "$out/" + cp -r intel-ucode "$out/" ''; meta = { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 848c1ac4dd9f..59030cddcf3e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5273,6 +5273,8 @@ let alsaUtils = callPackage ../os-specific/linux/alsa-utils { }; + microcode2ucode = callPackage ../os-specific/linux/microcode/converter.nix { }; + microcodeIntel = callPackage ../os-specific/linux/microcode/intel.nix { }; bcm43xx = callPackage ../os-specific/linux/firmware/bcm43xx { }; From 109068c605035f0ff6d72a1d8a01ea28718b9a58 Mon Sep 17 00:00:00 2001 From: Alexander Tsamutali Date: Sun, 5 Feb 2012 21:02:27 +0000 Subject: [PATCH 146/179] applications/misc/goldendict: New nixpkg. svn path=/nixpkgs/trunk/; revision=32045 --- pkgs/applications/misc/goldendict/default.nix | 31 +++++++++++++++++++ .../misc/goldendict/goldendict-paths.diff | 10 ++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 43 insertions(+) create mode 100644 pkgs/applications/misc/goldendict/default.nix create mode 100644 pkgs/applications/misc/goldendict/goldendict-paths.diff diff --git a/pkgs/applications/misc/goldendict/default.nix b/pkgs/applications/misc/goldendict/default.nix new file mode 100644 index 000000000000..881f5339bdf8 --- /dev/null +++ b/pkgs/applications/misc/goldendict/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, qt4, libXtst, libvorbis, phonon, hunspell }: +stdenv.mkDerivation rec { + name = "goldendict-1.0.1"; + src = fetchurl { + url = "mirror://sourceforge/goldendict/${name}-src.tar.bz2"; + sha256 = "19p99dd5jgs0k66sy30vck7ymqj6dv1lh6w8xw18zczdll2h9yxk"; + }; + buildInputs = [ qt4 libXtst libvorbis phonon hunspell ]; + unpackPhase = '' + mkdir ${name}-src + cd ${name}-src + tar xf ${src} + ''; + patches = [ ./goldendict-paths.diff ]; + patchFlags = "-p 0"; + configurePhase = '' + qmake + ''; + installPhase = '' + make INSTALL_ROOT="$out" install + rm -rf "$out/share/app-install" + ''; + + meta = { + homepage = http://goldendict.org/; + description = "a feature-rich dictionary lookup program"; + + platforms = stdenv.lib.platforms.linux; + maintainers = [ stdenv.lib.maintainers.astsmtl ]; + }; +} diff --git a/pkgs/applications/misc/goldendict/goldendict-paths.diff b/pkgs/applications/misc/goldendict/goldendict-paths.diff new file mode 100644 index 000000000000..6682911dbe42 --- /dev/null +++ b/pkgs/applications/misc/goldendict/goldendict-paths.diff @@ -0,0 +1,10 @@ +--- goldendict.pro~ 2010-12-27 22:52:21.000000000 +0100 ++++ goldendict.pro 2010-12-27 22:52:21.000000000 +0100 +@@ -63,2 +63,2 @@ +- isEmpty( PREFIX ):PREFIX = /usr/local +- DEFINES += PROGRAM_DATA_DIR=\\\"$$PREFIX/share/apps/goldendict/\\\" ++ isEmpty( PREFIX ):PREFIX = / ++ DEFINES += PROGRAM_DATA_DIR=\\\"$$PREFIX/share/goldendict/\\\" +@@ -66 +66 @@ +- locale.path = $$PREFIX/share/apps/goldendict/locale/ ++ locale.path = $$PREFIX/share/goldendict/locale/ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 59030cddcf3e..7d1e8b96cf27 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6806,6 +6806,8 @@ let fossil = callPackage ../applications/version-management/fossil { }; + goldendict = callPackage ../applications/misc/goldendict { }; + grass = import ../applications/misc/grass { inherit (xlibs) libXmu libXext libXp libX11 libXt libSM libICE libXpm libXaw libXrender; From bc851612c9c3653b28fc7b02ecc78c4f4ba1ad34 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Mon, 6 Feb 2012 05:49:27 +0000 Subject: [PATCH 147/179] A kludge to avoid removal of zlib from RPATH -- needed for LilyPond build svn path=/nixpkgs/trunk/; revision=32046 --- pkgs/tools/misc/fontforge/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/misc/fontforge/default.nix b/pkgs/tools/misc/fontforge/default.nix index d5a1bf42a129..ad2820012dbd 100644 --- a/pkgs/tools/misc/fontforge/default.nix +++ b/pkgs/tools/misc/fontforge/default.nix @@ -28,6 +28,9 @@ stdenv.mkDerivation { --replace /usr/include /no-such-path \ --replace /usr/lib /no-such-path \ --replace /usr/local /no-such-path \ + + + export NIX_LDFLAGS="$NIX_LDFLAGS -lz" ''; buildInputs = From 8bae3c51ff79b68b8c9864bf107cd35ec732ed6b Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Mon, 6 Feb 2012 08:28:24 +0000 Subject: [PATCH 148/179] Add Firefox 11beta svn path=/nixpkgs/trunk/; revision=32048 --- .../networking/browsers/firefox/11.0.nix | 180 ++++++++++++++++++ pkgs/top-level/all-packages.nix | 7 + 2 files changed, 187 insertions(+) create mode 100644 pkgs/applications/networking/browsers/firefox/11.0.nix diff --git a/pkgs/applications/networking/browsers/firefox/11.0.nix b/pkgs/applications/networking/browsers/firefox/11.0.nix new file mode 100644 index 000000000000..fd72b51f5b58 --- /dev/null +++ b/pkgs/applications/networking/browsers/firefox/11.0.nix @@ -0,0 +1,180 @@ +{ stdenv, fetchurl, pkgconfig, gtk, pango, perl, python, zip, libIDL +, libjpeg, libpng, zlib, cairo, dbus, dbus_glib, bzip2, xlibs +, freetype, fontconfig, file, alsaLib, nspr, nss, libnotify +, yasm, mesa, sqlite, unzip + +, # If you want the resulting program to call itself "Firefox" instead + # of "Shiretoko" or whatever, enable this option. However, those + # binaries may not be distributed without permission from the + # Mozilla Foundation, see + # http://www.mozilla.org/foundation/trademarks/. + enableOfficialBranding ? false +}: + +assert stdenv.gcc ? libc && stdenv.gcc.libc != null; + +rec { + + firefoxVersion = "11.0b1"; + + xulVersion = "11.0"; # this attribute is used by other packages + + + src = fetchurl { + url = "http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/${firefoxVersion}-candidates/build1/source/firefox-${firefoxVersion}.source.tar.bz2"; + sha256 = "1f9p2jmjvhmb23wmvj84jj22wd9g803k6pdjm8glwmkzwnva8x1b"; + }; + + commonConfigureFlags = + [ "--enable-optimize" + "--disable-debug" + "--enable-strip" + "--with-system-jpeg" + "--with-system-zlib" + "--with-system-bz2" + #"--with-system-nspr" # <-- There are links to nspr 4.9.0, but no file... + # "--with-system-nss" + # "--with-system-png" # <-- "--with-system-png won't work because the system's libpng doesn't have APNG support" + "--enable-system-cairo" + "--enable-system-sqlite" + "--disable-crashreporter" + "--disable-tests" + "--disable-necko-wifi" # maybe we want to enable this at some point + "--disable-installer" + "--disable-updater" + ]; + + + xulrunner = stdenv.mkDerivation rec { + name = "xulrunner-${xulVersion}"; + + inherit src; + + buildInputs = + [ pkgconfig gtk perl zip libIDL libjpeg libpng zlib cairo bzip2 + python dbus dbus_glib pango freetype fontconfig xlibs.libXi + xlibs.libX11 xlibs.libXrender xlibs.libXft xlibs.libXt file + alsaLib nspr /* nss */ libnotify xlibs.pixman yasm mesa + xlibs.libXScrnSaver xlibs.scrnsaverproto + xlibs.libXext xlibs.xextproto sqlite unzip + ]; + + configureFlags = + [ "--enable-application=xulrunner" + "--disable-javaxpcom" + ] ++ commonConfigureFlags; + + enableParallelBuilding = true; + + # Hack to work around make's idea of -lbz2 dependency + preConfigure = + '' + find . -name Makefile.in -execdir sed -i '{}' -e '1ivpath %.so ${ + stdenv.lib.concatStringsSep ":" + (map (s : s + "/lib") (buildInputs ++ [stdenv.gcc.libc])) + }' ';' + + export NIX_LDFLAGS="$NIX_LDFLAGS -L$out/lib/xulrunner-${xulVersion}" + ''; + + # !!! Temporary hack. + preBuild = + '' + export NIX_ENFORCE_PURITY= + ''; + + installFlags = "SKIP_GRE_REGISTRATION=1"; + + postInstall = '' + # Fix some references to /bin paths in the Xulrunner shell script. + substituteInPlace $out/bin/xulrunner \ + --replace /bin/pwd "$(type -tP pwd)" \ + --replace /bin/ls "$(type -tP ls)" + + # Fix run-mozilla.sh search + libDir=$(cd $out/lib && ls -d xulrunner-[0-9]*) + echo libDir: $libDir + test -n "$libDir" + cd $out/bin + mv xulrunner ../lib/$libDir/ + + for i in $out/lib/$libDir/*; do + file $i; + if file $i | grep executable &>/dev/null; then + echo -e '#! /bin/sh\n"'"$i"'" "$@"' > "$out/bin/$(basename "$i")"; + chmod a+x "$out/bin/$(basename "$i")"; + fi; + done; + for i in $out/lib/$libDir/{xpcshell,plugin-container,*.so}; do + patchelf --set-rpath "$(patchelf --print-rpath "$i"):$out/lib/$libDir" $i || true + done; + rm -f $out/bin/run-mozilla.sh + ''; # */ + + meta = { + description = "Mozilla Firefox XUL runner"; + homepage = http://www.mozilla.com/en-US/firefox/; + }; + + passthru = { inherit gtk; version = xulVersion; }; + }; + + + firefox = stdenv.mkDerivation rec { + name = "firefox-${firefoxVersion}"; + + inherit src; + + enableParallelBuilding = true; + + buildInputs = + [ pkgconfig gtk perl zip libIDL libjpeg zlib cairo bzip2 python + dbus dbus_glib pango freetype fontconfig alsaLib nspr libnotify + xlibs.pixman yasm mesa sqlite file unzip + ]; + + propagatedBuildInputs = [xulrunner]; + + configureFlags = + [ "--enable-application=browser" + "--with-libxul-sdk=${xulrunner}/lib/xulrunner-devel-${xulrunner.version}" + "--enable-chrome-format=jar" + "--disable-elf-hack" + ] + ++ commonConfigureFlags + ++ stdenv.lib.optional enableOfficialBranding "--enable-official-branding"; + + # Hack to work around make's idea of -lbz2 dependency + preConfigure = + '' + find . -name Makefile.in -execdir sed -i '{}' -e '1ivpath %.so ${ + stdenv.lib.concatStringsSep ":" + (map (s : s + "/lib") (buildInputs ++ [stdenv.gcc.libc])) + }' ';' + ''; + + postInstall = + '' + ln -s ${xulrunner}/lib/xulrunner-${xulrunner.version} $(echo $out/lib/firefox-*)/xulrunner + for j in $out/bin/*; do + i="$(readlink "$j")"; + file $i; + if file $i | grep executable &>/dev/null; then + rm "$out/bin/$(basename "$i")" + echo -e '#! /bin/sh\nexec "'"$i"'" "$@"' > "$out/bin/$(basename "$i")" + chmod a+x "$out/bin/$(basename "$i")" + fi; + done; + ''; # */ + + meta = { + description = "Mozilla Firefox - the browser, reloaded"; + homepage = http://www.mozilla.com/en-US/firefox/; + }; + + passthru = { + inherit gtk xulrunner nspr; + isFirefox3Like = true; + }; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7d1e8b96cf27..35e92a9c25b1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6865,6 +6865,13 @@ let firefox100Wrapper = wrapFirefox { browser = firefox100Pkgs.firefox; }; + firefox11Pkgs = callPackage ../applications/networking/browsers/firefox/11.0.nix { + inherit (gtkLibs) gtk pango; + inherit (gnome) libIDL; + }; + + firefox11Wrapper = wrapFirefox { browser = firefox11Pkgs.firefox; }; + flac = callPackage ../applications/audio/flac { }; flashplayer = flashplayer11; From 20f8c35e07f2333fa896f4bd179eb1cfd9df8f22 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 14:27:18 +0000 Subject: [PATCH 149/179] haskell-happy: added version 1.18.9 svn path=/nixpkgs/trunk/; revision=32052 --- .../tools/parsing/happy/1.18.9.nix | 21 +++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 5 +++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 pkgs/development/tools/parsing/happy/1.18.9.nix diff --git a/pkgs/development/tools/parsing/happy/1.18.9.nix b/pkgs/development/tools/parsing/happy/1.18.9.nix new file mode 100644 index 000000000000..cb47eaa8bdb2 --- /dev/null +++ b/pkgs/development/tools/parsing/happy/1.18.9.nix @@ -0,0 +1,21 @@ +{ cabal, mtl, perl }: + +cabal.mkDerivation (self: { + pname = "happy"; + version = "1.18.9"; + sha256 = "12k1rg7dqa02az9d1zasdnp51zs4h30kpi5lyqsw3jxfp09cad3x"; + isLibrary = false; + isExecutable = true; + buildDepends = [ mtl ]; + buildTools = [ perl ]; + meta = { + homepage = "http://www.haskell.org/happy/"; + description = "Happy is a parser generator for Haskell"; + 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 044a3c93d839..56f1313f8cb3 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -160,7 +160,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); random = self.random_1_0_1_1; # 7.4.1 ok cabalInstall = self.cabalInstall_0_10_2; # 7.4.1 fails alex = self.alex_3_0_1; # 7.4.1 ok - happy = self.happy_1_18_8; # 7.4.1 fails + happy = self.happy_1_18_9; # 7.4.1 ok haddock = self.haddock_2_9_2; # 7.4.1 fails }; @@ -1573,7 +1573,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); happy_1_18_5 = callPackage ../development/tools/parsing/happy/1.18.5.nix {}; happy_1_18_6 = callPackage ../development/tools/parsing/happy/1.18.6.nix {}; happy_1_18_8 = callPackage ../development/tools/parsing/happy/1.18.8.nix {}; - happy = self.happy_1_18_8; + happy_1_18_9 = callPackage ../development/tools/parsing/happy/1.18.9.nix {}; + happy = self.happy_1_18_9; happyMeta = callPackage ../development/tools/haskell/happy-meta {}; From df0f103e86fb06529bde8fcc49ddc0dbe77019b8 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 14:27:21 +0000 Subject: [PATCH 150/179] haskell-http-conduit: downgrade to version 1.2.0 The latest version has requirements version that we cannot fulfill without duplicating a lot of packages. svn path=/nixpkgs/trunk/; revision=32053 --- .../libraries/haskell/http-conduit/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/haskell/http-conduit/default.nix b/pkgs/development/libraries/haskell/http-conduit/default.nix index 6fd387fc23b9..0a4dd110fee2 100644 --- a/pkgs/development/libraries/haskell/http-conduit/default.nix +++ b/pkgs/development/libraries/haskell/http-conduit/default.nix @@ -1,19 +1,19 @@ { cabal, asn1Data, attoparsec, attoparsecConduit, base64Bytestring , blazeBuilder, blazeBuilderConduit, caseInsensitive, certificate , conduit, cprngAes, dataDefault, failure, httpTypes, liftedBase -, monadControl, network, socks, text, time, tls, tlsExtra -, transformers, transformersBase, utf8String, zlibConduit +, monadControl, network, text, time, tls, tlsExtra, transformers +, transformersBase, utf8String, zlibConduit }: cabal.mkDerivation (self: { pname = "http-conduit"; - version = "1.2.3"; - sha256 = "0kygmbcvv0j020ml9jgmg3yzda3k066s2h8g3c135cmad6jc8hnd"; + version = "1.2.0"; + sha256 = "1s3qrvglhymwvr0cp32mi95dijic40lphhsfr4hm63qjphfc8dpi"; buildDepends = [ asn1Data attoparsec attoparsecConduit base64Bytestring blazeBuilder blazeBuilderConduit caseInsensitive certificate conduit cprngAes - dataDefault failure httpTypes liftedBase monadControl network socks - text time tls tlsExtra transformers transformersBase utf8String + dataDefault failure httpTypes liftedBase monadControl network text + time tls tlsExtra transformers transformersBase utf8String zlibConduit ]; meta = { From 269b4776ced7c5e062026e39cb506ee3c416c4d1 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 14:27:24 +0000 Subject: [PATCH 151/179] haskell: added OpenGL 5.0.0 and GLUT 2.3.0.0 svn path=/nixpkgs/trunk/; revision=32054 --- .../libraries/haskell/GLUT/2.3.0.0.nix | 21 +++++++++++++++++++ .../libraries/haskell/OpenGL/2.5.0.0.nix | 21 +++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 12 +++++++---- 3 files changed, 50 insertions(+), 4 deletions(-) create mode 100644 pkgs/development/libraries/haskell/GLUT/2.3.0.0.nix create mode 100644 pkgs/development/libraries/haskell/OpenGL/2.5.0.0.nix diff --git a/pkgs/development/libraries/haskell/GLUT/2.3.0.0.nix b/pkgs/development/libraries/haskell/GLUT/2.3.0.0.nix new file mode 100644 index 000000000000..109ea000b439 --- /dev/null +++ b/pkgs/development/libraries/haskell/GLUT/2.3.0.0.nix @@ -0,0 +1,21 @@ +{ cabal, freeglut, libICE, libSM, libXi, libXmu, mesa, OpenGL +, OpenGLRaw, StateVar, Tensor +}: + +cabal.mkDerivation (self: { + pname = "GLUT"; + version = "2.3.0.0"; + sha256 = "10rh57w3lx8fs0xy24lqilv5a5sgq57kshydja41r6fq9wdvwp99"; + buildDepends = [ OpenGL OpenGLRaw StateVar Tensor ]; + extraLibraries = [ freeglut libICE libSM libXi libXmu mesa ]; + meta = { + homepage = "http://www.haskell.org/haskellwiki/Opengl"; + description = "A binding for the OpenGL Utility Toolkit"; + 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/OpenGL/2.5.0.0.nix b/pkgs/development/libraries/haskell/OpenGL/2.5.0.0.nix new file mode 100644 index 000000000000..8e616e4e0694 --- /dev/null +++ b/pkgs/development/libraries/haskell/OpenGL/2.5.0.0.nix @@ -0,0 +1,21 @@ +{ cabal, GLURaw, libX11, mesa, ObjectName, OpenGLRaw, StateVar +, Tensor +}: + +cabal.mkDerivation (self: { + pname = "OpenGL"; + version = "2.5.0.0"; + sha256 = "1kpakn5i4aka67mqcpfq9jpl38h409x63zd14y35abpm6h3x8m3j"; + buildDepends = [ GLURaw ObjectName OpenGLRaw StateVar Tensor ]; + extraLibraries = [ libX11 mesa ]; + meta = { + homepage = "http://www.haskell.org/haskellwiki/Opengl"; + description = "A binding for the OpenGL graphics system"; + 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 56f1313f8cb3..3979a8c5ee7b 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -137,12 +137,12 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); inherit (self) cabal ghc; cgi = self.cgi_3001_1_7_4; # 7.4.1 ok fgl = self.fgl_5_4_2_4; # 7.4.1 ok - GLUT = self.GLUT_2_1_2_1; # 7.4.1 fails + GLUT = self.GLUT_2_3_0_0; # 7.4.1 ok haskellSrc = self.haskellSrc_1_0_1_5; # 7.4.1 fails html = self.html_1_0_1_2; # 7.4.1 ok HUnit = self.HUnit_1_2_2_3; # 7.4.1 ok network = self.network_2_3_0_10; # 7.4.1 ok - OpenGL = self.OpenGL_2_2_3_0; # 7.4.1 fails + OpenGL = self.OpenGL_2_5_0_0; # 7.4.1 ok parallel = self.parallel_3_2_0_2; # 7.4.1 ok parsec = self.parsec_3_1_2; # 7.4.1 ok QuickCheck = self.QuickCheck_2_4_2; # 7.4.1 ok @@ -738,8 +738,11 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); GLUT_2_2_2_1 = callPackage ../development/libraries/haskell/GLUT/2.2.2.1.nix { OpenGL = self.OpenGL_2_4_0_2; }; + GLUT_2_3_0_0 = callPackage ../development/libraries/haskell/GLUT/2.3.0.0.nix { + OpenGL = self.OpenGL_2_5_0_0; + }; GLUT22 = self.GLUT_2_2_2_1; - GLUT = self.GLUT_2_1_1_2; + GLUT = self.GLUT_2_3_0_0; gtk = callPackage ../development/libraries/haskell/gtk { inherit (pkgs.gtkLibs) gtk; @@ -1048,8 +1051,9 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); OpenGL_2_2_1_1 = callPackage ../development/libraries/haskell/OpenGL/2.2.1.1.nix {}; OpenGL_2_2_3_0 = callPackage ../development/libraries/haskell/OpenGL/2.2.3.0.nix {}; OpenGL_2_4_0_2 = callPackage ../development/libraries/haskell/OpenGL/2.4.0.2.nix {}; + OpenGL_2_5_0_0 = callPackage ../development/libraries/haskell/OpenGL/2.5.0.0.nix {}; OpenGL24 = self.OpenGL_2_4_0_2; - OpenGL = self.OpenGL_2_2_1_1; + OpenGL = self.OpenGL_2_5_0_0; OpenGLRaw = callPackage ../development/libraries/haskell/OpenGLRaw {}; From 12dfa773aa9e8742b23a657e07a1b1531f54c8b7 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 14:27:27 +0000 Subject: [PATCH 152/179] haskell-haskell-src: 7.4.1 build was fixed by happy update svn path=/nixpkgs/trunk/; revision=32055 --- pkgs/top-level/haskell-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 3979a8c5ee7b..895cd8bb3744 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -138,7 +138,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); cgi = self.cgi_3001_1_7_4; # 7.4.1 ok fgl = self.fgl_5_4_2_4; # 7.4.1 ok GLUT = self.GLUT_2_3_0_0; # 7.4.1 ok - haskellSrc = self.haskellSrc_1_0_1_5; # 7.4.1 fails + haskellSrc = self.haskellSrc_1_0_1_5; # 7.4.1 ok html = self.html_1_0_1_2; # 7.4.1 ok HUnit = self.HUnit_1_2_2_3; # 7.4.1 ok network = self.network_2_3_0_10; # 7.4.1 ok From c682f95d63ebbafe37877964edbc690ea56a716c Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 14:27:30 +0000 Subject: [PATCH 153/179] haskell-temporary: added version 1.1.2.3 svn path=/nixpkgs/trunk/; revision=32056 --- .../libraries/haskell/temporary/default.nix | 13 +++++++++++++ pkgs/top-level/haskell-packages.nix | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 pkgs/development/libraries/haskell/temporary/default.nix diff --git a/pkgs/development/libraries/haskell/temporary/default.nix b/pkgs/development/libraries/haskell/temporary/default.nix new file mode 100644 index 000000000000..7266584cea57 --- /dev/null +++ b/pkgs/development/libraries/haskell/temporary/default.nix @@ -0,0 +1,13 @@ +{ cabal }: + +cabal.mkDerivation (self: { + pname = "temporary"; + version = "1.1.2.3"; + sha256 = "1x4jljggbcdq90h578yyvc8z1i9zmlhvqfz2dym8kj8pq4qiwixd"; + meta = { + homepage = "http://www.github.com/batterseapower/temporary"; + description = "Portable temporary file and directory support for Windows and Unix, based on code from Cabal"; + 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 895cd8bb3744..294fa00d17d1 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1319,6 +1319,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); tagsoup_0_10_1 = callPackage ../development/libraries/haskell/tagsoup/0.10.1nix {}; + temporary = callPackage ../development/libraries/haskell/temporary {}; + Tensor = callPackage ../development/libraries/haskell/Tensor {}; terminfo = callPackage ../development/libraries/haskell/terminfo {}; From 6494e9a2c4190f17e1dbe2e0b58b9ef870cedeed Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 14:27:32 +0000 Subject: [PATCH 154/179] haskell-GLURaw: updated to version 1.2.0.0 svn path=/nixpkgs/trunk/; revision=32057 --- pkgs/development/libraries/haskell/GLURaw/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/GLURaw/default.nix b/pkgs/development/libraries/haskell/GLURaw/default.nix index 034808566692..1397bea4f2be 100644 --- a/pkgs/development/libraries/haskell/GLURaw/default.nix +++ b/pkgs/development/libraries/haskell/GLURaw/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "GLURaw"; - version = "1.1.0.1"; - sha256 = "0n2yazdk98ia9j65n4ac7k0lnyp9cmz51d344x0jsi0xyfckm0mq"; + version = "1.2.0.0"; + sha256 = "06dsazj3zadjahwy926gnjngqg8cb1mhdxh8bg5f3axf3hsvxqp1"; buildDepends = [ OpenGLRaw ]; extraLibraries = [ freeglut mesa ]; meta = { From eb535088298b396f03611430f69ece210c622ceb Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 14:27:35 +0000 Subject: [PATCH 155/179] haskell-Graphalyze: updated to version 0.12.0.0 svn path=/nixpkgs/trunk/; revision=32058 --- pkgs/development/libraries/haskell/Graphalyze/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/haskell/Graphalyze/default.nix b/pkgs/development/libraries/haskell/Graphalyze/default.nix index 8084ada2cd68..cdd071b2b675 100644 --- a/pkgs/development/libraries/haskell/Graphalyze/default.nix +++ b/pkgs/development/libraries/haskell/Graphalyze/default.nix @@ -9,6 +9,9 @@ cabal.mkDerivation (self: { buildDepends = [ bktrees extensibleExceptions fgl graphviz pandoc random text time ]; + patchPhase = '' + sed -i Graphalyze.cabal -e 's|pandoc == 1.8.\*|pandoc|' + ''; meta = { description = "Graph-Theoretic Analysis library"; license = "unknown"; From a1cd71b5af2ecfb24f5bdb58ca0096d27a35393e Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 14:27:37 +0000 Subject: [PATCH 156/179] haskell-HaskellForMaths: updated to version 0.4.3 svn path=/nixpkgs/trunk/; revision=32059 --- .../development/libraries/haskell/HaskellForMaths/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/HaskellForMaths/default.nix b/pkgs/development/libraries/haskell/HaskellForMaths/default.nix index e55619fb3abd..25143e647bb7 100644 --- a/pkgs/development/libraries/haskell/HaskellForMaths/default.nix +++ b/pkgs/development/libraries/haskell/HaskellForMaths/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "HaskellForMaths"; - version = "0.4.1"; - sha256 = "0jwdxz5wqayx196giv7nj5j0k9zw50x555ig6xj00cladvplvh9h"; + version = "0.4.3"; + sha256 = "00s502h3pw9i464qn6cn74ihghcnn5gsar891q276ld682m5vdns"; buildDepends = [ random ]; meta = { homepage = "http://haskellformaths.blogspot.com/"; From 84a2bcfb26db3fd7444839062c640130c2468b44 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 14:27:40 +0000 Subject: [PATCH 157/179] haskell-OpenGLRaw: updated to version 1.2.0.0 svn path=/nixpkgs/trunk/; revision=32060 --- pkgs/development/libraries/haskell/OpenGLRaw/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/OpenGLRaw/default.nix b/pkgs/development/libraries/haskell/OpenGLRaw/default.nix index 3a86955a4383..70c25ea9ac6e 100644 --- a/pkgs/development/libraries/haskell/OpenGLRaw/default.nix +++ b/pkgs/development/libraries/haskell/OpenGLRaw/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "OpenGLRaw"; - version = "1.1.0.2"; - sha256 = "0d1rjh2vq0w1pzf3vz0mw6p0w43h3sf6034qsi89m4jkx3125fwf"; + version = "1.2.0.0"; + sha256 = "1nwk93wlwh7gz2lb1dc88frmwik71g61a7k8xfiib2q5a8a8kf9r"; extraLibraries = [ mesa ]; meta = { homepage = "http://www.haskell.org/haskellwiki/Opengl"; From 9cacf79ac0fe94daf5c715b64b548eb5798007fe Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 14:27:42 +0000 Subject: [PATCH 158/179] haskell-highlighting-kate: updated to version 0.5.0.1 svn path=/nixpkgs/trunk/; revision=32061 --- .../libraries/haskell/highlighting-kate/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/haskell/highlighting-kate/default.nix b/pkgs/development/libraries/haskell/highlighting-kate/default.nix index ecaf46c0b77c..a4f7e906a9ea 100644 --- a/pkgs/development/libraries/haskell/highlighting-kate/default.nix +++ b/pkgs/development/libraries/haskell/highlighting-kate/default.nix @@ -1,12 +1,12 @@ -{ cabal, parsec, regexPcreBuiltin, xhtml }: +{ cabal, blazeHtml, mtl, parsec, regexPcreBuiltin }: cabal.mkDerivation (self: { pname = "highlighting-kate"; - version = "0.2.10"; - sha256 = "0cw89qsslrp4zh47ics7bg79fkqnxpnyz1a9xws0xzd9xmg3zrhh"; + version = "0.5.0.1"; + sha256 = "05r8w4366gi64l65k6vyda1cs96ld8i2dgch8r5fmxwiaa8dcs1l"; isLibrary = true; isExecutable = true; - buildDepends = [ parsec regexPcreBuiltin xhtml ]; + buildDepends = [ blazeHtml mtl parsec regexPcreBuiltin ]; meta = { homepage = "http://github.com/jgm/highlighting-kate"; description = "Syntax highlighting"; From 6b7de9b5fcc89349647df2d94db081733637fb1b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 14:27:44 +0000 Subject: [PATCH 159/179] haskell-pandoc-types: updated to version 1.9.0.2 svn path=/nixpkgs/trunk/; revision=32062 --- pkgs/development/libraries/haskell/pandoc-types/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/pandoc-types/default.nix b/pkgs/development/libraries/haskell/pandoc-types/default.nix index 6d5720658ceb..063fe6f45c56 100644 --- a/pkgs/development/libraries/haskell/pandoc-types/default.nix +++ b/pkgs/development/libraries/haskell/pandoc-types/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "pandoc-types"; - version = "1.8.2"; - sha256 = "04whkqld2pnfz25i9rcq7d4pi9zkn6c1rpz95vdlg9r5xkhhnn3a"; + version = "1.9.0.2"; + sha256 = "1rqqchxinjk3njgkp73i92q4iz1cl84p56i2fmgj2zn221r0zhyl"; buildDepends = [ syb ]; meta = { homepage = "http://johnmacfarlane.net/pandoc"; From f11b58a1b1b41747330e59714e1551e7036ef13f Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 14:27:47 +0000 Subject: [PATCH 160/179] haskell-pandoc: updated to version 1.9.0.2 svn path=/nixpkgs/trunk/; revision=32063 --- .../libraries/haskell/pandoc/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/haskell/pandoc/default.nix b/pkgs/development/libraries/haskell/pandoc/default.nix index 455baa9ee1d3..480a90b71351 100644 --- a/pkgs/development/libraries/haskell/pandoc/default.nix +++ b/pkgs/development/libraries/haskell/pandoc/default.nix @@ -1,18 +1,19 @@ -{ cabal, base64Bytestring, citeprocHs, dlist, extensibleExceptions -, highlightingKate, HTTP, json, mtl, network, pandocTypes, parsec -, random, syb, tagsoup, texmath, utf8String, xhtml, xml, zipArchive +{ cabal, base64Bytestring, blazeHtml, citeprocHs +, extensibleExceptions, highlightingKate, HTTP, json, mtl, network +, pandocTypes, parsec, random, syb, tagsoup, temporary, texmath +, time, utf8String, xml, zipArchive, zlib }: cabal.mkDerivation (self: { pname = "pandoc"; - version = "1.8.2.1"; - sha256 = "0cwly0j2rj46h654iwl04l6jkhk6rrhynqvrdnq47067n9vm60pi"; + version = "1.9.0.2"; + sha256 = "0p1haqya99r52k6c07zq89ifdjs1r5g1y44011114pwsxwkmv43f"; isLibrary = true; isExecutable = true; buildDepends = [ - base64Bytestring citeprocHs dlist extensibleExceptions + base64Bytestring blazeHtml citeprocHs extensibleExceptions highlightingKate HTTP json mtl network pandocTypes parsec random - syb tagsoup texmath utf8String xhtml xml zipArchive + syb tagsoup temporary texmath time utf8String xml zipArchive zlib ]; configureFlags = "-fhighlighting -fthreaded"; meta = { From 1eb5674ebf279e1e677c06fcc4c689f3ed8bf569 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 14:27:49 +0000 Subject: [PATCH 161/179] haskell-parsimony: updated to version 1.3 svn path=/nixpkgs/trunk/; revision=32064 --- pkgs/development/libraries/haskell/parsimony/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/haskell/parsimony/default.nix b/pkgs/development/libraries/haskell/parsimony/default.nix index 70709c978b97..55bc7f74d297 100644 --- a/pkgs/development/libraries/haskell/parsimony/default.nix +++ b/pkgs/development/libraries/haskell/parsimony/default.nix @@ -1,10 +1,10 @@ -{ cabal, utf8String }: +{ cabal, text }: cabal.mkDerivation (self: { pname = "parsimony"; - version = "1.1"; - sha256 = "0476zmsjyjf58lh85806baqblq8hjxcrrnqc6ddxxq17lmvsd5ic"; - buildDepends = [ utf8String ]; + version = "1.3"; + sha256 = "0vbayvk989m85qfxxls74rn0v8ylb5l7lywp30sw2wybvi4r08lg"; + buildDepends = [ text ]; meta = { description = "Monadic parser combinators derived from Parsec"; license = self.stdenv.lib.licenses.bsd3; From 84bfd464d0ab0d06a14be099bc0e441bb3a46d2a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 14:27:52 +0000 Subject: [PATCH 162/179] haskell-system-fileio: updated to version 0.3.4 svn path=/nixpkgs/trunk/; revision=32065 --- .../libraries/haskell/system-fileio/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/haskell/system-fileio/default.nix b/pkgs/development/libraries/haskell/system-fileio/default.nix index 844864ac1031..cd514f7ce232 100644 --- a/pkgs/development/libraries/haskell/system-fileio/default.nix +++ b/pkgs/development/libraries/haskell/system-fileio/default.nix @@ -2,12 +2,12 @@ cabal.mkDerivation (self: { pname = "system-fileio"; - version = "0.3.3"; - sha256 = "0z7y99g8ij9ykpxsgdb0addyibvpv2s95i0wpx4yc7mgi8cl50bx"; + version = "0.3.4"; + sha256 = "184f5bb3qhag6cwmk0zc2ldkwnkzbv82pv7hy541j8jqqi5wprih"; buildDepends = [ systemFilepath text time ]; meta = { - homepage = "https://john-millikin.com/software/hs-fileio/"; - description = "High-level filesystem interaction"; + homepage = "https://john-millikin.com/software/haskell-filesystem/"; + description = "Consistent filesystem interaction across GHC versions"; license = self.stdenv.lib.licenses.mit; platforms = self.ghc.meta.platforms; maintainers = [ From 9a2922dec5e99aa70a3718f500555ae6fa11062c Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 14:27:54 +0000 Subject: [PATCH 163/179] haskell-system-filepath: updated to version 0.4.5 svn path=/nixpkgs/trunk/; revision=32066 --- .../development/libraries/haskell/system-filepath/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/system-filepath/default.nix b/pkgs/development/libraries/haskell/system-filepath/default.nix index ee42d3415f25..e0ad17c6acbb 100644 --- a/pkgs/development/libraries/haskell/system-filepath/default.nix +++ b/pkgs/development/libraries/haskell/system-filepath/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "system-filepath"; - version = "0.4.4"; - sha256 = "16904xwbcy82ghf1bckw8h63pfj9jfbdlqrr8jf91jzl27lqlwxf"; + version = "0.4.5"; + sha256 = "18jpn3pyy6dh20xpdlwmhcjvbywjz4vr9fvwcwhylbicrw627ybs"; buildDepends = [ deepseq text ]; meta = { homepage = "https://john-millikin.com/software/haskell-filesystem/"; From 066cd10d999324bafc32177b06d65f98f514149d Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 14:27:57 +0000 Subject: [PATCH 164/179] haskell-texmath: updated to version 0.6.0.1 svn path=/nixpkgs/trunk/; revision=32067 --- pkgs/development/libraries/haskell/texmath/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/haskell/texmath/default.nix b/pkgs/development/libraries/haskell/texmath/default.nix index 032f79ce077e..b72c5ceee04e 100644 --- a/pkgs/development/libraries/haskell/texmath/default.nix +++ b/pkgs/development/libraries/haskell/texmath/default.nix @@ -2,14 +2,14 @@ cabal.mkDerivation (self: { pname = "texmath"; - version = "0.5.0.4"; - sha256 = "0wi7zix10p73hb8aiyq47d27k5hi0l0ba5p6h7kdbhia9xm5w5w5"; + version = "0.6.0.1"; + sha256 = "0q39a83g7kcj9qpnjg0v7pd0b4w9i090nl2s9v8lpv4n46z6cyaq"; isLibrary = true; isExecutable = true; buildDepends = [ parsec syb xml ]; meta = { homepage = "http://github.com/jgm/texmath"; - description = "Conversion of LaTeX math formulas to MathML"; + description = "Conversion of LaTeX math formulas to MathML or OMML"; license = "GPL"; platforms = self.ghc.meta.platforms; maintainers = [ From ad07ce6e6780c6459c8b4718f6674161f6bdd7b0 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 14:27:59 +0000 Subject: [PATCH 165/179] haskell-vector-algorithms: updated to version 0.5.4 svn path=/nixpkgs/trunk/; revision=32068 --- .../libraries/haskell/vector-algorithms/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/vector-algorithms/default.nix b/pkgs/development/libraries/haskell/vector-algorithms/default.nix index 3688bb12c28c..6988cae02769 100644 --- a/pkgs/development/libraries/haskell/vector-algorithms/default.nix +++ b/pkgs/development/libraries/haskell/vector-algorithms/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "vector-algorithms"; - version = "0.5.3"; - sha256 = "14h2x3yrb4fji8bf84xbfp84pax6lzr8njc0c4061xpwcmair36j"; + version = "0.5.4"; + sha256 = "0j16jmnmgksbzsq2vvxjmciywi91clak77i6zjjghvn9dpmnsmv2"; buildDepends = [ primitive vector ]; meta = { homepage = "http://code.haskell.org/~dolio/"; From 31298a29ae7dc188db7015d6d5e71d86a1e54ca1 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 14:28:02 +0000 Subject: [PATCH 166/179] haskell-hlint: updated to version 1.8.23 svn path=/nixpkgs/trunk/; revision=32069 --- pkgs/development/tools/haskell/hlint/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/haskell/hlint/default.nix b/pkgs/development/tools/haskell/hlint/default.nix index 47034c6ebce0..180d0057e1b0 100644 --- a/pkgs/development/tools/haskell/hlint/default.nix +++ b/pkgs/development/tools/haskell/hlint/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "hlint"; - version = "1.8.21"; - sha256 = "1vjl1qncxia9352469k9v28283f17xk0xhb28by6crchz596xln6"; + version = "1.8.23"; + sha256 = "0cbjnzs9ddk4z7kxh935x1kvr566afcvk98z3174f3xp5sbz79wr"; isLibrary = true; isExecutable = true; buildDepends = [ From 14e803ff8ad6098d762d5520da12aa6e02e3f65b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 18:28:12 +0000 Subject: [PATCH 167/179] haskell-test-framework: added version 0.4.2.2 (required by pandoc) svn path=/nixpkgs/trunk/; revision=32072 --- .../haskell/test-framework/0.4.2.2.nix | 25 +++++++++++++++++++ .../test-framework/{default.nix => 0.5.nix} | 0 pkgs/top-level/haskell-packages.nix | 4 ++- 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/libraries/haskell/test-framework/0.4.2.2.nix rename pkgs/development/libraries/haskell/test-framework/{default.nix => 0.5.nix} (100%) diff --git a/pkgs/development/libraries/haskell/test-framework/0.4.2.2.nix b/pkgs/development/libraries/haskell/test-framework/0.4.2.2.nix new file mode 100644 index 000000000000..4b920133ffd9 --- /dev/null +++ b/pkgs/development/libraries/haskell/test-framework/0.4.2.2.nix @@ -0,0 +1,25 @@ +{ cabal, ansiTerminal, ansiWlPprint, extensibleExceptions, hostname +, random, regexPosix, time, xml +}: + +cabal.mkDerivation (self: { + pname = "test-framework"; + version = "0.4.2.2"; + sha256 = "1lwdx4z9j5wxbmmlakf6knirdhi0ic6xpmhrj9ipa5ybw2zszakr"; + isLibrary = true; + isExecutable = true; + buildDepends = [ + ansiTerminal ansiWlPprint extensibleExceptions hostname random + regexPosix time xml + ]; + meta = { + homepage = "http://batterseapower.github.com/test-framework/"; + description = "Framework for running and organising tests, with HUnit and QuickCheck support"; + 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/test-framework/default.nix b/pkgs/development/libraries/haskell/test-framework/0.5.nix similarity index 100% rename from pkgs/development/libraries/haskell/test-framework/default.nix rename to pkgs/development/libraries/haskell/test-framework/0.5.nix diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 294fa00d17d1..30539d748c44 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1325,7 +1325,9 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); terminfo = callPackage ../development/libraries/haskell/terminfo {}; - testFramework = callPackage ../development/libraries/haskell/test-framework {}; + testFramework_0_4_2_2 = callPackage ../development/libraries/haskell/test-framework/0.4.2.2.nix {}; + testFramework_0_5 = callPackage ../development/libraries/haskell/test-framework/0.5.nix {}; + testFramework = self.testFramework_0_5; testFrameworkHunit = callPackage ../development/libraries/haskell/test-framework-hunit {}; From efa830e5c480d2e6fdadea53722fa3c12ca2aef1 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 18:28:16 +0000 Subject: [PATCH 168/179] haskell-temporary: updated meta section svn path=/nixpkgs/trunk/; revision=32073 --- pkgs/development/libraries/haskell/temporary/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/haskell/temporary/default.nix b/pkgs/development/libraries/haskell/temporary/default.nix index 7266584cea57..fd31d2460046 100644 --- a/pkgs/development/libraries/haskell/temporary/default.nix +++ b/pkgs/development/libraries/haskell/temporary/default.nix @@ -9,5 +9,9 @@ cabal.mkDerivation (self: { description = "Portable temporary file and directory support for Windows and Unix, based on code from Cabal"; license = self.stdenv.lib.licenses.bsd3; platforms = self.ghc.meta.platforms; + maintainers = [ + self.stdenv.lib.maintainers.andres + self.stdenv.lib.maintainers.simons + ]; }; }) From bb5f77cfaafbaeb1a3438cd7445349199dc1074e Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 18:28:19 +0000 Subject: [PATCH 169/179] haskell-pandoc: updated to version 1.9.0.3 svn path=/nixpkgs/trunk/; revision=32074 --- .../libraries/haskell/pandoc/default.nix | 22 +++++++++++-------- pkgs/top-level/haskell-packages.nix | 4 +++- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/pkgs/development/libraries/haskell/pandoc/default.nix b/pkgs/development/libraries/haskell/pandoc/default.nix index 480a90b71351..de998c51b93c 100644 --- a/pkgs/development/libraries/haskell/pandoc/default.nix +++ b/pkgs/development/libraries/haskell/pandoc/default.nix @@ -1,19 +1,23 @@ -{ cabal, base64Bytestring, blazeHtml, citeprocHs -, extensibleExceptions, highlightingKate, HTTP, json, mtl, network -, pandocTypes, parsec, random, syb, tagsoup, temporary, texmath -, time, utf8String, xml, zipArchive, zlib +{ cabal, ansiTerminal, base64Bytestring, blazeHtml, citeprocHs +, Diff, extensibleExceptions, highlightingKate, HTTP, HUnit, json +, mtl, network, pandocTypes, parsec, QuickCheck, random, syb +, tagsoup, temporary, testFramework, testFrameworkHunit +, testFrameworkQuickcheck2, texmath, time, utf8String, xml +, zipArchive, zlib }: cabal.mkDerivation (self: { pname = "pandoc"; - version = "1.9.0.2"; - sha256 = "0p1haqya99r52k6c07zq89ifdjs1r5g1y44011114pwsxwkmv43f"; + version = "1.9.0.3"; + sha256 = "1p5054sdvvgl38rr0ajfavr79rwr2l8jdrpzai329ksskkh1acdp"; isLibrary = true; isExecutable = true; buildDepends = [ - base64Bytestring blazeHtml citeprocHs extensibleExceptions - highlightingKate HTTP json mtl network pandocTypes parsec random - syb tagsoup temporary texmath time utf8String xml zipArchive zlib + ansiTerminal base64Bytestring blazeHtml citeprocHs Diff + extensibleExceptions highlightingKate HTTP HUnit json mtl network + pandocTypes parsec QuickCheck random syb tagsoup temporary + testFramework testFrameworkHunit testFrameworkQuickcheck2 texmath + time utf8String xml zipArchive zlib ]; configureFlags = "-fhighlighting -fthreaded"; meta = { diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 30539d748c44..f29eaeca9e2e 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1061,7 +1061,9 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); pathPieces_0_1_0 = callPackage ../development/libraries/haskell/path-pieces/0.1.0.nix {}; pathPieces = self.pathPieces_0_1_0; - pandoc = callPackage ../development/libraries/haskell/pandoc {}; + pandoc = callPackage ../development/libraries/haskell/pandoc { + testFramework = self.testFramework_0_4_2_2; + }; pandocTypes = callPackage ../development/libraries/haskell/pandoc-types {}; From fd12c85a3397c3d0e48954afee28ca4a447a2a82 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 18:28:22 +0000 Subject: [PATCH 170/179] haskell-hakyll: updated to version 3.2.6.0 svn path=/nixpkgs/trunk/; revision=32075 --- pkgs/development/libraries/haskell/hakyll/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/hakyll/default.nix b/pkgs/development/libraries/haskell/hakyll/default.nix index 97b2012eefd8..acb75b05ae94 100644 --- a/pkgs/development/libraries/haskell/hakyll/default.nix +++ b/pkgs/development/libraries/haskell/hakyll/default.nix @@ -5,8 +5,8 @@ cabal.mkDerivation (self: { pname = "hakyll"; - version = "3.2.5.1"; - sha256 = "1vb3jqasf6j10fk8afwrbd85dc4k9dx6zls5c6wn0wnh87r5987x"; + version = "3.2.6.0"; + sha256 = "1yg97kihfxb250vk9dm2v9sh197lc6qjil0j40zgcwpss96xynax"; buildDepends = [ binary blazeHtml citeprocHs cryptohash hamlet mtl pandoc parsec regexBase regexPcre snapCore snapServer tagsoup time From e6c4bcf8fb1f6f58a1fd98149895fbcda8c4eca8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 6 Feb 2012 19:06:47 +0000 Subject: [PATCH 171/179] Patched broadcom_sta with for kernels 2.6.39 and 3.2 Patches taken from Gentoo, builds OK now. svn path=/nixpkgs/trunk/; revision=32076 --- pkgs/os-specific/linux/broadcom-sta/default.nix | 2 +- .../linux/broadcom-sta/linux-2.6.39.patch | 11 +++++++++++ pkgs/os-specific/linux/broadcom-sta/linux-3.2.patch | 13 +++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 pkgs/os-specific/linux/broadcom-sta/linux-2.6.39.patch create mode 100644 pkgs/os-specific/linux/broadcom-sta/linux-3.2.patch diff --git a/pkgs/os-specific/linux/broadcom-sta/default.nix b/pkgs/os-specific/linux/broadcom-sta/default.nix index 67ae073c6c70..48ab458d402c 100644 --- a/pkgs/os-specific/linux/broadcom-sta/default.nix +++ b/pkgs/os-specific/linux/broadcom-sta/default.nix @@ -15,7 +15,7 @@ stdenv.mkDerivation { }; buildInputs = [ kernel ]; - patches = [ ./makefile.patch ]; + patches = [ ./makefile.patch ./linux-2.6.39.patch ./linux-3.2.patch ]; #++ stdenv.lib.optional #(! builtins.lessThan (builtins.compareVersions kernel.version "2.6.37") 0) #[ ./mutex-sema.patch ]; diff --git a/pkgs/os-specific/linux/broadcom-sta/linux-2.6.39.patch b/pkgs/os-specific/linux/broadcom-sta/linux-2.6.39.patch new file mode 100644 index 000000000000..ca07c918c360 --- /dev/null +++ b/pkgs/os-specific/linux/broadcom-sta/linux-2.6.39.patch @@ -0,0 +1,11 @@ +--- old/src/wl/sys/wl_cfg80211.c ++++ new/src/wl/sys/wl_cfg80211.c +@@ -1811,7 +1811,7 @@ + notif_bss_info->frame_len = offsetof(struct ieee80211_mgmt, u.beacon.variable) + + wl_get_ielen(wl); + freq = ieee80211_channel_to_frequency(notif_bss_info->channel +-#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39) + ,(notif_bss_info->channel <= CH_MAX_2G_CHANNEL) ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ + #endif + ); diff --git a/pkgs/os-specific/linux/broadcom-sta/linux-3.2.patch b/pkgs/os-specific/linux/broadcom-sta/linux-3.2.patch new file mode 100644 index 000000000000..b491537cb86f --- /dev/null +++ b/pkgs/os-specific/linux/broadcom-sta/linux-3.2.patch @@ -0,0 +1,13 @@ +diff -Naur broadcom-sta-5.100.82.112.orig/src/wl/sys/wl_linux.c broadcom-sta-5.100.82.112/src/wl/sys/wl_linux.c +--- broadcom-sta-5.100.82.112.orig/src/wl/sys/wl_linux.c 2011-10-23 01:56:55.000000000 +0900 ++++ broadcom-sta-5.100.82.112/src/wl/sys/wl_linux.c 2011-11-22 00:56:07.021520421 +0900 +@@ -385,7 +385,9 @@ + #endif + .ndo_get_stats = wl_get_stats, + .ndo_set_mac_address = wl_set_mac_address, ++#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0) + .ndo_set_multicast_list = wl_set_multicast_list, ++#endif + .ndo_do_ioctl = wl_ioctl + }; + From 1b85da5ae380e62c8fbe19605327914c555d4deb Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 19:08:48 +0000 Subject: [PATCH 172/179] ghc-mod: upgraded to 1.0.8 svn path=/nixpkgs/trunk/; revision=32077 --- pkgs/development/libraries/haskell/ghc-mod/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/ghc-mod/default.nix b/pkgs/development/libraries/haskell/ghc-mod/default.nix index 945e9ee35e03..2566e098656a 100644 --- a/pkgs/development/libraries/haskell/ghc-mod/default.nix +++ b/pkgs/development/libraries/haskell/ghc-mod/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "ghc-mod"; - version = "1.0.6"; - sha256 = "c075314de03209827a0e59ee3e63a4d21bc8edb024a1e36721eea248805b38ba"; + version = "1.0.8"; + sha256 = "1c1236a8829418cae3039c3479875104664827c661b8c7567dd7bdbda12e8bcc"; buildDepends = [ attoparsec attoparsecEnumerator ghcPaths hlint regexPosix ]; From 4bfbdda33240ebbbf306d8233ddd48430947b45d Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 19:08:52 +0000 Subject: [PATCH 173/179] frandom: very fast random number generator kernel module nixos support via services.frandom.enable svn path=/nixpkgs/trunk/; revision=32078 --- pkgs/os-specific/linux/frandom/default.nix | 44 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/os-specific/linux/frandom/default.nix diff --git a/pkgs/os-specific/linux/frandom/default.nix b/pkgs/os-specific/linux/frandom/default.nix new file mode 100644 index 000000000000..9f07e7c8eb09 --- /dev/null +++ b/pkgs/os-specific/linux/frandom/default.nix @@ -0,0 +1,44 @@ +{ stdenv, fetchurl, kernel }: + +stdenv.mkDerivation rec { + name = "frandom-1.1"; + + src = fetchurl { + url = "http://sourceforge.net/projects/frandom/files/${name}.tar.gz"; + sha256 = "15rgyk4hfawqg7z1spk2xlk1nn6rcdls8gdhc70f91shrc9pvlls"; + }; + + preBuild = '' + kernelVersion=$(cd ${kernel}/lib/modules && ls) + substituteInPlace Makefile \ + --replace "\$(shell uname -r)" "$kernelVersion" \ + --replace "/lib/modules" "${kernel}/lib/modules" + ''; + + installPhase = '' + kernelVersion=$(cd ${kernel}/lib/modules && ls) + ensureDir $out/lib/modules/$kernelVersion/misc + cp frandom.ko $out/lib/modules/$kernelVersion/misc + + ensureDir $out/lib/udev/rules.d + tee $out/lib/udev/rules.d/10-frandom.rules <<-EOF + # + # These are the rules for the frandom devices. In theory, we could let + # udev's catch-all rule create the /dev node based upon the kernel name, + # which gives correct result, except that the default MODE set in + # 50-udev.rules (0600) is too restrictive. + # + KERNEL=="[ef]random", MODE="444", OPTIONS="last_rule" + EOF + ''; + + buildInputs = []; + + meta = { + description = "A very fast random number generator kernel module."; + homepage = http://frandom.sourceforge.net/; + license = "GPLv2"; + maintainers = [ stdenv.lib.maintainers.bluescreen303 ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 35e92a9c25b1..84508fb2a2d7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5871,6 +5871,8 @@ let inherit (gtkLibs) gtkmm; }; + frandom = callPackage ../os-specific/linux/frandom { }; + iscsitarget = callPackage ../os-specific/linux/iscsitarget { }; iwlwifi = callPackage ../os-specific/linux/iwlwifi { }; From 66a133058954816ab2727de666ab34a386c3da4d Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 19:08:56 +0000 Subject: [PATCH 174/179] v8/nodejs: upgraded to 3.6.6.20 and 0.6.9 svn path=/nixpkgs/trunk/; revision=32079 --- pkgs/development/libraries/v8/default.nix | 4 ++-- pkgs/development/web/nodejs/default.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/v8/default.nix b/pkgs/development/libraries/v8/default.nix index 3dbdea9c96ba..7024478afaec 100644 --- a/pkgs/development/libraries/v8/default.nix +++ b/pkgs/development/libraries/v8/default.nix @@ -5,14 +5,14 @@ assert readline != null; let system = stdenv.system; arch = if system == "i686-linux" then "ia32" else if system == "x86_64-linux" then "x64" else ""; - version = "3.6.6.17"; + version = "3.6.6.20"; in assert system == "i686-linux" || system == "x86_64-linux"; stdenv.mkDerivation rec { name = "v8-${version}"; src = fetchsvn { url = "http://v8.googlecode.com/svn/tags/${version}"; - sha256 = "7080d53b9d3aefc591c2e181dcf97d538ce36177284fc658eca6420ea36a926f"; + sha256 = "68565086baa5a37a0fa15e1c0b7914210fa590b29a8196014cd83789da6a01ba"; }; buildInputs = [python scons readline makeWrapper]; diff --git a/pkgs/development/web/nodejs/default.nix b/pkgs/development/web/nodejs/default.nix index c7fe9158ffe9..914b2cc26c3b 100644 --- a/pkgs/development/web/nodejs/default.nix +++ b/pkgs/development/web/nodejs/default.nix @@ -1,12 +1,12 @@ { stdenv, fetchurl, openssl, python, zlib, v8 }: stdenv.mkDerivation rec { - version = "0.6.6"; + version = "0.6.9"; name = "nodejs-${version}"; src = fetchurl { url = "http://nodejs.org/dist/v${version}/node-v${version}.tar.gz"; - sha256 = "00i14bjhyadxrh0df1ig4ndv1c0b7prnnhyar5lxcgxnn4cabgks"; + sha256 = "484ab6b3da6195339544c16aff17f747aa85d1dd15d765d6724aa8a4ecda03ca"; }; configureFlags = [ From ace10956399b14b1cadd425c7bdfd9f8884baa6a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 19:08:58 +0000 Subject: [PATCH 175/179] upgraded emacs-w3m svn path=/nixpkgs/trunk/; revision=32080 --- pkgs/applications/editors/emacs-modes/emacs-w3m/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/editors/emacs-modes/emacs-w3m/default.nix b/pkgs/applications/editors/emacs-modes/emacs-w3m/default.nix index 2e182170b191..a7ff4e624a11 100644 --- a/pkgs/applications/editors/emacs-modes/emacs-w3m/default.nix +++ b/pkgs/applications/editors/emacs-modes/emacs-w3m/default.nix @@ -1,6 +1,6 @@ { fetchcvs, stdenv, emacs, w3m, imagemagick, texinfo, autoconf }: -let date = "2009-07-09"; in +let date = "2012-01-15"; in stdenv.mkDerivation rec { name = "emacs-w3m-cvs${date}"; From 5a34b4f9a1983ca6653b1a4ca83538b7f15ded33 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 19:09:01 +0000 Subject: [PATCH 176/179] uhc: upgraded to 1.1.3 svn path=/nixpkgs/trunk/; revision=32081 --- pkgs/development/compilers/uhc/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/uhc/default.nix b/pkgs/development/compilers/uhc/default.nix index 75ca05f85694..8cd0a2e7944e 100644 --- a/pkgs/development/compilers/uhc/default.nix +++ b/pkgs/development/compilers/uhc/default.nix @@ -3,7 +3,7 @@ }: let - revision = "2399"; + revision = "2426"; in stdenv.mkDerivation { name = "uhc-svn-${revision}"; @@ -11,7 +11,7 @@ stdenv.mkDerivation { src = fetchsvn { url = "https://subversion.cs.uu.nl/repos/project.UHC.pub/trunk/EHC"; rev = revision; - sha256 = "f4e87dbf95f90b021994b0840f27e042dd4e785df7efedcf567f3e2c7ce32621"; + sha256 = "06963edb673697f3eac357eccdc6d4bf7fbe7b9b92a96e3e329a4caf53f85c4c"; }; propagatedBuildInputs = [mtl network binary fgl syb]; From 796f0ad5bc03b7eaf47b77619f109fec098337ab Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 19:09:04 +0000 Subject: [PATCH 177/179] i7z: better cpu frequency/turbo boost checker for intel core i{3,5,7} svn path=/nixpkgs/trunk/; revision=32082 --- pkgs/os-specific/linux/i7z/default.nix | 40 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 42 insertions(+) create mode 100644 pkgs/os-specific/linux/i7z/default.nix diff --git a/pkgs/os-specific/linux/i7z/default.nix b/pkgs/os-specific/linux/i7z/default.nix new file mode 100644 index 000000000000..2d0fde3c7836 --- /dev/null +++ b/pkgs/os-specific/linux/i7z/default.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchurl, qt4, ncurses}: + +stdenv.mkDerivation rec { + name = "i7z-0.27.1"; + + src = fetchurl { + url = "http://i7z.googlecode.com/files/${name}.tar.gz"; + sha256 = "0n3pry1qmpq4basnny3gddls2zlwz0813ixnas87092rvlgjhbc6"; + }; + + buildInputs = [qt4 ncurses]; + + patchPhase = '' + substituteInPlace Makefile --replace "/usr/sbin" "$out/sbin" + ''; + + buildPhase = '' + make + cd GUI + qmake + make clean + make + cd .. + ''; + + installPhase = '' + pwd + ensureDir $out/sbin + make install + install -Dm755 GUI/i7z_GUI $out/sbin/i7z-gui + ''; + + meta = { + description = "A better i7 (and now i3, i5) reporting tool for Linux"; + homepage = http://code.google.com/p/i7z; + license = "GPLv2"; + maintainers = [ stdenv.lib.maintainers.bluescreen303 ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 84508fb2a2d7..aea2b18edc3e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5390,6 +5390,8 @@ let hwdata = callPackage ../os-specific/linux/hwdata { }; + i7z = callPackage ../os-specific/linux/i7z { }; + ifplugd = callPackage ../os-specific/linux/ifplugd { }; iotop = callPackage ../os-specific/linux/iotop { }; From febe7260207698eef44c2bb335f3991df1f679d9 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 19:45:18 +0000 Subject: [PATCH 178/179] duplicity: updated to version 0.6.17 svn path=/nixpkgs/trunk/; revision=32086 --- pkgs/tools/backup/duplicity/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/backup/duplicity/default.nix b/pkgs/tools/backup/duplicity/default.nix index c4cc84ba34fa..bb5ae55b904f 100644 --- a/pkgs/tools/backup/duplicity/default.nix +++ b/pkgs/tools/backup/duplicity/default.nix @@ -1,11 +1,11 @@ { stdenv, fetchurl, python, librsync, gnupg, boto, makeWrapper }: stdenv.mkDerivation { - name = "duplicity-0.6.16"; + name = "duplicity-0.6.17"; src = fetchurl { - url = http://code.launchpad.net/duplicity/0.6-series/0.6.16/+download/duplicity-0.6.16.tar.gz; - sha256 = "0n63857swqnq7i697p615dp37bsd5bj0gvlj5ng41584zzjmv328"; + url = "http://code.launchpad.net/duplicity/0.6-series/0.6.17/+download/duplicity-0.6.17.tar.gz"; + sha256 = "0n54fw55v4h0cjspgh9nhss5w18bfrib9fckgkk2fldi3835c7l9"; }; installPhase = '' @@ -21,9 +21,9 @@ stdenv.mkDerivation { meta = { description = "Encrypted bandwidth-efficient backup using the rsync algorithm"; - homepage = http://www.nongnu.org/duplicity; + homepage = "http://www.nongnu.org/duplicity"; license = "GPLv2+"; - maintainers = with stdenv.lib.maintainers; [viric]; + maintainers = with stdenv.lib.maintainers; [viric simons]; platforms = with stdenv.lib.platforms; linux; }; } From 4e3dcd925499547314567107366cae26a99c4ef7 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Feb 2012 21:26:46 +0000 Subject: [PATCH 179/179] esniper: updated to version 2.27.0 svn path=/nixpkgs/trunk/; revision=32087 --- pkgs/applications/networking/esniper/default.nix | 8 +++----- .../esniper/fix-build-with-latest-curl.patch | 10 ---------- 2 files changed, 3 insertions(+), 15 deletions(-) delete mode 100644 pkgs/applications/networking/esniper/fix-build-with-latest-curl.patch diff --git a/pkgs/applications/networking/esniper/default.nix b/pkgs/applications/networking/esniper/default.nix index 4c153fa6ff5a..dda0755a7383 100644 --- a/pkgs/applications/networking/esniper/default.nix +++ b/pkgs/applications/networking/esniper/default.nix @@ -1,17 +1,15 @@ { stdenv, fetchurl, openssl, curl }: stdenv.mkDerivation { - name = "esniper-2.26.0"; + name = "esniper-2.27.0"; src = fetchurl { - url = "mirror://sourceforge/esniper/esniper-2-26-0.tgz"; - sha256 = "5fd9a0f4b27b98deca303cd3d16c1ed060e05a165a40b2f4a9f8546db5e3877d"; + url = "mirror://sourceforge/esniper/esniper-2-27-0.tgz"; + sha256 = "0ca9946395be8958d3eb28c9abc4a1a4d4c9134e4b6b3c3816f4631e3be25c02"; }; buildInputs = [openssl curl]; - patches = [ ./fix-build-with-latest-curl.patch ]; - postInstall = '' sed -e "2i export PATH=\"$out/bin:\$PATH\"" <"frontends/snipe" >"$out/bin/snipe" chmod 555 "$out/bin/snipe" diff --git a/pkgs/applications/networking/esniper/fix-build-with-latest-curl.patch b/pkgs/applications/networking/esniper/fix-build-with-latest-curl.patch deleted file mode 100644 index 81005fd3ebe5..000000000000 --- a/pkgs/applications/networking/esniper/fix-build-with-latest-curl.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- esniper-2-26-0/http.c 2011-08-09 21:05:59.000000000 +0200 -+++ esniper/http.c 2011-08-10 00:24:43.000000000 +0200 -@@ -28,7 +28,6 @@ - #include "esniper.h" - #include - #include --#include - #include - #include - #include