diff --git a/pkgs/applications/audio/mpg321/default.nix b/pkgs/applications/audio/mpg321/default.nix index 23cc92132b95..4ca0cc8f8476 100644 --- a/pkgs/applications/audio/mpg321/default.nix +++ b/pkgs/applications/audio/mpg321/default.nix @@ -1,17 +1,20 @@ {stdenv, fetchurl, libao, libmad, libid3tag, zlib}: -stdenv.mkDerivation { - name = "mpg321-0.2.10"; +stdenv.mkDerivation rec { + name = "mpg321-0.2.13-2"; + src = fetchurl { - url = mirror://sourceforge/mpg321/mpg321-0.2.10.tar.gz; - sha256 = "db0c299592b8f1f704f41bd3fc3a2bf138658108588d51af61638c551af1b0d4"; + url = "mirror://sourceforge/mpg321/0.2.13/${name}.tar.gz"; + sha256 = "0zx9xyr97frlyrwyk2msm9h1sn2b84vqaxcy5drbzcd2n585lwlx"; }; buildInputs = [libao libid3tag libmad zlib]; meta = { - description = "Command-line MP3 player."; + description = "mpg321, a command-line MP3 player"; homepage = http://mpg321.sourceforge.net/; license = "GPLv2"; + maintainers = [ stdenv.lib.maintainers.ludo ]; + platforms = stdenv.lib.platforms.gnu; }; } diff --git a/pkgs/applications/editors/emacs-modes/bbdb/builder.sh b/pkgs/applications/editors/emacs-modes/bbdb/builder.sh deleted file mode 100644 index b860adbb745f..000000000000 --- a/pkgs/applications/editors/emacs-modes/bbdb/builder.sh +++ /dev/null @@ -1,12 +0,0 @@ -source "$stdenv/setup" || exit 1 - -unpackPhase && \ -cd bbdb-*.* && patchPhase && \ -./configure --prefix="$out" \ - --with-package-dir="$out/share/emacs/site-lisp" && \ -make && make install-pkg && \ -mkdir -p "$out/info" && \ -make -C texinfo install-pkg && \ -mv "$out/share/emacs/site-lisp/lisp/bbdb/"* \ - "$out/share/emacs/site-lisp" && \ -rm -rf "$out/share/emacs/site-lisp/lisp" diff --git a/pkgs/applications/editors/emacs-modes/bbdb/default.nix b/pkgs/applications/editors/emacs-modes/bbdb/default.nix index 51474a197174..52afebc6297b 100644 --- a/pkgs/applications/editors/emacs-modes/bbdb/default.nix +++ b/pkgs/applications/editors/emacs-modes/bbdb/default.nix @@ -11,7 +11,20 @@ stdenv.mkDerivation { patches = [ ./install-infodir.patch ]; buildInputs = [emacs texinfo ctags]; - builder = ./builder.sh; + configureFlags = "--with-package-dir=$$out/share/emacs/site-lisp"; + preInstall = "ensureDir $out/info"; + installTargets = "install-pkg texinfo"; + postInstall = '' + mv $out/info $out/share/ + mv "$out/share/emacs/site-lisp/lisp/bbdb/"* $out/share/emacs/site-lisp/ + mv $out/share/emacs/site-lisp/etc/bbdb $out/share/ + rm -rf $out/share/emacs/site-lisp/{lisp,etc} + mv bits $out/share/bbdb/ + # Make optional modules from bbdb available for import, but symlink + # them into the site-lisp directory to make it obvious that they are + # not a genuine part of the distribution. + ln -s "$out/share/bbdb/bits/"*.el $out/share/emacs/site-lisp/ + ''; meta = { description = "The Insidious Big Brother Database (BBDB), a contact management utility for Emacs"; diff --git a/pkgs/applications/misc/bitcoin/default.nix b/pkgs/applications/misc/bitcoin/default.nix index 42b69f37f79d..9d9ddb056daa 100644 --- a/pkgs/applications/misc/bitcoin/default.nix +++ b/pkgs/applications/misc/bitcoin/default.nix @@ -1,18 +1,18 @@ { fetchurl, stdenv, openssl, db4, boost, zlib, glib, libSM, gtk, wxGTK, miniupnpc }: stdenv.mkDerivation rec { - version = "0.3.22"; + version = "0.3.24"; name = "bitcoin-${version}"; src = fetchurl { - url = "mirror://sourceforge/project/bitcoin/Bitcoin/${name}/${name}-linux.tar.gz"; - sha256 = "1nyji3xjyvw91snnbxk71dih3yf292d7mvkakw0nkqplbap14xjb"; + url = "mirror://sourceforge/project/bitcoin/Bitcoin/${name}/${name}-src.tar.gz"; + sha256 = "18n8i37c478b275m2x82411i1fsw8l34qm1k65ynnw38fpaj4h3r"; }; buildInputs = [ openssl db4 boost zlib glib libSM gtk wxGTK miniupnpc ]; preConfigure = '' - cd src/src + cd src substituteInPlace makefile.unix \ --replace "-Wl,-Bstatic" "" \ --replace "-Wl,-Bdynamic" "" \ @@ -21,8 +21,6 @@ stdenv.mkDerivation rec { makefile = "makefile.unix"; - preBuild = "make -f ${makefile} clean"; - buildFlags = "bitcoin bitcoind"; installPhase = '' diff --git a/pkgs/applications/misc/ikiwiki/default.nix b/pkgs/applications/misc/ikiwiki/default.nix index 93748e21abad..c76efc9d1c53 100644 --- a/pkgs/applications/misc/ikiwiki/default.nix +++ b/pkgs/applications/misc/ikiwiki/default.nix @@ -1,6 +1,6 @@ -{ stdenv, fetchurl, perl, gettext, makeWrapper, lib, PerlMagick, - TextMarkdown, URI, HTMLParser, HTMLScrubber, HTMLTemplate, TimeDate, - CGISession, CGIFormBuilder, DBFile, LocaleGettext, RpcXML, XMLSimple +{ stdenv, fetchurl, perl, gettext, makeWrapper, lib, PerlMagick, YAML +, TextMarkdown, URI, HTMLParser, HTMLScrubber, HTMLTemplate, TimeDate +, CGISession, CGIFormBuilder, DBFile, LocaleGettext, RpcXML, XMLSimple , gitSupport ? false , git ? null , monotoneSupport ? false @@ -13,19 +13,19 @@ assert monotoneSupport -> (monotone != null); let name = "ikiwiki"; - version = "3.20100704"; + version = "3.20110707"; in stdenv.mkDerivation { name = "${name}-${version}"; src = fetchurl { url = "http://ftp.de.debian.org/debian/pool/main/i/ikiwiki/${name}_${version}.tar.gz"; - sha256 = "1kakh2bf9k0fhvqhn9p9g4wwck64if2y9z23zmlcrm02bw1m6lr9"; + sha256 = "b51fa7452a900212ab1c8c879227b83a688c10f770552aee61944695f8c6f1bf"; }; buildInputs = [ perl TextMarkdown URI HTMLParser HTMLScrubber HTMLTemplate TimeDate gettext makeWrapper DBFile CGISession CGIFormBuilder LocaleGettext - RpcXML XMLSimple PerlMagick] + RpcXML XMLSimple PerlMagick YAML] ++ stdenv.lib.optionals gitSupport [git] ++ stdenv.lib.optionals monotoneSupport [monotone]; @@ -42,11 +42,11 @@ stdenv.mkDerivation { configurePhase = "perl Makefile.PL PREFIX=$out"; postInstall = '' - for a in $out/bin/*; do + for a in "$out/bin/"*; do wrapProgram $a --suffix PERL5LIB : $PERL5LIB --prefix PATH : ${perl}/bin:$out/bin \ - ${lib.optionalString (git != null) + ${lib.optionalString gitSupport ''--prefix PATH : ${git}/bin \''} - ${lib.optionalString (monotone != null) + ${lib.optionalString monotoneSupport ''--prefix PATH : ${monotone}/bin \''} ${lib.concatMapStrings (x: "--prefix PATH : ${x}/bin ") extraUtils} done diff --git a/pkgs/applications/networking/browsers/firefox/5.0.nix b/pkgs/applications/networking/browsers/firefox/5.0.nix index 6b12025478cc..8e3d600feb22 100644 --- a/pkgs/applications/networking/browsers/firefox/5.0.nix +++ b/pkgs/applications/networking/browsers/firefox/5.0.nix @@ -15,14 +15,14 @@ assert stdenv.gcc ? libc && stdenv.gcc.libc != null; rec { - firefoxVersion = "5.0"; + firefoxVersion = "5.0.1"; - xulVersion = "5.0"; # this attribute is used by other packages + xulVersion = "5.0.1"; # 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 = "22b7b4751173c2142a0f09cca1aebc717d97b45a"; + sha1 = "c93b3513e160d87535a9d61c5e06a6a701e9cd3e"; }; diff --git a/pkgs/applications/networking/browsers/mozilla-plugins/flashplayer-10/default.nix b/pkgs/applications/networking/browsers/mozilla-plugins/flashplayer-10/default.nix index 2d1cc719fa8d..1a013d78d574 100644 --- a/pkgs/applications/networking/browsers/mozilla-plugins/flashplayer-10/default.nix +++ b/pkgs/applications/networking/browsers/mozilla-plugins/flashplayer-10/default.nix @@ -53,9 +53,9 @@ let url = http://download.macromedia.com/pub/labs/flashplayer10/flashplayer_square_p2_32bit_debug_linux_092710.tar.gz; sha256 = "11w3mxa39l4mnlsqzlwbdh1sald549afyqbx2kbid7in5qzamlcc"; } else { - version = "10.3.181.14"; + version = "10.3.181.34"; url = http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz; - sha256 = "00sh25g2h7yq9kwrqv9d0fgrd6n87i7biycgkxm46sh65mxb1aif"; + sha256 = "1k7gq0rynrv4vwr06dhjmhb633vm5a961bsqi6s8aqk61bdzhsia"; } else throw "flashplayer is not supported on this platform"; diff --git a/pkgs/applications/office/gnucash/default.nix b/pkgs/applications/office/gnucash/default.nix index 213e3fd0a457..3e20a350a791 100644 --- a/pkgs/applications/office/gnucash/default.nix +++ b/pkgs/applications/office/gnucash/default.nix @@ -1,39 +1,55 @@ -{ fetchurl, stdenv, pkgconfig, libxml2, gconf, glib, gtk -, libglade, libgnomeui, libgtkhtml, gtkhtml, libgnomeprint, goffice, enchant -, gettext, intltool, perl, guile, slibGuile, swig, isocodes, bzip2 -, makeWrapper }: +{ fetchurl, stdenv, pkgconfig, libxml2, gconf, glib, gtk, libgnomeui, libofx +, libgtkhtml, gtkhtml, libgnomeprint, goffice, enchant, gettext, libbonoboui +, intltool, perl, guile, slibGuile, swig, isocodes, bzip2, makeWrapper +}: -stdenv.mkDerivation rec { - name = "gnucash-2.2.9"; +/* If you experience GConf errors when running GnuCash on NixOS, see + * http://wiki.nixos.org/wiki/Solve_GConf_errors_when_running_GNOME_applications + * for a possible solution. + */ + +let + name = "gnucash-2.4.7"; +in +stdenv.mkDerivation { + inherit name; src = fetchurl { - url = "http://ftp.at.gnucash.org/pub/gnucash/gnucash/sources/stable/${name}.tar.bz2"; - sha256 = "0sj83mmshx50122n1i3y782p4b54k37n7sb4vldmqmhwww32925i"; + url = "mirror://sourceforge/gnucash/${name}.tar.bz2"; + sha256 = "eeb3b17f9081a544f8705db735df88ab3f468642a1d01552ea4e36bcb5b0730e"; }; buildInputs = [ - pkgconfig libxml2 gconf glib gtk - libglade libgnomeui libgtkhtml gtkhtml libgnomeprint goffice enchant - gettext intltool perl guile slibGuile swig isocodes bzip2 makeWrapper + pkgconfig libxml2 gconf glib gtk libgnomeui libgtkhtml gtkhtml + libgnomeprint goffice enchant gettext intltool perl guile slibGuile + swig isocodes bzip2 makeWrapper libofx ]; - preConfigure = '' - # The `.gnucash' directory, used by the test suite. - export GNC_DOT_DIR="$PWD/dot-gnucash" - echo "\$GNC_DOT_DIR set to \`$GNC_DOT_DIR'" - ''; + configureFlags = "CFLAGS=-O3 CXXFLAGS=-O3 --disable-dbi --enable-ofx"; postInstall = '' + sed -i $out/bin/update-gnucash-gconf \ + -e 's|--config-source=[^ ]* --install-schema-file|--makefile-install-rule|' for prog in "$out/bin/"* do - wrapProgram "$prog" \ - --set SCHEME_LIBRARY_PATH "$SCHEME_LIBRARY_PATH" \ - --prefix GUILE_LOAD_PATH ":" "$GUILE_LOAD_PATH" + wrapProgram "$prog" \ + --set SCHEME_LIBRARY_PATH "$SCHEME_LIBRARY_PATH" \ + --prefix GUILE_LOAD_PATH ":" "$GUILE_LOAD_PATH" \ + --prefix LD_LIBRARY_PATH ":" "${libgnomeui}/lib/libglade/2.0" \ + --prefix LD_LIBRARY_PATH ":" "${libbonoboui}/lib/libglade/2.0" \ + --set GCONF_CONFIG_SOURCE 'xml::~/.gconf' \ + --prefix PATH ":" "${gconf}/bin" \ + --suffix PATH ":" "$out/bin" done ''; + # The following settings fix failures in the test suite. It's not required otherwise. + NIX_LDFLAGS = "-rpath=${guile}/lib"; + preCheck = "export GNC_DOT_DIR=$PWD/dot-gnucash"; doCheck = true; + enableParallelBuilding = true; + meta = { description = "GnuCash, a personal and small-business financial-accounting application"; @@ -52,7 +68,7 @@ stdenv.mkDerivation rec { homepage = http://www.gnucash.org/; - maintainers = [ stdenv.lib.maintainers.ludo ]; + maintainers = [ stdenv.lib.maintainers.ludo stdenv.lib.maintainers.simons ]; platforms = stdenv.lib.platforms.gnu; }; } diff --git a/pkgs/applications/office/ledger/default.nix b/pkgs/applications/office/ledger/default.nix index 99b768c58e1e..c1cd4b42a02a 100644 --- a/pkgs/applications/office/ledger/default.nix +++ b/pkgs/applications/office/ledger/default.nix @@ -1,48 +1,53 @@ -# TODO: fix a problem with patchelf(?) +# Patchelf fails to hard-code the library paths to ledger's +# libamounts.so and libledger-2.6.3 shared objects: +# +# $ ldd ~/.nix-profile/bin/ledger +# linux-vdso.so.1 => (0x00007fff513ff000) +# libamounts.so.0 => not found +# libledger-2.6.3.so => not found +# libstdc++.so.6 => /nix/store/3r8kfi33y3lbrsvlx8vzwm74h8178y35-gcc-4.5.1/lib/../lib64/libstdc++.so.6 (0x00007f1f0feee000) +# libpcre.so.0 => /nix/store/kfhy189arpj3wrfzpgw8p9ac4g4hfgca-pcre-8.10/lib/libpcre.so.0 (0x00007f1f0fcd3000) +# libgmp.so.3 => /nix/store/ji6py9m9w2ray1bmpkmgig9llj1i2ggf-gmp-4.3.2/lib/libgmp.so.3 (0x00007f1f0fa7f000) +# libm.so.6 => /nix/store/vxycd107wjbhcj720hzkw2px7s7kr724-glibc-2.12.2/lib/libm.so.6 (0x00007f1f0f7fd000) +# libgcc_s.so.1 => /nix/store/3r8kfi33y3lbrsvlx8vzwm74h8178y35-gcc-4.5.1/lib/../lib64/libgcc_s.so.1 (0x00007f1f0f5e8000) +# libc.so.6 => /nix/store/vxycd107wjbhcj720hzkw2px7s7kr724-glibc-2.12.2/lib/libc.so.6 (0x00007f1f0f27d000) +# /nix/store/vxycd107wjbhcj720hzkw2px7s7kr724-glibc-2.12.2/lib/ld-linux-x86-64.so.2 (0x00007f1f101ef000) +# +# Fortunately, libtools builds the program with proper paths hard-coded +# alread, so we don't need patchelf. Phew! -{stdenv, fetchurl, emacs, gmp, pcre}: +{stdenv, fetchurl, emacs, gmp, pcre, expat}: let - - pname = "ledger"; - version = "2.6.3"; - name = "${pname}-${version}"; - + name = "ledger-2.6.3"; in - stdenv.mkDerivation { inherit name; src = fetchurl { - url = "https://github.com/downloads/jwiegley/ledger/ledger-${version}.tar.gz"; + url = "https://github.com/downloads/jwiegley/ledger/${name}.tar.gz"; sha256 = "05zpnypcwgck7lwk00pbdlcwa347xsqifxh4zsbbn01m98bx1v5k"; }; - buildInputs = [ emacs gmp pcre ]; + buildInputs = [ emacs gmp pcre expat ]; - patches = [ ./const.patch ]; - - # Something goes wrong with pathelf... - # this is a small workaround: adds a small shell script for - # setting LD_LIBRARY_PATH - postInstall = '' - cd $out/bin - mv ledger ledger.bin - echo "#!/bin/sh" > ledger - echo "LD_LIBRARY_PATH=$out/lib $out/bin/ledger.bin "'"$@"' >> ledger - chmod +x ledger - ''; + configureFlags = "CPPFLAGS=-DNDEBUG CFLAGS=-O3 CXXFLAGS=-O3"; + dontPatchELF = true; + doCheck = true; meta = { - description = - "A double-entry accounting system with a command-line reporting interface"; + homepage = "http://ledger-cli.org/"; + description = "A double-entry accounting system with a command-line reporting interface"; + license = "BSD"; + longDescription = '' Ledger is a powerful, double-entry accounting system that is accessed from the UNIX command-line. This may put off some users, as there is no flashy UI, but for those who want unparalleled reporting access to their data, there really is no alternative. ''; - homepage = http://wiki.github.com/jwiegley/ledger; - license = "BSD"; + + platforms = stdenv.lib.platforms.all; + maintainers = [ stdenv.lib.maintainers.simons ]; }; } diff --git a/pkgs/applications/science/astronomy/gravit/default.nix b/pkgs/applications/science/astronomy/gravit/default.nix new file mode 100644 index 000000000000..8af963f84bc1 --- /dev/null +++ b/pkgs/applications/science/astronomy/gravit/default.nix @@ -0,0 +1,41 @@ +{ stdenv, fetchurl, SDL, SDL_ttf, SDL_image, mesa, lua5_0 }: + +let + name = "gravit-0.4.2"; +in +stdenv.mkDerivation { + inherit name; + + src = fetchurl { + url = "http://gravit.slowchop.com/dist/${name}.tar.gz"; + sha256 = "f37f3ac256a4acbf575f709addaae8cb01eda4f85537affa28c45f2df6fddb07"; + }; + + buildInputs = [mesa SDL SDL_ttf SDL_image lua5_0]; + + configureFlags = "CFLAGS=-O3 CXXFLAGS=-O3"; + + postInstall = '' + mv $out/etc/gravit $out/share/gravit/sample-config + rmdir $out/etc + ''; + + meta = { + homepage = "http://gravit.slowchop.com"; + description = "A beautiful OpenGL-based gravity simulator"; + license = "GPLv2"; + + longDescription = '' + Gravit is a gravity simulator which runs under Linux, Windows and + Mac OS X. It uses Newtonian physics using the Barnes-Hut N-body + algorithm. Although the main goal of Gravit is to be as accurate + as possible, it also creates beautiful looking gravity patterns. + It records the history of each particle so it can animate and + display a path of its travels. At any stage you can rotate your + view in 3D and zoom in and out. + ''; + + platforms = stdenv.lib.platforms.mesaPlatforms; + maintainers = [ stdenv.lib.maintainers.simons ]; + }; +} diff --git a/pkgs/applications/science/astronomy/stellarium/default.nix b/pkgs/applications/science/astronomy/stellarium/default.nix new file mode 100644 index 000000000000..0f2a104f80f7 --- /dev/null +++ b/pkgs/applications/science/astronomy/stellarium/default.nix @@ -0,0 +1,31 @@ +{stdenv, fetchurl, cmake, freetype, libpng, mesa, gettext, openssl, qt4, perl, libiconv}: + +let + name = "stellarium-0.11.0"; +in +stdenv.mkDerivation { + inherit name; + + src = fetchurl { + url = "mirror://sourceforge/stellarium/${name}.tar.gz"; + sha256 = "dbedf47dd0744fb325d67d63d1279101be7f4259af2a5e8027f1072012dd2587"; + }; + + buildInputs = [ cmake freetype libpng mesa gettext openssl qt4 perl libiconv ]; + + cmakeFlags = "-DINTL_INCLUDE_DIR= -DINTL_LIBRARIES="; + preConfigure = '' + sed -i -e '/typedef void (\*__GLXextFuncPtr)(void);/d' src/core/external/GLee.h + ''; + + enableParallelBuilding = true; + + meta = { + description = "an free open source planetarium"; + homepage = http://stellarium.org/; + license = "GPL2"; + + platforms = stdenv.lib.platforms.mesaPlatforms; + maintainers = [ stdenv.lib.maintainers.simons ]; + }; +} diff --git a/pkgs/applications/science/xplanet/default.nix b/pkgs/applications/science/astronomy/xplanet/default.nix similarity index 100% rename from pkgs/applications/science/xplanet/default.nix rename to pkgs/applications/science/astronomy/xplanet/default.nix diff --git a/pkgs/applications/science/math/eukleides/default.nix b/pkgs/applications/science/math/eukleides/default.nix new file mode 100644 index 000000000000..9f65bcb8c148 --- /dev/null +++ b/pkgs/applications/science/math/eukleides/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchurl, bison, flex, texinfo, readline, texLive }: + +let + name = "eukleides"; + version = "1.5.4"; +in +stdenv.mkDerivation { + name = "${name}-${version}"; + + src = fetchurl { + url = "http://www.eukleides.org/files/${name}-${version}.tar.bz2"; + sha256 = "0s8cyh75hdj89v6kpm3z24i48yzpkr8qf0cwxbs9ijxj1i38ki0q"; + }; + + buildInputs = [bison flex texinfo readline texLive]; + + preConfigure = "sed -i 's/ginstall-info/install-info/g' doc/Makefile"; + installPhase = "ensureDir $out/bin ; make PREFIX=$out install"; + + meta = { + description = "Geometry Drawing Language"; + homepage = "http://www.eukleides.org/"; + license = "GPLv2"; + + longDescription = '' + Eukleides is a computer language devoted to elementary plane + geometry. It aims to be a fairly comprehensive system to create + geometric figures, either static or dynamic. Eukleides allows to + handle basic types of data: numbers and strings, as well as + geometric types of data: points, vectors, sets (of points), lines, + circles and conics. + ''; + + platforms = stdenv.lib.platforms.all; + maintainers = [ stdenv.lib.maintainers.simons ]; + }; +} diff --git a/pkgs/applications/science/math/maxima/default.nix b/pkgs/applications/science/math/maxima/default.nix index 00f0ab25e4cd..0b71b72f13c7 100644 --- a/pkgs/applications/science/math/maxima/default.nix +++ b/pkgs/applications/science/math/maxima/default.nix @@ -1,8 +1,12 @@ -{ stdenv, fetchurl, clisp, texinfo, perl }: +{ stdenv, fetchurl, sbcl, texinfo, perl, makeWrapper, rlwrap ? null, tk ? null, gnuplot ? null }: let name = "maxima"; version = "5.24.0"; + + searchPath = + stdenv.lib.makeSearchPath "bin" + (stdenv.lib.filter (x: x != null) [ sbcl rlwrap tk gnuplot ]); in stdenv.mkDerivation { name = "${name}-${version}"; @@ -12,11 +16,25 @@ stdenv.mkDerivation { sha256 = "137crv2f6hxwqrv75m8679vrlbnqgg5ww755cs4kihs1cy03bssq"; }; - preConfigure = '' - configureFlags="--infodir=$out/share/info --mandir=$out/share/man" + buildInputs = [sbcl texinfo perl makeWrapper]; + + postInstall = '' + # Make sure that maxima can find its runtime dependencies. + for prog in "$out/bin/"*; do + wrapProgram "$prog" --prefix PATH ":" "${searchPath}" + done + # Move emacs modules and documentation into the right place. + ensureDir $out/share/emacs $out/share/doc + ln -s ../maxima/${version}/emacs $out/share/emacs/site-lisp + ln -s ../maxima/${version}/doc $out/share/doc/maxima ''; - buildInputs = [clisp texinfo perl]; + # The regression test suite has minor failures, but curiously enough + # this doesn't seem to abort the build process: + # . + doCheck = true; + + enableParallelBuilding = true; meta = { description = "Maxima computer algebra system"; diff --git a/pkgs/applications/science/math/wxmaxima/default.nix b/pkgs/applications/science/math/wxmaxima/default.nix index 54acf16ee89d..6bd6e9266e6b 100644 --- a/pkgs/applications/science/math/wxmaxima/default.nix +++ b/pkgs/applications/science/math/wxmaxima/default.nix @@ -1,8 +1,4 @@ -{ stdenv, fetchurl, maxima, wxGTK }: - -# TODO: Build the correct ${maxima}/bin/maxima store path into wxMaxima so that -# it can run that binary without relying on $PATH, /etc/wxMaxima.conf, or -# ~/.wxMaxima. +{ stdenv, fetchurl, maxima, wxGTK, makeWrapper }: let name = "wxmaxima"; @@ -16,7 +12,18 @@ stdenv.mkDerivation { sha256 = "1dfwh5ka125wr6wxzyiwz16lk8kaf09rb6lldzryjwh8zi7yw8dm"; }; - buildInputs = [maxima wxGTK]; + buildInputs = [wxGTK maxima makeWrapper]; + + postInstall = '' + # Make sure that wxmaxima can find its runtime dependencies. + for prog in "$out/bin/"*; do + wrapProgram "$prog" --prefix PATH ":" "${maxima}/bin" + done + ''; + + doCheck = true; + + enableParallelBuilding = true; meta = { description = "Cross platform GUI for the computer algebra system Maxima."; diff --git a/pkgs/applications/version-management/git-and-tools/default.nix b/pkgs/applications/version-management/git-and-tools/default.nix index 6271ab408eff..cc58a6ff6c6c 100644 --- a/pkgs/applications/version-management/git-and-tools/default.nix +++ b/pkgs/applications/version-management/git-and-tools/default.nix @@ -29,11 +29,11 @@ rec { })); # The full-featured Git. - gitFull = lowPrio (appendToName "full" (git.override { + gitFull = appendToName "full" (git.override { svnSupport = true; guiSupport = true; sendEmailSupport = stdenv.isDarwin == false; - })); + }); gitGit = import ./git/git-git.nix { inherit fetchurl sourceFromHead stdenv curl openssl zlib expat perl gettext @@ -46,8 +46,9 @@ rec { }; gitAnnex = lib.makeOverridable (import ./git-annex) { - inherit stdenv fetchurl libuuid rsync findutils curl perl; - inherit (haskellPackages) ghc MissingH utf8String QuickCheck2 pcreLight SHA dataenc; + inherit stdenv fetchurl libuuid rsync findutils curl perl git ikiwiki which; + inherit (haskellPackages) ghc MissingH utf8String QuickCheck2 pcreLight SHA dataenc + HTTP testpack; }; qgit = import ./qgit { diff --git a/pkgs/applications/version-management/git-and-tools/git-annex/default.nix b/pkgs/applications/version-management/git-and-tools/git-annex/default.nix index 8fa4cba9a240..4407514b70ed 100644 --- a/pkgs/applications/version-management/git-and-tools/git-annex/default.nix +++ b/pkgs/applications/version-management/git-and-tools/git-annex/default.nix @@ -1,17 +1,22 @@ -{ stdenv, fetchurl, ghc, libuuid, rsync, findutils, curl, perl, MissingH, utf8String, QuickCheck2, pcreLight, SHA, dataenc }: +{ stdenv, fetchurl, ghc, libuuid, rsync, findutils, curl, perl, MissingH, utf8String +, QuickCheck2, pcreLight, SHA, dataenc, HTTP, testpack, git, ikiwiki, which }: let - version = "0.20110427"; + version = "3.20110707"; in stdenv.mkDerivation { name = "git-annex-${version}"; src = fetchurl { url = "http://ftp.de.debian.org/debian/pool/main/g/git-annex/git-annex_${version}.tar.gz"; - sha256 = "1vbmkvf9hlnfcaqsyi1ay2rr835j49bxqyfdi3v3373pdfd6195z"; + sha256 = "0yyrp94przjmdljd97q5p0yll9aa1jdajrvlhl4m1yq0ngx6x4rr"; }; - buildInputs = [ghc libuuid rsync findutils curl perl MissingH utf8String QuickCheck2 pcreLight SHA dataenc]; + buildInputs = [ghc libuuid rsync findutils curl perl MissingH utf8String QuickCheck2 pcreLight + SHA dataenc HTTP testpack git ikiwiki which]; + + checkTarget = "test"; + doCheck = true; preConfigure = '' makeFlagsArray=( PREFIX=$out ) @@ -19,7 +24,9 @@ stdenv.mkDerivation { ''; meta = { - description = "Manage files with git, without checking the file contents into git"; + homepage = "http://git-annex.branchable.com/"; + description = "Manage files with git without checking them into git"; + license = "GPLv3+"; longDescription = '' Git-annex allows managing files with git, without checking the @@ -38,9 +45,7 @@ stdenv.mkDerivation { control. ''; - license = "GPLv3+"; - homepage = "http://git-annex.branchable.com/"; - platforms = stdenv.lib.platforms.unix; + platforms = stdenv.lib.platforms.haskellPlatforms; maintainers = [ stdenv.lib.maintainers.simons ]; }; } diff --git a/pkgs/applications/version-management/git-and-tools/git/default.nix b/pkgs/applications/version-management/git-and-tools/git/default.nix index 1ba00fcb0f29..7d51573bad20 100644 --- a/pkgs/applications/version-management/git-and-tools/git/default.nix +++ b/pkgs/applications/version-management/git-and-tools/git/default.nix @@ -12,11 +12,11 @@ let in stdenv.mkDerivation rec { - name = "git-1.7.5.1"; + name = "git-1.7.6"; src = fetchurl { url = "mirror://kernel/software/scm/git/${name}.tar.bz2"; - sha256 = "037q4nl17i1q9zrlp4k38dplv384ay9bwb1s96y8zrh0jg2s3m51"; + sha256 = "778795cece63cd758192378f3a999870cea290181b3a4c9de573c77192561082"; }; patches = [ ./docbook2texi.patch ]; @@ -41,16 +41,19 @@ stdenv.mkDerivation rec { chmod +x $1 } - # Install Emacs mode. - echo "installing Emacs mode..." + # Install contrib stuff. + ensureDir $out/share/git + mv contrib $out/share/git/ ensureDir $out/share/emacs/site-lisp - cp -p contrib/emacs/*.el $out/share/emacs/site-lisp + ln -s "$out/share/git/contrib/emacs/"*.el $out/share/emacs/site-lisp/ + ensureDir $out/etc/bash_completion.d + ln -s $out/share/git/contrib/completion/git-completion.bash $out/etc/bash_completion.d/ # grep is a runtime dependence, need to patch so that it's found substituteInPlace $out/libexec/git-core/git-sh-setup \ --replace ' grep' ' ${gnugrep}/bin/grep' \ --replace ' egrep' ' ${gnugrep}/bin/egrep' - '' # */ + '' + (if svnSupport then @@ -97,10 +100,6 @@ stdenv.mkDerivation rec { done '') - + ''# install bash completion script - d="$out/etc/bash_completion.d" - ensureDir $d; cp contrib/completion/git-completion.bash "$d" - '' # Don't know why hardlinks aren't created. git installs the same executable # multiple times into $out so replace duplicates by symlinks because I # haven't tested whether the nix distribution system can handle hardlinks. @@ -109,6 +108,7 @@ stdenv.mkDerivation rec { declare -A seen shopt -s globstar for f in "$out/"**; do + if [ -L "$f" ]; then continue; fi test -f "$f" || continue sum=$(md5sum "$f"); sum=''\${sum/ */} diff --git a/pkgs/applications/version-management/monotone/default.nix b/pkgs/applications/version-management/monotone/default.nix index 651ac6b26b0b..70dd669e30fd 100644 --- a/pkgs/applications/version-management/monotone/default.nix +++ b/pkgs/applications/version-management/monotone/default.nix @@ -1,7 +1,7 @@ { stdenv, fetchurl, boost, zlib, botan, libidn , lua, pcre, sqlite, perl, pkgconfig }: -let +let version = "1.0"; perlVersion = (builtins.parseDrvName perl.name).version; in @@ -10,24 +10,24 @@ assert perlVersion != ""; stdenv.mkDerivation rec { name = "monotone-${version}"; - + src = fetchurl { url = "http://monotone.ca/downloads/${version}/monotone-${version}.tar.bz2"; sha256 = "5c530bc4652b2c08b5291659f0c130618a14780f075f981e947952dcaefc31dc"; }; - + buildInputs = [boost zlib botan libidn lua pcre sqlite pkgconfig]; - + postInstall = '' ensureDir $out/share/${name} cp -rv contrib/ $out/share/${name}/contrib ensureDir $out/lib/perl5/site_perl/${perlVersion} cp -v contrib/Monotone.pm $out/lib/perl5/site_perl/${perlVersion} ''; - + meta = { description = "A free distributed version control system"; maintainers = [stdenv.lib.maintainers.raskin]; - platforms = stdenv.lib.platforms.all; + platforms = stdenv.lib.platforms.unix; }; } diff --git a/pkgs/development/compilers/gprolog/default.nix b/pkgs/development/compilers/gprolog/default.nix index af6bfc56c096..f7a64da73096 100644 --- a/pkgs/development/compilers/gprolog/default.nix +++ b/pkgs/development/compilers/gprolog/default.nix @@ -53,5 +53,8 @@ stdenv.mkDerivation rec { ''; license = "GPLv2+"; + + maintainers = [ stdenv.lib.maintainers.simons ]; + platforms = stdenv.lib.platforms.gnu; }; } diff --git a/pkgs/development/interpreters/lua-4/builder.sh b/pkgs/development/interpreters/lua-4/builder.sh deleted file mode 100644 index 350f67dc9183..000000000000 --- a/pkgs/development/interpreters/lua-4/builder.sh +++ /dev/null @@ -1,6 +0,0 @@ -source $stdenv/setup - -buildFlags="all so sobin" -installFlags="INSTALL_ROOT=$out" - -genericBuild diff --git a/pkgs/development/interpreters/lua-4/default.nix b/pkgs/development/interpreters/lua-4/default.nix index 9502a9a0860f..a95e4e4c35ea 100644 --- a/pkgs/development/interpreters/lua-4/default.nix +++ b/pkgs/development/interpreters/lua-4/default.nix @@ -1,10 +1,30 @@ -{stdenv, fetchurl}: +{stdenv, fetchurl}: stdenv.mkDerivation { name = "lua-4.0.1"; + src = fetchurl { url = http://www.lua.org/ftp/lua-4.0.1.tar.gz; md5 = "a31d963dbdf727f9b34eee1e0d29132c"; }; - builder= ./builder.sh; + + configurePhase = "sed -i -e 's/CFLAGS= -O2/CFLAGS = -O3 -fPIC/' config"; + buildFlags = "all so sobin"; + installFlags = "INSTALL_ROOT=$$out"; + + meta = { + homepage = "http://www.lua.org"; + description = "Lua is a powerful, fast, lightweight, embeddable scripting language."; + longDescription = '' + Lua combines simple procedural syntax with powerful data + description constructs based on associative arrays and extensible + semantics. Lua is dynamically typed, runs by interpreting bytecode + for a register-based virtual machine, and has automatic memory + management with incremental garbage collection, making it ideal + for configuration, scripting, and rapid prototyping. + ''; + license = "MIT"; + platforms = stdenv.lib.platforms.unix; + maintainers = [ ]; + }; } diff --git a/pkgs/development/interpreters/lua-5/5.0.3.nix b/pkgs/development/interpreters/lua-5/5.0.3.nix new file mode 100644 index 000000000000..ff2a81401910 --- /dev/null +++ b/pkgs/development/interpreters/lua-5/5.0.3.nix @@ -0,0 +1,31 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "lua-5.0.3"; + + src = fetchurl { + url = http://www.lua.org/ftp/lua-5.0.3.tar.gz; + sha256 = "1193a61b0e08acaa6eee0eecf29709179ee49c71baebc59b682a25c3b5a45671"; + }; + + configurePhase = "sed -i -e 's/MYCFLAGS=.*/MYCFLAGS=-O3 -fomit-frame-pointer -fPIC/' config"; + buildFlags = "all so sobin"; + installFlags = "INSTALL_ROOT=$$out"; + installTargets = "install soinstall"; + + meta = { + homepage = "http://www.lua.org"; + description = "Lua is a powerful, fast, lightweight, embeddable scripting language."; + longDescription = '' + Lua combines simple procedural syntax with powerful data + description constructs based on associative arrays and extensible + semantics. Lua is dynamically typed, runs by interpreting bytecode + for a register-based virtual machine, and has automatic memory + management with incremental garbage collection, making it ideal + for configuration, scripting, and rapid prototyping. + ''; + license = "MIT"; + platforms = stdenv.lib.platforms.unix; + maintainers = [ ]; + }; +} diff --git a/pkgs/development/libraries/boost/1.44.nix b/pkgs/development/libraries/boost/1.44.nix new file mode 100644 index 000000000000..2b516be2cbf5 --- /dev/null +++ b/pkgs/development/libraries/boost/1.44.nix @@ -0,0 +1,90 @@ +{ stdenv, fetchurl, icu, expat, zlib, bzip2, python +, enableRelease ? true +, enableDebug ? false +, enableSingleThreaded ? false +, enableMultiThreaded ? true +, enableShared ? true +, enableStatic ? false +, enablePIC ? false +}: + +let + + variant = stdenv.lib.concatStringsSep "," + (stdenv.lib.optional enableRelease "release" ++ + stdenv.lib.optional enableDebug "debug"); + + threading = stdenv.lib.concatStringsSep "," + (stdenv.lib.optional enableSingleThreaded "single" ++ + stdenv.lib.optional enableMultiThreaded "multi"); + + link = stdenv.lib.concatStringsSep "," + (stdenv.lib.optional enableShared "shared" ++ + stdenv.lib.optional enableStatic "static"); + + # To avoid library name collisions + finalLayout = if ((enableRelease && enableDebug) || + (enableSingleThreaded && enableMultiThreaded) || + (enableShared && enableStatic)) then + "tagged" else "system"; + + cflags = if (enablePIC) then "cflags=-fPIC cxxflags=-fPIC linkflags=-fPIC" else ""; + +in + +stdenv.mkDerivation { + name = "boost-1.44.0"; + + meta = { + homepage = "http://boost.org/"; + description = "Boost C++ Library Collection"; + license = "boost-license"; + + maintainers = [ stdenv.lib.maintainers.simons ]; + }; + + src = fetchurl { + url = "mirror://sourceforge/boost/boost_1_44_0.tar.bz2"; + sha256 = "1nvq36mvzr1fr85q0jh86rk3bk65s1y55jgqgzfg3lcpkl12ihs5"; + }; + + enableParallelBuilding = true; + + buildInputs = [icu expat zlib bzip2 python]; + + configureScript = "./bootstrap.sh"; + configureFlags = "--with-icu=${icu} --with-python=${python}/bin/python"; + + buildPhase = "./bjam -j$NIX_BUILD_CORES -sEXPAT_INCLUDE=${expat}/include -sEXPAT_LIBPATH=${expat}/lib --layout=${finalLayout} variant=${variant} threading=${threading} link=${link} ${cflags} install"; + + installPhase = ":"; + + patches = [ + # Patch to get rid of following error, experienced by some packages like encfs, bitcoin: + # terminate called after throwing an instance of 'std::runtime_error' + # what(): locale::facet::_S_create_c_locale name not valid + (fetchurl { + url = https://svn.boost.org/trac/boost/raw-attachment/ticket/4688/boost_filesystem.patch ; + sha256 = "15k91ihzs6190pnryh4cl0b3c2pjpl9d790mr14x16zq52y7px2d"; + }) + ]; + + crossAttrs = rec { + buildInputs = [ expat.hostDrv zlib.hostDrv bzip2.hostDrv ]; + # all buildInputs set previously fell into propagatedBuildInputs, as usual, so we have to + # override them. + propagatedBuildInputs = buildInputs; + # We want to substitute the contents of configureFlags, removing thus the + # usual --build and --host added on cross building. + preConfigure = '' + export configureFlags="--prefix=$out --without-icu" + ''; + buildPhase = '' + set -x + cat << EOF > user-config.jam + using gcc : cross : $crossConfig-g++ ; + EOF + ./bjam -j$NIX_BUILD_CORES -sEXPAT_INCLUDE=${expat.hostDrv}/include -sEXPAT_LIBPATH=${expat.hostDrv}/lib --layout=${finalLayout} --user-config=user-config.jam toolset=gcc-cross variant=${variant} threading=${threading} link=${link} ${cflags} --without-python install + ''; + }; +} diff --git a/pkgs/development/libraries/boost/default.nix b/pkgs/development/libraries/boost/default.nix index 2b516be2cbf5..bd3ddd2ba738 100644 --- a/pkgs/development/libraries/boost/default.nix +++ b/pkgs/development/libraries/boost/default.nix @@ -33,7 +33,7 @@ let in stdenv.mkDerivation { - name = "boost-1.44.0"; + name = "boost-1.47.0"; meta = { homepage = "http://boost.org/"; @@ -44,8 +44,8 @@ stdenv.mkDerivation { }; src = fetchurl { - url = "mirror://sourceforge/boost/boost_1_44_0.tar.bz2"; - sha256 = "1nvq36mvzr1fr85q0jh86rk3bk65s1y55jgqgzfg3lcpkl12ihs5"; + url = "mirror://sourceforge/boost/boost_1_47_0.tar.bz2"; + sha256 = "815a5d9faac4dbd523fbcf3fe1065e443c0bbf43427c44aa423422c6ec4c2e31"; }; enableParallelBuilding = true; @@ -55,20 +55,10 @@ stdenv.mkDerivation { configureScript = "./bootstrap.sh"; configureFlags = "--with-icu=${icu} --with-python=${python}/bin/python"; - buildPhase = "./bjam -j$NIX_BUILD_CORES -sEXPAT_INCLUDE=${expat}/include -sEXPAT_LIBPATH=${expat}/lib --layout=${finalLayout} variant=${variant} threading=${threading} link=${link} ${cflags} install"; + buildPhase = "./b2 -j$NIX_BUILD_CORES -sEXPAT_INCLUDE=${expat}/include -sEXPAT_LIBPATH=${expat}/lib --layout=${finalLayout} variant=${variant} threading=${threading} link=${link} ${cflags} install"; installPhase = ":"; - patches = [ - # Patch to get rid of following error, experienced by some packages like encfs, bitcoin: - # terminate called after throwing an instance of 'std::runtime_error' - # what(): locale::facet::_S_create_c_locale name not valid - (fetchurl { - url = https://svn.boost.org/trac/boost/raw-attachment/ticket/4688/boost_filesystem.patch ; - sha256 = "15k91ihzs6190pnryh4cl0b3c2pjpl9d790mr14x16zq52y7px2d"; - }) - ]; - crossAttrs = rec { buildInputs = [ expat.hostDrv zlib.hostDrv bzip2.hostDrv ]; # all buildInputs set previously fell into propagatedBuildInputs, as usual, so we have to @@ -84,7 +74,7 @@ stdenv.mkDerivation { cat << EOF > user-config.jam using gcc : cross : $crossConfig-g++ ; EOF - ./bjam -j$NIX_BUILD_CORES -sEXPAT_INCLUDE=${expat.hostDrv}/include -sEXPAT_LIBPATH=${expat.hostDrv}/lib --layout=${finalLayout} --user-config=user-config.jam toolset=gcc-cross variant=${variant} threading=${threading} link=${link} ${cflags} --without-python install + ./b2 -j$NIX_BUILD_CORES -sEXPAT_INCLUDE=${expat.hostDrv}/include -sEXPAT_LIBPATH=${expat.hostDrv}/lib --layout=${finalLayout} --user-config=user-config.jam toolset=gcc-cross variant=${variant} threading=${threading} link=${link} ${cflags} --without-python install ''; }; } diff --git a/pkgs/development/libraries/haskell/aeson/default.nix b/pkgs/development/libraries/haskell/aeson/default.nix new file mode 100644 index 000000000000..511a06700b1b --- /dev/null +++ b/pkgs/development/libraries/haskell/aeson/default.nix @@ -0,0 +1,18 @@ +{cabal, attoparsec, blazeBuilder, blazeTextual, deepseq, hashable, mtl, + syb, text, unorderedContainers, vector}: + +cabal.mkDerivation (self : { + pname = "aeson"; + version = "0.3.2.9"; + sha256 = "1qaajk797zpickw4ik5lc03wnmxkrcmv3zik7n1bjqx6h37h0zqw"; + propagatedBuildInputs = [ + attoparsec blazeBuilder blazeTextual deepseq hashable mtl + syb text unorderedContainers vector + ]; + meta = { + description = "Fast JSON parsing and encoding"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/ansi-wl-pprint/default.nix b/pkgs/development/libraries/haskell/ansi-wl-pprint/default.nix index b7141f6517da..588ffe4f5c1d 100644 --- 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.5.0"; - sha256 = "295e6924409012e3371db1bb5c02475614fcf1ea99e6bff45a5fc84fb13b8284"; + version = "0.6.3"; + sha256 = "1cpkfn1ld0sjysksdsxxwwy1b17s4smmzk8y88y9mb81vgwlalkl"; propagatedBuildInputs = [ansiTerminal]; meta = { description = "The Wadler/Leijen Pretty Printer for colored ANSI terminal output"; diff --git a/pkgs/development/libraries/haskell/attoparsec/default.nix b/pkgs/development/libraries/haskell/attoparsec/default.nix index 8d3e53cd2ea9..536b27833a29 100644 --- a/pkgs/development/libraries/haskell/attoparsec/default.nix +++ b/pkgs/development/libraries/haskell/attoparsec/default.nix @@ -1,9 +1,10 @@ -{cabal}: +{cabal, deepseq}: cabal.mkDerivation (self : { pname = "attoparsec"; - version = "0.8.5.0"; - sha256 = "0rdhjqgbbasc1diqzjdb6a8s46kcpdw5yxq2vkg3y2z71zln0a31"; + version = "0.9.1.1"; + sha256 = "1qkkl9pzk4znqh34pchmxbcslybvii35lkxhwf6445lyhj20356b"; + propagatedBuildInputs = [deepseq]; meta = { description = "Fast combinator parsing for bytestrings"; license = "BSD3"; diff --git a/pkgs/development/libraries/haskell/attoparsec/enumerator.nix b/pkgs/development/libraries/haskell/attoparsec/enumerator.nix index 95a06a09da53..4152cd4ed2c4 100644 --- a/pkgs/development/libraries/haskell/attoparsec/enumerator.nix +++ b/pkgs/development/libraries/haskell/attoparsec/enumerator.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self : { pname = "attoparsec-enumerator"; - version = "0.2.0.3"; - sha256 = "02v9cwq1jbn0179zd2cky4ix6ykrkd7cpw38c1x7zgy0pal42x4v"; + version = "0.2.0.4"; + sha256 = "14v53vppcf4k3m4kid10pg5r3zsn894f36w1y2pzlc72w81fv3gd"; propagatedBuildInputs = [attoparsec enumerator]; meta = { description = "Converts an Attoparsec parser into an iteratee"; diff --git a/pkgs/development/libraries/haskell/base-unicode-symbols/default.nix b/pkgs/development/libraries/haskell/base-unicode-symbols/default.nix new file mode 100644 index 000000000000..1c51f82bed68 --- /dev/null +++ b/pkgs/development/libraries/haskell/base-unicode-symbols/default.nix @@ -0,0 +1,13 @@ +{cabal}: + +cabal.mkDerivation (self : { + pname = "base-unicode-symbols"; + version = "0.2.1.5"; + sha256 = "1ir1dckrpax4xlrfp7jdsjn7s403a8n8mcmv3wdnpzkg1klfahyq"; + meta = { + description = "Unicode alternatives for common functions and operators"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/blaze-builder/default.nix b/pkgs/development/libraries/haskell/blaze-builder/default.nix index 8eed52f1cee5..4b8dc9b08e96 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.2.1.4"; - sha256 = "0r0lj2whwa1v99gx59l56af06w704qvv1vhkxlca86h7iri4b262"; + version = "0.3.0.1"; + sha256 = "1p3xlifcr7v987zx8l2sppn9yydph332mn1xxk0yfi78a6386nfb"; propagatedBuildInputs = [text]; meta = { description = "Builder to efficiently append text"; diff --git a/pkgs/development/libraries/haskell/blaze-html/default.nix b/pkgs/development/libraries/haskell/blaze-html/default.nix index 9d7950ced1fb..e42a008a9484 100644 --- a/pkgs/development/libraries/haskell/blaze-html/default.nix +++ b/pkgs/development/libraries/haskell/blaze-html/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self : { pname = "blaze-html"; - version = "0.4.1.0"; - sha256 = "0a39wzfsb8lsr0z8c0s90n6pwmhjg6lihbxigk2c02vn5marzc4f"; + version = "0.4.1.4"; + sha256 = "1xf302dapwmmlxj9alfbdv6rcrxhr9p305s4jz2d6ckq2xzz8yjf"; propagatedBuildInputs = [text blazeBuilder]; meta = { description = "A blazingly fast HTML combinator library"; diff --git a/pkgs/development/libraries/haskell/blaze-textual/default.nix b/pkgs/development/libraries/haskell/blaze-textual/default.nix new file mode 100644 index 000000000000..3217ef0a1084 --- /dev/null +++ b/pkgs/development/libraries/haskell/blaze-textual/default.nix @@ -0,0 +1,14 @@ +{cabal, blazeBuilder, text, vector}: + +cabal.mkDerivation (self : { + pname = "blaze-textual"; + version = "0.1.0.0"; + sha256 = "0ql25b0r4xbshqsjfndl7glq0hp2ncxb3h5zd541vsqrqrf8y4gk"; + propagatedBuildInputs = [blazeBuilder text vector]; + meta = { + description = "Fast rendering of common datatypes"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/bytestring-trie/default.nix b/pkgs/development/libraries/haskell/bytestring-trie/default.nix new file mode 100644 index 000000000000..8cbc0f30ea3e --- /dev/null +++ b/pkgs/development/libraries/haskell/bytestring-trie/default.nix @@ -0,0 +1,14 @@ +{cabal, binary}: + +cabal.mkDerivation (self : { + pname = "bytestring-trie"; + version = "0.2.3"; + sha256 = "1zb4s7fd951swc648szrpx0ldailmdinapgbcg1zajb5c5jq57ga"; + propagatedBuildInputs = [binary]; + meta = { + description = "An efficient finite map from (byte)strings to values"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/case-insensitive/default.nix b/pkgs/development/libraries/haskell/case-insensitive/default.nix new file mode 100644 index 000000000000..2bda4a7eefea --- /dev/null +++ b/pkgs/development/libraries/haskell/case-insensitive/default.nix @@ -0,0 +1,14 @@ +{cabal, text}: + +cabal.mkDerivation (self : { + pname = "case-insensitive"; + version = "0.2.0.2"; + sha256 = "0qn2scaxxbqi4770nwvcmb1ldj0ipa2ljxcavcn0kv48xzs519l7"; + propagatedBuildInputs = [text]; + meta = { + description = "Case insensitive string comparison"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/cereal/default.nix b/pkgs/development/libraries/haskell/cereal/default.nix index 2cbd4a5fe454..82fc2d81c3ec 100644 --- a/pkgs/development/libraries/haskell/cereal/default.nix +++ b/pkgs/development/libraries/haskell/cereal/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self : { pname = "cereal"; - version = "0.2"; - sha256 = "aa00eb88cea5616a0eb9e4b6604cb164b8bef6e86b111cbb67d51d4d3441332b"; + version = "0.3.3.0"; + sha256 = "0bqd5qfvbz77mq0zxgafj011hrxcanrfzvlwhf4j4dzr6yryk53y"; meta = { description = "A binary serialization library"; license = "BSD"; diff --git a/pkgs/development/libraries/haskell/clientsession/default.nix b/pkgs/development/libraries/haskell/clientsession/default.nix new file mode 100644 index 000000000000..9d91ac477e7a --- /dev/null +++ b/pkgs/development/libraries/haskell/clientsession/default.nix @@ -0,0 +1,13 @@ +{cabal}: + +cabal.mkDerivation (self : { + pname = "clientsession"; + version = "0.6.0"; + sha256 = "0h92jjkhldn7f9b78cajfda8rprsj5scdsyl3pjpzicpvvy9g00y"; + meta = { + description = "Store session data in a cookie"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/cookie/default.nix b/pkgs/development/libraries/haskell/cookie/default.nix new file mode 100644 index 000000000000..750c4de28abb --- /dev/null +++ b/pkgs/development/libraries/haskell/cookie/default.nix @@ -0,0 +1,14 @@ +{cabal, blazeBuilder, text}: + +cabal.mkDerivation (self : { + pname = "cookie"; + version = "0.2.1"; + sha256 = "0jn4as09qx2948k0r916vy5igz0xmrvng37s0il81b0ndvhnsc6c"; + propagatedBuildInputs = [blazeBuilder text]; + meta = { + description = "HTTP cookie parsing and rendering"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/dataenc/default.nix b/pkgs/development/libraries/haskell/dataenc/default.nix index ba4b1edcc95f..2290a1f50923 100644 --- a/pkgs/development/libraries/haskell/dataenc/default.nix +++ b/pkgs/development/libraries/haskell/dataenc/default.nix @@ -2,10 +2,11 @@ cabal.mkDerivation (self : { pname = "dataenc"; - version = "0.11.1"; - sha256 = "1212dbed8a1b8f80140d6450a7635a4365bc5733a00e2b96d00bcc526396c6bc"; + version = "0.14"; + sha256 = "0q92pzm6wp4rl92ac9b2x2b6na8nzhf229myc9h3cyr3p822liw6"; meta = { description = "Data encoding library"; + license = "BSD3"; }; }) diff --git a/pkgs/development/libraries/haskell/email-validate/default.nix b/pkgs/development/libraries/haskell/email-validate/default.nix new file mode 100644 index 000000000000..3c053565e2aa --- /dev/null +++ b/pkgs/development/libraries/haskell/email-validate/default.nix @@ -0,0 +1,14 @@ +{cabal, parsec, ranges}: + +cabal.mkDerivation (self : { + pname = "email-validate"; + version = "0.2.6"; + sha256 = "1nw4r5wyck30r6n0bjxwybpkw2dqr2mp4y8fy6ypra9zhhw1jd8m"; + propagatedBuildInputs = [parsec ranges]; + meta = { + description = "Validating an email address string against RFC 5322"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/funcmp/default.nix b/pkgs/development/libraries/haskell/funcmp/default.nix new file mode 100644 index 000000000000..a667a1e1d289 --- /dev/null +++ b/pkgs/development/libraries/haskell/funcmp/default.nix @@ -0,0 +1,14 @@ +{cabal}: + +cabal.mkDerivation (self : { + pname = "funcmp"; + version = "1.5"; + sha256 = "f68807833f39178c99877321f0f335cfde12a5c4b38e6c51f33f8cab94b9e12e"; + propagatedBuildInputs = []; + meta = { + description = "Functional MetaPost"; + license = "GPL"; + maintainers = [self.stdenv.lib.maintainers.simons]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/hakyll/default.nix b/pkgs/development/libraries/haskell/hakyll/default.nix index d8e8954e5964..8c544ccc75e0 100644 --- a/pkgs/development/libraries/haskell/hakyll/default.nix +++ b/pkgs/development/libraries/haskell/hakyll/default.nix @@ -3,8 +3,8 @@ cabal.mkDerivation (self : { pname = "hakyll"; - version = "3.0.2.0"; - sha256 = "0d1kmvkbwygr9mxz7m8jiasrbj470j4hwsj8mmkdgdm9clxbi74k"; + version = "3.2.0.3"; + sha256 = "0biy9p662anhhlmwa502iy8cck597q0vlwj57l6cj8kpyxj4g0lz"; propagatedBuildInputs = [ binary blazeHtml hamlet hopenssl mtl network pandoc regexBase regexPCRE snapCore snapServer strictConcurrency diff --git a/pkgs/development/libraries/haskell/hamlet/default.nix b/pkgs/development/libraries/haskell/hamlet/default.nix index 2025b38015f0..6eb100c36f37 100644 --- a/pkgs/development/libraries/haskell/hamlet/default.nix +++ b/pkgs/development/libraries/haskell/hamlet/default.nix @@ -1,11 +1,11 @@ -{cabal, blazeBuilder, blazeHtml, failure, parsec, text, jsonEnumerator, jsonTypes}: +{cabal, blazeBuilder, blazeHtml, failure, parsec, text}: cabal.mkDerivation (self : { pname = "hamlet"; - version = "0.7.3"; - sha256 = "1knapi8506kqm6pbl1qdr3vm579z2dn6q3h3ahzwbxqjafy7pnj9"; + version = "0.8.2.1"; + sha256 = "0798ic6qap4npw2rx42xcgmi1fcbwqvyic5x6vyyf6abvxv16925"; propagatedBuildInputs = - [blazeBuilder blazeHtml failure parsec text jsonEnumerator jsonTypes]; + [blazeBuilder blazeHtml failure parsec text]; meta = { description = "Haml-like template files that are compile-time checked"; license = "BSD"; diff --git a/pkgs/development/libraries/haskell/hashable/default.nix b/pkgs/development/libraries/haskell/hashable/default.nix new file mode 100644 index 000000000000..5da274d41f6f --- /dev/null +++ b/pkgs/development/libraries/haskell/hashable/default.nix @@ -0,0 +1,14 @@ +{cabal, text}: + +cabal.mkDerivation (self : { + pname = "hashable"; + version = "1.1.2.1"; + sha256 = "1kmx3jr9cmkbapd7gywx7zvyd22nyz2mgs8lnzspp5hi7crx3wcx"; + propagatedBuildInputs = [text]; + meta = { + description = "A class for types that can be converted to a hash value"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/hostname/default.nix b/pkgs/development/libraries/haskell/hostname/default.nix new file mode 100644 index 000000000000..543776e084c8 --- /dev/null +++ b/pkgs/development/libraries/haskell/hostname/default.nix @@ -0,0 +1,13 @@ +{cabal}: + +cabal.mkDerivation (self : { + pname = "hostname"; + version = "1.0"; + sha256 = "0p6gm4328946qxc295zb6vhwhf07l1fma82vd0siylnsnsqxlhwv"; + meta = { + description = "A very simple package providing a cross-platform means of determining the hostname"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/hp2any-core/default.nix b/pkgs/development/libraries/haskell/hp2any-core/default.nix new file mode 100644 index 000000000000..b7e7d1da40dc --- /dev/null +++ b/pkgs/development/libraries/haskell/hp2any-core/default.nix @@ -0,0 +1,14 @@ +{cabal, bytestringTrie, network}: + +cabal.mkDerivation (self : { + pname = "hp2any-core"; + version = "0.10.1"; + sha256 = "1qblsvlj4x22ml3k5mlr28r5xk9rmi7lpipd369dbvdzm0rflf03"; + propagatedBuildInputs = [bytestringTrie network]; + meta = { + description = "Heap profiling helper library"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/hp2any-graph/default.nix b/pkgs/development/libraries/haskell/hp2any-graph/default.nix new file mode 100644 index 000000000000..b0e3d3ddfcde --- /dev/null +++ b/pkgs/development/libraries/haskell/hp2any-graph/default.nix @@ -0,0 +1,14 @@ +{cabal, GLUT, OpenGL, hp2anyCore, network, parseargs}: + +cabal.mkDerivation (self : { + pname = "hp2any-graph"; + version = "0.5.3"; + sha256 = "1al20pxfgkgwynrx7vr0i57342s91lcm3cnd9qjx8b6vkqmzykkq"; + propagatedBuildInputs = [GLUT OpenGL hp2anyCore network parseargs]; + meta = { + description = "Real-time heap graphing utility and profile stream server with a reusable graphing module"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/http-types/default.nix b/pkgs/development/libraries/haskell/http-types/default.nix new file mode 100644 index 000000000000..d8ee2cab1d48 --- /dev/null +++ b/pkgs/development/libraries/haskell/http-types/default.nix @@ -0,0 +1,14 @@ +{cabal, blazeBuilder, caseInsensitive, text}: + +cabal.mkDerivation (self : { + pname = "http-types"; + version = "0.6.5"; + sha256 = "1z2y219170n6rrmmffkg8xa450xzl42zpwahv7m71bxlz4cvxjc1"; + propagatedBuildInputs = [blazeBuilder caseInsensitive text]; + meta = { + description = "Generic HTTP types for Haskell (for both client and server code)"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/monad-control/default.nix b/pkgs/development/libraries/haskell/monad-control/default.nix new file mode 100644 index 000000000000..30a46369df63 --- /dev/null +++ b/pkgs/development/libraries/haskell/monad-control/default.nix @@ -0,0 +1,14 @@ +{cabal, baseUnicodeSymbols, transformers}: + +cabal.mkDerivation (self : { + pname = "monad-control"; + version = "0.2.0.1"; + sha256 = "1pnckk9080g64ipvsg3n1vn4jr1083giacgy58if2ppw3dk7m97k"; + propagatedBuildInputs = [baseUnicodeSymbols transformers]; + meta = { + description = "Lift control operations, like exception catching, through monad transformers"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/parseargs/default.nix b/pkgs/development/libraries/haskell/parseargs/default.nix index f105aaf5cfb2..08a5ac652e57 100644 --- a/pkgs/development/libraries/haskell/parseargs/default.nix +++ b/pkgs/development/libraries/haskell/parseargs/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self : { pname = "parseargs"; - version = "0.1.2"; - sha256 = "93e34497bc3921f245474a8fc1807303211cf5ab40f0b655e02eb0242ef75694"; + version = "0.1.3.2"; + sha256 = "1ncdbjzfkhb1f3aznsci26kss9nrv3iilc65q5xdl9nly8p837mv"; meta = { description = "Command-line argument parsing library for Haskell programs"; }; diff --git a/pkgs/development/libraries/haskell/persistent-template/default.nix b/pkgs/development/libraries/haskell/persistent-template/default.nix new file mode 100644 index 000000000000..9b41f8e0396d --- /dev/null +++ b/pkgs/development/libraries/haskell/persistent-template/default.nix @@ -0,0 +1,14 @@ +{cabal, monadControl, persistent, text, webRoutesQuasi}: + +cabal.mkDerivation (self : { + pname = "persistent-template"; + version = "0.5.1"; + sha256 = "163j36pm6fl64m4h8kgj9h19snh026ia1166p3c6rjw86qi9fk0r"; + propagatedBuildInputs = [monadControl persistent text webRoutesQuasi]; + meta = { + description = "Type-safe, non-relational, multi-backend persistence"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/persistent/default.nix b/pkgs/development/libraries/haskell/persistent/default.nix index f8b733664d5e..cc093dddfa35 100644 --- a/pkgs/development/libraries/haskell/persistent/default.nix +++ b/pkgs/development/libraries/haskell/persistent/default.nix @@ -1,17 +1,15 @@ -{cabal, blazeHtml, MonadCatchIOTransformers, parsec, text, transformers, - utf8String, webRoutesQuasi}: +{cabal, blazeHtml, enumerator, monadControl, parsec, pool, text, transformers}: cabal.mkDerivation (self : { pname = "persistent"; - version = "0.1.0"; - sha256 = "32379f5ef937da1bf910cfaf9b6cce6326b8fba7554ef81159e6684c7ce2ca45"; + version = "0.5.1"; + sha256 = "1m0558vi99z15q0w62a9rkz25n8djswggbad9m0il359jb3mrzsd"; propagatedBuildInputs = [ - blazeHtml MonadCatchIOTransformers parsec text transformers - utf8String webRoutesQuasi + blazeHtml enumerator monadControl parsec pool text transformers ]; meta = { description = "Type-safe, non-relational, multi-backend persistence"; - license = "BSD"; + license = "BSD3"; maintainers = [self.stdenv.lib.maintainers.andres]; }; }) diff --git a/pkgs/development/libraries/haskell/pool/default.nix b/pkgs/development/libraries/haskell/pool/default.nix new file mode 100644 index 000000000000..87dcecb35889 --- /dev/null +++ b/pkgs/development/libraries/haskell/pool/default.nix @@ -0,0 +1,14 @@ +{cabal, monadControl, stm, transformers}: + +cabal.mkDerivation (self : { + pname = "pool"; + version = "0.1.0.2"; + sha256 = "1w2z3p3iriw43g655rhd5b70r3cbzl4jf8bybyk5d04x6mcg3wfq"; + propagatedBuildInputs = [monadControl stm transformers]; + meta = { + description = "Thread-safe resource pools"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/ranges/default.nix b/pkgs/development/libraries/haskell/ranges/default.nix new file mode 100644 index 000000000000..194d6227c507 --- /dev/null +++ b/pkgs/development/libraries/haskell/ranges/default.nix @@ -0,0 +1,13 @@ +{cabal}: + +cabal.mkDerivation (self : { + pname = "ranges"; + version = "0.2.3"; + sha256 = "1jmybrwwvg8zkbxjrlrahfavlf2g2584ld15hzhch317683nvr1p"; + meta = { + description = "Ranges and various functions on them"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/simple-sendfile/default.nix b/pkgs/development/libraries/haskell/simple-sendfile/default.nix new file mode 100644 index 000000000000..c3a455a54754 --- /dev/null +++ b/pkgs/development/libraries/haskell/simple-sendfile/default.nix @@ -0,0 +1,14 @@ +{cabal, network}: + +cabal.mkDerivation (self : { + pname = "simple-sendfile"; + version = "0.1.2"; + sha256 = "08w5ria2x41j85z1126kddi918zdqrwmr4vwqczgzh9kdi49wv8j"; + propagatedBuildInputs = [network]; + meta = { + description = "Cross platform library for the sendfile system call"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/snap/core.nix b/pkgs/development/libraries/haskell/snap/core.nix index 905af17b0e65..c95d36f7d504 100644 --- a/pkgs/development/libraries/haskell/snap/core.nix +++ b/pkgs/development/libraries/haskell/snap/core.nix @@ -1,13 +1,13 @@ {cabal, attoparsec, attoparsecEnumerator, MonadCatchIOTransformers, blazeBuilder -, bytestringNums, dlist, mtl, unixCompat, vector, zlib}: +, bytestringNums, caseInsensitive, dlist, mtl, unixCompat, vector, zlib}: cabal.mkDerivation (self : { pname = "snap-core"; - version = "0.4.1"; - sha256 = "0cc6qh8rnfdhv6s4clnb4avbxkvvj4dibbdg0vjbf75iafxvsg9f"; + version = "0.5.1.4"; + sha256 = "0fvff7hjyfwnii057vpg8m75qaipsklk6v6cbvms4p6wp14zqaj1"; propagatedBuildInputs = [ attoparsec attoparsecEnumerator MonadCatchIOTransformers blazeBuilder - bytestringNums dlist mtl unixCompat vector zlib + bytestringNums caseInsensitive dlist mtl unixCompat vector zlib ]; meta = { description = "Snap: A Haskell Web Framework (Core)"; diff --git a/pkgs/development/libraries/haskell/snap/server.nix b/pkgs/development/libraries/haskell/snap/server.nix index b29bc6363bac..14417dd0e80e 100644 --- a/pkgs/development/libraries/haskell/snap/server.nix +++ b/pkgs/development/libraries/haskell/snap/server.nix @@ -4,8 +4,8 @@ cabal.mkDerivation (self : { pname = "snap-server"; - version = "0.4.1"; - sha256 = "1xav58sk6f1capibkil9a834lxg7badcq3v8016azzzmvvhy9iq8"; + version = "0.5.1.4"; + sha256 = "17b95db48as418whcvbxzyvql16z1c706n0s4jryyqr6kvgpsvzp"; propagatedBuildInputs = [ attoparsec attoparsecEnumerator binary blazeBuilder blazeBuilderEnumerator bytestringNums directoryTree enumerator MonadCatchIOTransformers mtl murmurHash diff --git a/pkgs/development/libraries/haskell/test-framework-hunit/default.nix b/pkgs/development/libraries/haskell/test-framework-hunit/default.nix new file mode 100644 index 000000000000..491a73e7616a --- /dev/null +++ b/pkgs/development/libraries/haskell/test-framework-hunit/default.nix @@ -0,0 +1,14 @@ +{cabal, HUnit, testFramework}: + +cabal.mkDerivation (self : { + pname = "test-framework-hunit"; + version = "0.2.6"; + sha256 = "1ivgyh71wwvrrgnk3fp6hsfssvy39jikhjdzr7x68pv1ca7f247r"; + propagatedBuildInputs = [HUnit testFramework]; + meta = { + description = "HUnit support for the test-framework package"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/test-framework-quickcheck/default.nix b/pkgs/development/libraries/haskell/test-framework-quickcheck/default.nix new file mode 100644 index 000000000000..80e0b1a0f00e --- /dev/null +++ b/pkgs/development/libraries/haskell/test-framework-quickcheck/default.nix @@ -0,0 +1,14 @@ +{cabal, QuickCheck1, testFramework, deepseq}: + +cabal.mkDerivation (self : { + pname = "test-framework-quickcheck"; + version = "0.2.7"; + sha256 = "065nazli8vh9dz8xi71gwzlwy81anfd471jhz6hv3m893cc9vvx8"; + propagatedBuildInputs = [QuickCheck1 testFramework deepseq]; + meta = { + description = "QuickCheck support for the test-framework package"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/test-framework-quickcheck2/default.nix b/pkgs/development/libraries/haskell/test-framework-quickcheck2/default.nix new file mode 100644 index 000000000000..c8d84f710505 --- /dev/null +++ b/pkgs/development/libraries/haskell/test-framework-quickcheck2/default.nix @@ -0,0 +1,14 @@ +{cabal, QuickCheck2, testFramework}: + +cabal.mkDerivation (self : { + pname = "test-framework-quickcheck2"; + version = "0.2.10"; + sha256 = "12c37m74idjydxshgms9ib9ii2rpvy4647kra2ards1w2jmnr6w3"; + propagatedBuildInputs = [QuickCheck2 testFramework]; + meta = { + description = "QuickCheck2 support for the test-framework package"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/test-framework/default.nix b/pkgs/development/libraries/haskell/test-framework/default.nix new file mode 100644 index 000000000000..34d2db546b63 --- /dev/null +++ b/pkgs/development/libraries/haskell/test-framework/default.nix @@ -0,0 +1,14 @@ +{cabal, ansiTerminal, ansiWLPprint, hostname, regexPosix, xml}: + +cabal.mkDerivation (self : { + pname = "test-framework"; + version = "0.4.0"; + sha256 = "0zxrdndycr63kzfibk0c2n4j39x6b8s4332sgqm54g1vdl3fxzbl"; + propagatedBuildInputs = [ansiTerminal ansiWLPprint hostname regexPosix xml]; + meta = { + description = "Framework for running and organising tests"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/testpack/default.nix b/pkgs/development/libraries/haskell/testpack/default.nix index 76287bb6d503..626155f6a3cf 100644 --- a/pkgs/development/libraries/haskell/testpack/default.nix +++ b/pkgs/development/libraries/haskell/testpack/default.nix @@ -1,10 +1,10 @@ -{cabal, HUnit, QuickCheck, mtl}: +{cabal, HUnit, QuickCheck2, mtl}: cabal.mkDerivation (self : { pname = "testpack"; - version = "1.0.2"; - sha256 = "ff3d24a755aeeb765d5e93aa0189d0d67ac96b2d84e27a29609eb4738a6cdabc"; - propagatedBuildInputs = [HUnit QuickCheck mtl]; + version = "2.1.0"; + sha256 = "8128f3a409855fca1d431391b2cbf6a9f4dec32dd6f26825960b936fe578c476"; + propagatedBuildInputs = [HUnit QuickCheck2 mtl]; meta = { description = "Test Utility Pack for HUnit and QuickCheck"; }; diff --git a/pkgs/development/libraries/haskell/unix-compat/default.nix b/pkgs/development/libraries/haskell/unix-compat/default.nix index c0d3940d318c..aee31438d10a 100644 --- a/pkgs/development/libraries/haskell/unix-compat/default.nix +++ b/pkgs/development/libraries/haskell/unix-compat/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self : { pname = "unix-compat"; - version = "0.2.1.1"; - sha256 = "11bh29rq3g4qqvxc72wbip85vc3m91lafa85086izpqkkpnl4pxh"; + version = "0.2.1.3"; + sha256 = "12645n23b7b86w3fllg3vl39pvbxazqx9rflgnhc6qrlfklkyxxd"; meta = { description = "Portable POSIX-compatibility layer"; license = "BSD"; diff --git a/pkgs/development/libraries/haskell/unordered-containers/default.nix b/pkgs/development/libraries/haskell/unordered-containers/default.nix new file mode 100644 index 000000000000..62cc44ac89f3 --- /dev/null +++ b/pkgs/development/libraries/haskell/unordered-containers/default.nix @@ -0,0 +1,14 @@ +{cabal, deepseq, hashable}: + +cabal.mkDerivation (self : { + pname = "unordered-containers"; + version = "0.1.4.0"; + sha256 = "1v5m92rn2k7knhca91ldzi082hy4z0hp4nm66ihns4vxgslywgb9"; + propagatedBuildInputs = [deepseq hashable]; + meta = { + description = "Efficient hashing-based container types"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/wai-extra/default.nix b/pkgs/development/libraries/haskell/wai-extra/default.nix new file mode 100644 index 000000000000..9b2ea52ed43a --- /dev/null +++ b/pkgs/development/libraries/haskell/wai-extra/default.nix @@ -0,0 +1,18 @@ +{cabal, blazeBuilder, blazeBuilderEnumerator, caseInsensitive, enumerator, + httpTypes, network, text, transformers, wai, zlibBindings}: + +cabal.mkDerivation (self : { + pname = "wai-extra"; + version = "0.4.0.1"; + sha256 = "0xj7dkwqa9axgm6cizf2kd97fakbmq5580mian888i5f21jn1n2z"; + propagatedBuildInputs = [ + blazeBuilder blazeBuilderEnumerator caseInsensitive enumerator + httpTypes network text transformers wai zlibBindings + ]; + meta = { + description = "Provides some basic WAI handlers and middleware"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/wai/default.nix b/pkgs/development/libraries/haskell/wai/default.nix new file mode 100644 index 000000000000..48eb38e3baef --- /dev/null +++ b/pkgs/development/libraries/haskell/wai/default.nix @@ -0,0 +1,14 @@ +{cabal, blazeBuilder, enumerator, network, httpTypes, text, transformers}: + +cabal.mkDerivation (self : { + pname = "wai"; + version = "0.4.0"; + sha256 = "1xp03g3q967rpgas896a5j3y7hjiir4ny0qlwmaj5ki61zivjsln"; + propagatedBuildInputs = [blazeBuilder enumerator network httpTypes text transformers]; + meta = { + description = "Web Application Interface"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/warp/default.nix b/pkgs/development/libraries/haskell/warp/default.nix new file mode 100644 index 000000000000..38e94d0277fa --- /dev/null +++ b/pkgs/development/libraries/haskell/warp/default.nix @@ -0,0 +1,18 @@ +{cabal, blazeBuilder, blazeBuilderEnumerator, caseInsensitive, enumerator, + httpTypes, network, simpleSendfile, transformers, unixCompat, wai}: + +cabal.mkDerivation (self : { + pname = "warp"; + version = "0.4.1.1"; + sha256 = "0qck4mpg4p6v2yx2r6qchqd3lvsn8n5ys6xsm11hhznc2r50aayh"; + propagatedBuildInputs = [ + blazeBuilder blazeBuilderEnumerator caseInsensitive enumerator + httpTypes network simpleSendfile transformers unixCompat wai + ]; + meta = { + description = "A fast, light-weight web server for WAI applications"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/web-routes-quasi/default.nix b/pkgs/development/libraries/haskell/web-routes-quasi/default.nix index 8d0303d65bb4..434a19cfcfea 100644 --- a/pkgs/development/libraries/haskell/web-routes-quasi/default.nix +++ b/pkgs/development/libraries/haskell/web-routes-quasi/default.nix @@ -1,13 +1,13 @@ -{cabal, webRoutes}: +{cabal, text}: cabal.mkDerivation (self : { pname = "web-routes-quasi"; - version = "0.5.0"; - sha256 = "07ef2717b44f92bccee9af4b4d9a173c12ec3b3b1d49a8495811dad0af240673"; - propagatedBuildInputs = [webRoutes]; + version = "0.7.0.1"; + sha256 = "1khrf5kbw285hddyyzcz2mx4qpz46mdmlm31jszag2ay64gw35gw"; + propagatedBuildInputs = [text]; meta = { description = "Define data types and parse/build functions for web-routes via a quasi-quoted DSL"; - license = "BSD"; + license = "BSD3"; maintainers = [self.stdenv.lib.maintainers.andres]; }; }) diff --git a/pkgs/development/libraries/haskell/yesod-core/default.nix b/pkgs/development/libraries/haskell/yesod-core/default.nix new file mode 100644 index 000000000000..4c9634bf759b --- /dev/null +++ b/pkgs/development/libraries/haskell/yesod-core/default.nix @@ -0,0 +1,20 @@ +{cabal, blazeBuilder, blazeHtml, caseInsensitive, cereal, clientsession, + cookie, enumerator, failure, hamlet, httpTypes, monadControl, parsec, + text, transformers, wai, waiExtra, webRoutesQuasi}: + +cabal.mkDerivation (self : { + pname = "yesod-core"; + version = "0.8.2"; + sha256 = "15h5nm45w3z1g4ayn0dj9grviqm857krad1453rway76yrrv7xsr"; + propagatedBuildInputs = [ + blazeBuilder blazeHtml caseInsensitive cereal clientsession + cookie enumerator failure hamlet httpTypes monadControl parsec + text transformers wai waiExtra webRoutesQuasi + ]; + meta = { + description = "Creation of type-safe, RESTful web applications"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/yesod-form/default.nix b/pkgs/development/libraries/haskell/yesod-form/default.nix new file mode 100644 index 000000000000..b190e8d848e1 --- /dev/null +++ b/pkgs/development/libraries/haskell/yesod-form/default.nix @@ -0,0 +1,21 @@ +{cabal, blazeBuilder, blazeHtml, dataDefault, emailValidate, hamlet, + network, persistent, text, transformers, wai, webRoutesQuasi, + xssSanitize, yesodCore, yesodPersistent}: + +cabal.mkDerivation (self : { + pname = "yesod-form"; + version = "0.2.0"; + sha256 = "1dwwndrb09bqfzrarxpiw29xqvxk70iy8b2vcy0rl6g2wvrcm8an"; + propagatedBuildInputs = [ + blazeBuilder blazeHtml dataDefault emailValidate hamlet + network persistent text transformers wai webRoutesQuasi + xssSanitize yesodCore yesodPersistent + ]; + noHaddock = true; + meta = { + description = "Form handling support for Yesod Web Framework"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/yesod-json/default.nix b/pkgs/development/libraries/haskell/yesod-json/default.nix new file mode 100644 index 000000000000..7607dbfa15fb --- /dev/null +++ b/pkgs/development/libraries/haskell/yesod-json/default.nix @@ -0,0 +1,16 @@ +{cabal, aeson, blazeTextual, hamlet, text, vector, yesodCore}: + +cabal.mkDerivation (self : { + pname = "yesod-json"; + version = "0.1.1.1"; + sha256 = "02mly02c6z49s0gznx47w919gcn7qz1qvr8704sab1sjk87cyjwl"; + propagatedBuildInputs = [ + aeson blazeTextual hamlet text vector yesodCore + ]; + meta = { + description = "Generate content for Yesod using the aeson package"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/yesod-persistent/default.nix b/pkgs/development/libraries/haskell/yesod-persistent/default.nix new file mode 100644 index 000000000000..ded78d7b3826 --- /dev/null +++ b/pkgs/development/libraries/haskell/yesod-persistent/default.nix @@ -0,0 +1,16 @@ +{cabal, failure, persistent, persistentTemplate, transformers, yesodCore}: + +cabal.mkDerivation (self : { + pname = "yesod-persistent"; + version = "0.1.0"; + sha256 = "1h0kk3sx0c4c3pcg3s2c5kfy0kz7gci45h4gsgrkhkcgg0pg324c"; + propagatedBuildInputs = [ + failure persistent persistentTemplate transformers yesodCore + ]; + meta = { + description = "Some helpers for using Persistent from Yesod"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/zlib-bindings/default.nix b/pkgs/development/libraries/haskell/zlib-bindings/default.nix new file mode 100644 index 000000000000..efe5e4134a81 --- /dev/null +++ b/pkgs/development/libraries/haskell/zlib-bindings/default.nix @@ -0,0 +1,14 @@ +{cabal, zlib}: + +cabal.mkDerivation (self : { + pname = "zlib-bindings"; + version = "0.0.0"; + sha256 = "168sll6mrmcnvdmdx79izqxcrli1s7asp4qilhkqss8w0jlrv1ni"; + propagatedBuildInputs = [zlib]; + meta = { + description = "Low-level bindings to the zlib package"; + license = "BSD3"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index c769bd64c533..6a1de4d95e4a 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -1,31 +1,36 @@ -{ stdenv, fetchurl, pkgconfig, x11, xlibs, libdrm, expat, lipo ? null, talloc }: +{ stdenv, fetchurl, flex, bison, pkgconfig, x11, xlibs, libdrm, file, expat +, python, libxml2Python, lipo ? null }: if ! stdenv.lib.lists.elem stdenv.system stdenv.lib.platforms.mesaPlatforms then throw "unsupported platform for Mesa" else -let version = "7.10.1"; in +let version = "7.10.3"; in stdenv.mkDerivation { name = "mesa-${version}"; src = fetchurl { url = "ftp://ftp.freedesktop.org/pub/mesa/${version}/MesaLib-${version}.tar.bz2"; - md5 = "efe8da4d80c2a5d32a800770b8ce5dfa"; + sha256 = "1h451vgsfsp0h0wig66spqgxmjalsy28gvd9viynfwmq7741yw0y"; }; patches = [ ./swrast-settexbuffer.patch ]; + postPatch = '' + find . -name "*.py" -exec sed -i -e "s|#! */usr/bin/env python|#! ${python}/bin/python|" {} + + ''; + configureFlags = - "--disable-gallium" - + stdenv.lib.optionalString (stdenv.system == "mips64-linux") - " --with-dri-drivers=swrast --with-driver=dri" - + stdenv.lib.optionalString stdenv.isDarwin " --disable-egl"; + " --with-driver=dri --enable-gl-osmesa --enable-gles1" + + " --enable-gallium --enable-gallium-r600 --enable-gles2" + + " --enable-gallium-swrast --enable-gallium-egl --disable-glx-tls" + + " --enable-xcb --enable-egl --disable-glut"; buildInputs = [ pkgconfig expat x11 libdrm xlibs.makedepend xlibs.glproto xlibs.libXxf86vm xlibs.libXfixes xlibs.libXdamage xlibs.dri2proto - lipo talloc + lipo file python libxml2Python flex bison ]; enableParallelBuilding = true; @@ -36,5 +41,8 @@ stdenv.mkDerivation { description = "An open source implementation of OpenGL"; homepage = http://www.mesa3d.org/; license = "bsd"; + + platforms = stdenv.lib.platforms.mesaPlatforms; + maintainers = [ stdenv.lib.maintainers.simons ]; }; } diff --git a/pkgs/development/libraries/openssl/1.x.nix b/pkgs/development/libraries/openssl/1.x.nix deleted file mode 100644 index eae32de30e48..000000000000 --- a/pkgs/development/libraries/openssl/1.x.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ stdenv, fetchurl, perl }: - -let - opensslCrossSystem = stdenv.lib.attrByPath [ "openssl" "system" ] - (throw "openssl needs its platform name cross building" null) - stdenv.cross; -in - -stdenv.mkDerivation (rec { - name = "openssl-1.0.0"; - - src = fetchurl { - url = "http://www.openssl.org/source/${name}.tar.gz"; - sha1 = "3f800ea9fa3da1c0f576d689be7dca3d55a4cb62"; - }; - - buildNativeInputs = [ perl ]; - - configureScript = "./config"; - - configureFlags="--libdir=lib shared"; - - crossAttrs = { - preConfigure='' - export cross=$crossSystem- - ''; - configureFlags="--libdir=lib ${opensslCrossSystem} shared"; - buildPhase = '' - make CC=$crossConfig-gcc \ - AR="$crossConfig-ar r" \ - RANLIB=$crossConfig-ranlib - ''; - }; - - meta = { - homepage = http://www.openssl.org/; - description = "A cryptographic library that implements the SSL and TLS protocols"; - }; -} -// -(if stdenv.isDarwin then { - patches = ./darwin-arch.patch; -} -else { }) -) diff --git a/pkgs/development/libraries/openssl/darwin-arch-1.patch b/pkgs/development/libraries/openssl/darwin-arch-1.patch deleted file mode 100644 index ad8e86c6791e..000000000000 --- a/pkgs/development/libraries/openssl/darwin-arch-1.patch +++ /dev/null @@ -1,16 +0,0 @@ -The patch is specific to nix: MacOS gcc supports -arch. ---- a/Configure -+++ b/Configure -@@ -549,9 +549,9 @@ my %table=( - "rhapsody-ppc-cc","cc:-O3 -DB_ENDIAN::(unknown):MACOSX_RHAPSODY::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${no_asm}::", - "darwin-ppc-cc","cc:-arch ppc -O3 -DB_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${ppc32_asm}:osx32:dlfcn:darwin-shared:-fPIC -fno-common:-arch ppc -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib", - "darwin64-ppc-cc","cc:-arch ppc64 -O3 -DB_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${ppc64_asm}:osx64:dlfcn:darwin-shared:-fPIC -fno-common:-arch ppc64 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib", --"darwin-i386-cc","cc:-arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_INT RC4_CHUNK DES_UNROLL BF_PTR:${x86_asm}:macosx:dlfcn:darwin-shared:-fPIC -fno-common:-arch i386 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib", --"debug-darwin-i386-cc","cc:-arch i386 -g3 -DL_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_INT RC4_CHUNK DES_UNROLL BF_PTR:${x86_asm}:macosx:dlfcn:darwin-shared:-fPIC -fno-common:-arch i386 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib", --"darwin64-x86_64-cc","cc:-arch x86_64 -O3 -DL_ENDIAN -DMD32_REG_T=int -Wall::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:macosx:dlfcn:darwin-shared:-fPIC -fno-common:-arch x86_64 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib", -+"darwin-i386-cc","cc:-O3 -fomit-frame-pointer -DL_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_INT RC4_CHUNK DES_UNROLL BF_PTR:${x86_asm}:macosx:dlfcn:darwin-shared:-fPIC -fno-common:-dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib", -+"debug-darwin-i386-cc","cc:-g3 -DL_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_INT RC4_CHUNK DES_UNROLL BF_PTR:${x86_asm}:macosx:dlfcn:darwin-shared:-fPIC -fno-common:-dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib", -+"darwin64-x86_64-cc","cc:-O3 -DL_ENDIAN -DMD32_REG_T=int -Wall::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:macosx:dlfcn:darwin-shared:-fPIC -fno-common:-dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib", - "debug-darwin-ppc-cc","cc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -DB_ENDIAN -g -Wall -O::-D_REENTRANT:MACOSX::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${ppc32_asm}:osx32:dlfcn:darwin-shared:-fPIC:-dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib", - - ##### A/UX diff --git a/pkgs/development/libraries/podofo/default.nix b/pkgs/development/libraries/podofo/default.nix index 0d18c37987ee..ad447207a14a 100644 --- a/pkgs/development/libraries/podofo/default.nix +++ b/pkgs/development/libraries/podofo/default.nix @@ -2,10 +2,10 @@ openssl, libpng, lua5}: stdenv.mkDerivation rec { - name = "podofo-0.8.2"; + name = "podofo-0.9.1"; src = fetchurl { url = "mirror://sourceforge/podofo/${name}.tar.gz"; - sha256 = "064cgrvjvy57n5i25d4j7yx5wd3wgkdks448bzc3a8nsmyl08skq"; + sha256 = "0icpxh1l1dpviq2zwy764dhg8y03zwyf4pgw4s7kb165nvh9v5kv"; }; propagatedBuildInputs = [ zlib freetype libjpeg libtiff fontconfig openssl libpng ]; buildInputs = [ cmake lua5 stdenv.gcc.libc ]; diff --git a/pkgs/development/tools/misc/automake/builder.sh b/pkgs/development/tools/misc/automake/builder.sh index 6b0cd7e4fa22..7f9e9219de31 100644 --- a/pkgs/development/tools/misc/automake/builder.sh +++ b/pkgs/development/tools/misc/automake/builder.sh @@ -1,5 +1,33 @@ source $stdenv/setup +# Wrap the given `aclocal' program, appending extra `-I' flags +# corresponding to the directories listed in $ACLOCAL_PATH. (Note +# that `wrapProgram' can't be used for that purpose since it can only +# prepend flags, not append them.) +wrapAclocal() { + local program="$1" + local wrapped="$(dirname $program)/.$(basename $program)-wrapped" + + mv "$program" "$wrapped" + cat > "$program"</dev/null; echo -n .; done - for i in $currentPath/bin/* :; do #*/ - test "$i" = : && continue; - echo -ne "#! /bin/sh\\n$i \"\$@\"" > "$out/bin/$(basename "$i")" && \ + for i in "$currentPath/bin/"* :; do + test "$i" != : || continue + echo -ne "#! $SHELL\\nexec $i \"\$@\"" > "$out/bin/$(basename "$i")" && \ chmod a+x "$out/bin/$(basename "$i")" done - echo + echo - cp -Trfp $currentPath/libexec $out/libexec || true + cp -Trfp $currentPath/libexec $out/libexec || true done ln -s $out/texmf* $out/share/ @@ -39,8 +39,8 @@ rec { for i in $out/libexec/*/* :; do test "$i" = : && continue; test -f "$i" && \ - test -x "$i" && \ - echo -ne "#! /bin/sh\\n$i \"\$@\"" >$out/bin/$(basename $i) && \ + test -x "$i" && \ + echo -ne "#! $SHELL\\nexec $i \"\$@\"" >$out/bin/$(basename $i) && \ chmod a+x $out/bin/$(basename $i) done @@ -58,12 +58,12 @@ rec { meta = { description = "TeX distribution directory"; longDescription = '' - Here all the files from different TeX-related - packages are collected in one directory. Of - course, mktexlsr is called. Later placed + Here all the files from different TeX-related + packages are collected in one directory. Of + course, mktexlsr is called. Later placed directories take precedence. It is supposed that share and libexec are symlinked, and bin is - recreated with wrappers for libexec-located + recreated with wrappers for libexec-located linked binaries. ''; }; diff --git a/pkgs/misc/tex/texlive/default.nix b/pkgs/misc/tex/texlive/default.nix index e72d9112daa7..69fb5d7e415f 100644 --- a/pkgs/misc/tex/texlive/default.nix +++ b/pkgs/misc/tex/texlive/default.nix @@ -1,11 +1,11 @@ -args : with args; +args : with args; rec { - src = fetchurl { + src = fetchurl { url = mirror://debian/pool/main/t/texlive-bin/texlive-bin_2009.orig.tar.gz; sha256 = "0ywc8h4jnig53fs0bji2ivw5f9j6zlgdy477jqw7xvpc7migjpw7"; }; - - texmfSrc = fetchurl { + + texmfSrc = fetchurl { url = mirror://debian/pool/main/t/texlive-base/texlive-base_2009.orig.tar.gz; sha256 = "130z907xcxr10yrzbbmp9l8a00dabvi4bi702s5jxamjzav17cmf"; }; @@ -19,7 +19,7 @@ rec { doMainBuild = fullDepEntry ('' ensureDir $out - ensureDir $out/nix-support + ensureDir $out/nix-support cp ${setupHook} $out/nix-support/setup-hook.sh ensureDir $out/share tar xf ${texmfSrc} -C $out --strip-components=1 @@ -32,7 +32,7 @@ rec { sed -e 's@\' -i $(find . -name configure) - sed -e s@ncurses/curses.h@curses.h@g -i $(grep ncurses/curses.h -rl . ) + sed -e s@ncurses/curses.h@curses.h@g -i $(grep ncurses/curses.h -rl . ) sed -e '1i\#include \n\#include ' -i $( find libs/teckit -name '*.cpp' -o -name '*.c' ) NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${freetype}/include/freetype2" @@ -47,12 +47,13 @@ rec { mv $out/bin $out/libexec ensureDir $out/bin for i in "$out/libexec/"*"/"*; do - echo -ne "#! /bin/sh\\n$i \"\$@\"" >$out/bin/$(basename $i) + test \( \! -d "$i" \) -a -x "$i" || continue + echo -ne "#! $SHELL\\nexec $i \"\$@\"" >$out/bin/$(basename $i) chmod a+x $out/bin/$(basename $i) done [ -d $out/texmf-config ] || ln -s $out/texmf $out/texmf-config ln -s "$out/"*texmf* "$out/share/" - + sed -e 's/.*pyhyph.*/=&/' -i $out/texmf-config/tex/generic/config/language.dat PATH=$PATH:$out/bin mktexlsr $out/texmf* @@ -76,18 +77,16 @@ rec { buildInputs = [ zlib bzip2 ncurses libpng flex bison libX11 libICE - xproto freetype t1lib gd libXaw icu ghostscript ed - libXt libXpm libXmu libXext xextproto perl libSM + xproto freetype t1lib gd libXaw icu ghostscript ed + libXt libXpm libXmu libXext xextproto perl libSM ruby expat curl libjpeg python fontconfig ]; - configureFlags = [ "--with-x11" + configureFlags = [ "--with-x11" "--enable-ipc" "--with-mktexfmt" ]; - phaseNames = ["addInputs" (doDump "0") "doMainBuild" - (doDump "1") - "doMakeInstall" "doPostInstall"]; + phaseNames = ["addInputs" "doMainBuild" "doMakeInstall" "doPostInstall"]; name = "texlive-core-2009"; meta = { diff --git a/pkgs/misc/tex/texlive/moderncv.nix b/pkgs/misc/tex/texlive/moderncv.nix new file mode 100644 index 000000000000..a19835eda4bb --- /dev/null +++ b/pkgs/misc/tex/texlive/moderncv.nix @@ -0,0 +1,25 @@ +args: with args; +rec { + name = "moderncv-2007.05.28"; + src = fetchurl { + url = "http://mirror.ctan.org/macros/latex/contrib/moderncv.zip"; + sha256 = "d479141e9ae6dad745b03af47541b1bf7d312613de42bb7984eb4b556854cb51"; + }; + + buildInputs = [texLive unzip]; + phaseNames = ["doCopy"]; + doCopy = fullDepEntry ('' + ensureDir $out/texmf/tex/latex/moderncv $out/texmf/doc $out/share + mv *.cls *.sty $out/texmf/tex/latex/moderncv/ + mv examples $out/texmf/doc/moderncv + ln -s $out/texmf* $out/share/ + '') ["minInit" "addInputs" "doUnpack" "defEnsureDir"]; + + meta = { + description = "the moderncv class for TeXLive"; + maintainers = [ args.lib.maintainers.simons ]; + + # Actually, arch-independent.. + platforms = [] ; + }; +} diff --git a/pkgs/os-specific/linux/firmware/radeon-r600/default.nix b/pkgs/os-specific/linux/firmware/radeon-r600/default.nix new file mode 100644 index 000000000000..ed44b2eed78c --- /dev/null +++ b/pkgs/os-specific/linux/firmware/radeon-r600/default.nix @@ -0,0 +1,19 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "radeon-r600-firmware-2009-12-09"; + + src = fetchurl { + url = "http://people.freedesktop.org/~agd5f/radeon_ucode/R600_rlc.bin"; + sha256 = "11bxpivxycigv0ffbck33y9czgira3g8py33840zxzwcwbi59yps"; + }; + + unpackPhase = "true"; + installPhase = "install -D $src $out/radeon/R600_rlc.bin"; + + meta = { + description = "Firmware for the RADEON r600 chipset"; + homepage = "http://people.freedesktop.org/~agd5f/radeon_ucode"; + license = "GPL"; + }; +} diff --git a/pkgs/os-specific/linux/firmware/radeon-r700/default.nix b/pkgs/os-specific/linux/firmware/radeon-r700/default.nix new file mode 100644 index 000000000000..92e959737990 --- /dev/null +++ b/pkgs/os-specific/linux/firmware/radeon-r700/default.nix @@ -0,0 +1,19 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "radeon-r700-firmware-2009-12-09"; + + src = fetchurl { + url = "http://people.freedesktop.org/~agd5f/radeon_ucode/R700_rlc.bin"; + sha256 = "1lbgrlbhqijizg16z0g0qa6ggznpdy844cawnwdp1b0fkwhrbkga"; + }; + + unpackPhase = "true"; + installPhase = "install -D $src $out/radeon/R700_rlc.bin"; + + meta = { + description = "Firmware for the RADEON r700 chipset"; + homepage = "http://people.freedesktop.org/~agd5f/radeon_ucode"; + license = "GPL"; + }; +} diff --git a/pkgs/os-specific/linux/htop/default.nix b/pkgs/os-specific/linux/htop/default.nix index 6a2320993517..923f27981458 100644 --- a/pkgs/os-specific/linux/htop/default.nix +++ b/pkgs/os-specific/linux/htop/default.nix @@ -1,12 +1,18 @@ {fetchurl, stdenv, ncurses}: -stdenv.mkDerivation rec { - name = "htop-0.8.3"; +let + name = "htop-0.9"; +in +stdenv.mkDerivation { + inherit name; + src = fetchurl { url = "mirror://sourceforge/htop/${name}.tar.gz"; - sha256 = "f03bac8999c57c399cbf4332831bcce905d0393d0f97f7e32a1407b48890dd9d"; + sha256 = "4de65c38e1886bccd30ed692b30eb9bf195240680781bfe1eaf5faf84ee6fbfd"; }; + buildInputs = [ncurses]; + meta = { description = "An interactive process viewer for Linux"; homepage = "http://htop.sourceforge.net"; diff --git a/pkgs/os-specific/linux/kernel/builder.sh b/pkgs/os-specific/linux/kernel/builder.sh index 5bedebc11ec8..61cb8f280810 100644 --- a/pkgs/os-specific/linux/kernel/builder.sh +++ b/pkgs/os-specific/linux/kernel/builder.sh @@ -16,8 +16,8 @@ postPatch() { } configurePhase() { - if test -n "$preConfigure"; then - eval "$preConfigure"; + if test -n "$preConfigure"; then + eval "$preConfigure"; fi export INSTALL_PATH=$out @@ -46,13 +46,6 @@ configurePhase() { } -postBuild() { - # After the builder did a 'make all' (kernel + modules) - # we force building the target asked: bzImage/zImage/uImage/... - make $makeFlags $kernelTarget - make $makeFlags -C scripts unifdef -} - installPhase() { ensureDir $out @@ -149,8 +142,8 @@ installPhase() { fi fi - if test -n "$postInstall"; then - eval "$postInstall"; + if test -n "$postInstall"; then + eval "$postInstall"; fi } diff --git a/pkgs/os-specific/linux/kernel/cifs-timeout-2.6.15.patch b/pkgs/os-specific/linux/kernel/cifs-timeout-2.6.15.patch new file mode 100644 index 000000000000..4e399af8300d --- /dev/null +++ b/pkgs/os-specific/linux/kernel/cifs-timeout-2.6.15.patch @@ -0,0 +1,44 @@ +--- a/fs/cifs/transport.c 2011-04-12 15:16:00.253887813 +0200 ++++ b/fs/cifs/transport.c 2011-04-12 15:17:22.650296413 +0200 +@@ -247,9 +247,9 @@ + n_vec - first_vec, total_len); + if ((rc == -ENOSPC) || (rc == -EAGAIN)) { + i++; +- if(i >= 14) { ++ if(i >= 119) { + cERROR(1, +- ("sends on sock %p stuck for 15 seconds", ++ ("sends on sock %p stuck for 120 seconds", + ssocket)); + rc = -EAGAIN; + break; +@@ -421,12 +421,12 @@ + else if (long_op == 2) /* writes past end of file can take loong time */ + timeout = 180 * HZ; + else if (long_op == 1) +- timeout = 45 * HZ; /* should be greater than ++ timeout = 120 * HZ; /* should be greater than + servers oplock break timeout (about 43 seconds) */ + else if (long_op > 2) { + timeout = MAX_SCHEDULE_TIMEOUT; + } else +- timeout = 15 * HZ; ++ timeout = 120 * HZ; + /* wait for 15 seconds or until woken up due to response arriving or + due to last connection to this server being unmounted */ + if (signal_pending(current)) { +@@ -687,12 +687,12 @@ + else if (long_op == 2) /* writes past end of file can take loong time */ + timeout = 180 * HZ; + else if (long_op == 1) +- timeout = 45 * HZ; /* should be greater than ++ timeout = 120 * HZ; /* should be greater than + servers oplock break timeout (about 43 seconds) */ + else if (long_op > 2) { + timeout = MAX_SCHEDULE_TIMEOUT; + } else +- timeout = 15 * HZ; ++ timeout = 120 * HZ; + /* wait for 15 seconds or until woken up due to response arriving or + due to last connection to this server being unmounted */ + if (signal_pending(current)) { diff --git a/pkgs/os-specific/linux/kernel/cifs-timeout-2.6.25.patch b/pkgs/os-specific/linux/kernel/cifs-timeout-2.6.25.patch new file mode 100644 index 000000000000..1c9544ae1dfd --- /dev/null +++ b/pkgs/os-specific/linux/kernel/cifs-timeout-2.6.25.patch @@ -0,0 +1,46 @@ +--- /tmp/linux-2.6.32.14/fs/cifs/transport.c 2011-04-07 10:50:40.844188400 +0200 ++++ linux-2.6.32.14/fs/cifs/transport.c 2011-04-07 10:52:22.092690465 +0200 +@@ -277,9 +277,9 @@ + n_vec - first_vec, total_len); + if ((rc == -ENOSPC) || (rc == -EAGAIN)) { + i++; +- if (i >= 14) { ++ if (i >= 119) { + cERROR(1, +- ("sends on sock %p stuck for 15 seconds", ++ ("sends on sock %p stuck for 120 seconds", + ssocket)); + rc = -EAGAIN; + break; +@@ -553,11 +553,11 @@ + goto out; + + if (long_op == CIFS_STD_OP) +- timeout = 15 * HZ; ++ timeout = 120 * HZ; + else if (long_op == CIFS_VLONG_OP) /* e.g. slow writes past EOF */ + timeout = 180 * HZ; + else if (long_op == CIFS_LONG_OP) +- timeout = 45 * HZ; /* should be greater than ++ timeout = 120 * HZ; /* should be greater than + servers oplock break timeout (about 43 seconds) */ + else if (long_op == CIFS_ASYNC_OP) + goto out; +@@ -744,7 +744,7 @@ + goto out; + + if (long_op == CIFS_STD_OP) +- timeout = 15 * HZ; ++ timeout = 120 * HZ; + /* wait for 15 seconds or until woken up due to response arriving or + due to last connection to this server being unmounted */ + else if (long_op == CIFS_ASYNC_OP) +@@ -752,7 +752,7 @@ + else if (long_op == CIFS_VLONG_OP) /* writes past EOF can be slow */ + timeout = 180 * HZ; + else if (long_op == CIFS_LONG_OP) +- timeout = 45 * HZ; /* should be greater than ++ timeout = 120 * HZ; /* should be greater than + servers oplock break timeout (about 43 seconds) */ + else if (long_op == CIFS_BLOCKING_OP) + timeout = 0x7FFFFFFF; /* large but no so large as to wrap */ diff --git a/pkgs/os-specific/linux/kernel/cifs-timeout.patch b/pkgs/os-specific/linux/kernel/cifs-timeout-2.6.29.patch similarity index 100% rename from pkgs/os-specific/linux/kernel/cifs-timeout.patch rename to pkgs/os-specific/linux/kernel/cifs-timeout-2.6.29.patch diff --git a/pkgs/os-specific/linux/kernel/cifs-timeout-2.6.35.patch b/pkgs/os-specific/linux/kernel/cifs-timeout-2.6.35.patch new file mode 100644 index 000000000000..8043739ee9a8 --- /dev/null +++ b/pkgs/os-specific/linux/kernel/cifs-timeout-2.6.35.patch @@ -0,0 +1,45 @@ +--- /tmp/linux-2.6.32.14/fs/cifs/transport.c 2010-11-22 20:01:26.000000000 +0100 ++++ linux-2.6.32.14/fs/cifs/transport.c 2011-03-29 15:31:14.926510480 +0200 +@@ -166,8 +166,8 @@ + after the retries we will kill the socket and + reconnect which may clear the network problem. + */ +- if ((i >= 14) || (!server->noblocksnd && (i > 2))) { +- cERROR(1, "sends on sock %p stuck for 15 seconds", ++ if ((i >= 119) || (!server->noblocksnd && (i > 2))) { ++ cERROR(1, "sends on sock %p stuck for 119 seconds", + ssocket); + rc = -EAGAIN; + break; +@@ -458,11 +458,11 @@ + goto out; + + if (long_op == CIFS_STD_OP) +- timeout = 15 * HZ; ++ timeout = 120 * HZ; + else if (long_op == CIFS_VLONG_OP) /* e.g. slow writes past EOF */ + timeout = 180 * HZ; + else if (long_op == CIFS_LONG_OP) +- timeout = 45 * HZ; /* should be greater than ++ timeout = 120 * HZ; /* should be greater than + servers oplock break timeout (about 43 seconds) */ + else if (long_op == CIFS_ASYNC_OP) + goto out; +@@ -650,7 +650,7 @@ + goto out; + + if (long_op == CIFS_STD_OP) +- timeout = 15 * HZ; ++ timeout = 120 * HZ; + /* wait for 15 seconds or until woken up due to response arriving or + due to last connection to this server being unmounted */ + else if (long_op == CIFS_ASYNC_OP) +@@ -658,7 +658,7 @@ + else if (long_op == CIFS_VLONG_OP) /* writes past EOF can be slow */ + timeout = 180 * HZ; + else if (long_op == CIFS_LONG_OP) +- timeout = 45 * HZ; /* should be greater than ++ timeout = 120 * HZ; /* should be greater than + servers oplock break timeout (about 43 seconds) */ + else if (long_op == CIFS_BLOCKING_OP) + timeout = 0x7FFFFFFF; /* large but no so large as to wrap */ diff --git a/pkgs/os-specific/linux/kernel/cifs-timeout-2.6.38.patch b/pkgs/os-specific/linux/kernel/cifs-timeout-2.6.38.patch new file mode 100644 index 000000000000..8168ffb5a1af --- /dev/null +++ b/pkgs/os-specific/linux/kernel/cifs-timeout-2.6.38.patch @@ -0,0 +1,13 @@ +--- /tmp/linux-2.6.32.14/fs/cifs/transport.c 2011-03-27 20:37:20.000000000 +0200 ++++ linux-2.6.32.14/fs/cifs/transport.c 2011-04-01 11:07:17.700305670 +0200 +@@ -182,8 +182,8 @@ + after the retries we will kill the socket and + reconnect which may clear the network problem. + */ +- if ((i >= 14) || (!server->noblocksnd && (i > 2))) { +- cERROR(1, "sends on sock %p stuck for 15 seconds", ++ if ((i >= 119) || (!server->noblocksnd && (i > 2))) { ++ cERROR(1, "sends on sock %p stuck for 119 seconds", + ssocket); + rc = -EAGAIN; + break; diff --git a/pkgs/os-specific/linux/kernel/generic.nix b/pkgs/os-specific/linux/kernel/generic.nix index 42cefd5b584f..3fa316b1224b 100644 --- a/pkgs/os-specific/linux/kernel/generic.nix +++ b/pkgs/os-specific/linux/kernel/generic.nix @@ -35,6 +35,10 @@ , extraMeta ? {} , ubootChooser ? null , postInstall ? "" + +, # After the builder did a 'make all' (kernel + modules) + # we force building the target asked: bzImage/zImage/uImage/... + postBuild ? "make $makeFlags $kernelTarget; make $makeFlags -C scripts unifdef" , ... }: @@ -65,7 +69,7 @@ stdenv.mkDerivation { # Combine the `features' attribute sets of all the kernel patches. features = lib.fold (x: y: (if x ? features then x.features else {}) // y) features kernelPatches; }; - + builder = ./builder.sh; generateConfig = ./generate-config.pl; @@ -87,7 +91,7 @@ stdenv.mkDerivation { kernelBaseConfig = stdenv.platform.kernelBaseConfig; kernelTarget = stdenv.platform.kernelTarget; autoModules = stdenv.platform.kernelAutoModules; - + # Should we trust platform.kernelArch? We can only do # that once we differentiate i686/x86_64 in platforms. arch = @@ -133,5 +137,6 @@ stdenv.mkDerivation { license = "GPLv2"; homepage = http://www.kernel.org/; maintainers = [ lib.maintainers.eelco ]; + platforms = lib.platforms.linux; } // extraMeta; } diff --git a/pkgs/os-specific/linux/kernel/linux-2.6.15.nix b/pkgs/os-specific/linux/kernel/linux-2.6.15.nix new file mode 100644 index 000000000000..2dd67f46167c --- /dev/null +++ b/pkgs/os-specific/linux/kernel/linux-2.6.15.nix @@ -0,0 +1,48 @@ +{ stdenv, fetchurl, extraConfig ? "", ... } @ args: + +let + configWithPlatform = kernelPlatform: + '' + # Don't include any debug features. + DEBUG_KERNEL n + + # Support drivers that need external firmware. + STANDALONE n + + # Make /proc/config.gz available. + IKCONFIG_PROC y + + # Optimize with -O2, not -Os. + CC_OPTIMIZE_FOR_SIZE n + + # Enable various subsystems. + MTD_COMPLEX_MAPPINGS y # needed for many devices + + # Networking options. + IP_PNP n + IPV6_PRIVACY y + + # Filesystem options - in particular, enable extended attributes and + # ACLs for all filesystems that support them. + CIFS_XATTR y + CIFS_POSIX y + + ${extraConfig} + ''; +in + +import ./generic.nix (rec { + version = "2.6.15.7"; + postBuild = "make $makeFlags $kernelTarget"; + + src = fetchurl { + url = "ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-${version}.tar.bz2"; + sha256 = "43e0c251924324749b06464512532c3002d6294520faabdba5b3aea4e840b48b"; + }; + + config = configWithPlatform stdenv.platform; + configCross = configWithPlatform stdenv.cross.platform; +} + +// removeAttrs args ["extraConfig"] +) \ No newline at end of file diff --git a/pkgs/os-specific/linux/kernel/linux-2.6.26.nix b/pkgs/os-specific/linux/kernel/linux-2.6.26.nix new file mode 100644 index 000000000000..b402cdea7426 --- /dev/null +++ b/pkgs/os-specific/linux/kernel/linux-2.6.26.nix @@ -0,0 +1,177 @@ +{ stdenv, fetchurl, extraConfig ? "", ... } @ args: + +let + configWithPlatform = kernelPlatform : + '' + # Don't include any debug features. + DEBUG_KERNEL n + + # Activate /proc/sys/kernel/modprobe + KMOD y + + # Support drivers that need external firmware. + STANDALONE n + + # Make /proc/config.gz available. + IKCONFIG_PROC y + + # Optimize with -O2, not -Os. + CC_OPTIMIZE_FOR_SIZE n + + # Virtualisation (KVM, Xen...). + PARAVIRT_GUEST y + KVM_CLOCK y + KVM_GUEST y + + # Include the CFQ I/O scheduler in the kernel, rather than as a + # module, so that the initrd gets a good I/O scheduler. + IOSCHED_CFQ y + + # Disable some expensive (?) features. + MARKERS n + KPROBES n + NUMA? n + + # Enable various subsystems. + ACCESSIBILITY y # Accessibility support + AUXDISPLAY y # Auxiliary Display support + DONGLE y # Serial dongle support + HIPPI y + MTD_COMPLEX_MAPPINGS y # needed for many devices + NET_POCKET y # enable pocket and portable adapters + SCSI_LOWLEVEL y # enable lots of SCSI devices + SCSI_LOWLEVEL_PCMCIA y + SPI y # needed for many devices + SPI_MASTER y + WAN y + + # Networking options. + IP_PNP n + IPV6_PRIVACY y + + # Some settings to make sure that fbcondecor works - in particular, + # disable tileblitting and the drivers that need it. + + # Enable various FB devices. + FB_EFI y + FB_NVIDIA_I2C y # Enable DDC Support + FB_RIVA_I2C y + FB_ATY_CT y # ach64 CT/VT/GT/LT (incl. 3D RAGE) support + FB_ATY_GX y # Mach64 GX support + FB_SAVAGE_I2C y + FB_SAVAGE_ACCEL y + FB_SIS_300 y + FB_SIS_315 y + FB_3DFX_ACCEL y + FB_TRIDENT_ACCEL y + FB_GEODE y + + # Sound. + SND_AC97_POWER_SAVE y # AC97 Power-Saving Mode + SND_USB_CAIAQ_INPUT y + PSS_MIXER y # Enable PSS mixer (Beethoven ADSP-16 and other compatible) + + # Enable a bunch of USB storage devices. + USB_STORAGE_DATAFAB y + USB_STORAGE_FREECOM y + USB_STORAGE_ISD200 y + USB_STORAGE_USBAT y + USB_STORAGE_SDDR09 y + USB_STORAGE_SDDR55 y + USB_STORAGE_JUMPSHOT y + USB_STORAGE_ONETOUCH y + USB_STORAGE_KARMA y + USB_STORAGE_CYPRESS_ATACB y + + # USB serial devices. + USB_SERIAL_GENERIC y # USB Generic Serial Driver + USB_SERIAL_KEYSPAN_MPR y # include firmware for various USB serial devices + USB_SERIAL_KEYSPAN_USA28 y + USB_SERIAL_KEYSPAN_USA28X y + USB_SERIAL_KEYSPAN_USA28XA y + USB_SERIAL_KEYSPAN_USA28XB y + USB_SERIAL_KEYSPAN_USA19 y + USB_SERIAL_KEYSPAN_USA18X y + USB_SERIAL_KEYSPAN_USA19W y + USB_SERIAL_KEYSPAN_USA19QW y + USB_SERIAL_KEYSPAN_USA19QI y + USB_SERIAL_KEYSPAN_USA49W y + USB_SERIAL_KEYSPAN_USA49WLC y + + # Filesystem options - in particular, enable extended attributes and + # ACLs for all filesystems that support them. + EXT2_FS_XATTR y # Ext2 extended attributes + EXT2_FS_POSIX_ACL y # Ext2 POSIX Access Control Lists + EXT2_FS_SECURITY y # Ext2 Security Labels + EXT2_FS_XIP y # Ext2 execute in place support + REISERFS_FS_XATTR y + REISERFS_FS_POSIX_ACL y + REISERFS_FS_SECURITY y + JFS_POSIX_ACL y + JFS_SECURITY y + XFS_QUOTA y + XFS_POSIX_ACL y + XFS_RT y # XFS Realtime subvolume support + OCFS2_DEBUG_MASKLOG n + NFSD_V2_ACL y + NFSD_V3 y + NFSD_V3_ACL y + NFSD_V4 y + CIFS_XATTR y + CIFS_POSIX y + + # Misc. options. + 8139TOO_8129 y + 8139TOO_PIO n # PIO is slower + AIC79XX_DEBUG_ENABLE n + AIC7XXX_DEBUG_ENABLE n + AIC94XX_DEBUG n + BLK_DEV_BSG n + BLK_DEV_IDEACPI y # IDE ACPI support + BLK_DEV_IO_TRACE n + BT_HCIUART_BCSP y + BT_HCIUART_H4 y # UART (H4) protocol support + BT_HCIUART_LL y + BT_RFCOMM_TTY y # RFCOMM TTY support + CPU_FREQ_DEBUG n + CRASH_DUMP n + DMAR? n # experimental + FUSION y # Fusion MPT device support + IRDA_ULTRA y # Ultra (connectionless) protocol + KALLSYMS_EXTRA_PASS n + LOGO n # not needed + MEDIA_ATTACH y + MEGARAID_NEWGEN y + MODVERSIONS y + NET_FC y # Fibre Channel driver support + PCI_LEGACY y + PPP_MULTILINK y # PPP multilink support + SCSI_LOGGING y # SCSI logging facility + SERIAL_8250 y # 8250/16550 and compatible serial support + SLIP_COMPRESSED y # CSLIP compressed headers + SLIP_SMART y + THERMAL_HWMON y # Hardware monitoring support + USB_DEBUG n + USB_EHCI_ROOT_HUB_TT y # Root Hub Transaction Translators + X86_MCE y + + ${extraConfig} + ''; +in + +import ./generic.nix ( + + rec { + version = "2.6.26.8"; + + src = fetchurl { + url = "ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-${version}.tar.bz2"; + sha256 = "4f2991378a09bd4ba916236cba200052c18e52e44c9d7e4100337f7df2788dc9"; + }; + + config = configWithPlatform stdenv.platform; + configCross = configWithPlatform stdenv.cross.platform; + } + + // removeAttrs args ["extraConfig"] +) diff --git a/pkgs/os-specific/linux/kernel/linux-2.6.31.nix b/pkgs/os-specific/linux/kernel/linux-2.6.31.nix index d248e8f86083..523f3c9ceb5c 100644 --- a/pkgs/os-specific/linux/kernel/linux-2.6.31.nix +++ b/pkgs/os-specific/linux/kernel/linux-2.6.31.nix @@ -1,63 +1,214 @@ -args @ {stdenv, fetchurl, userModeLinux ? false, oldI686 ? false, ...}: +{ stdenv, fetchurl, extraConfig ? "", ... } @ args: -assert !userModeLinux; +let + configWithPlatform = kernelPlatform: + '' + # Don't include any debug features. + DEBUG_KERNEL n + + # Support drivers that need external firmware. + STANDALONE n + + # Make /proc/config.gz available. + IKCONFIG_PROC y + + # Optimize with -O2, not -Os. + CC_OPTIMIZE_FOR_SIZE n + + # Enable the kernel's built-in memory tester. + MEMTEST y + + # Include the CFQ I/O scheduler in the kernel, rather than as a + # module, so that the initrd gets a good I/O scheduler. + IOSCHED_CFQ y + + # Disable some expensive (?) features. + FTRACE n + KPROBES n + NUMA? n + PM_TRACE_RTC n + + # Enable various subsystems. + ACCESSIBILITY y # Accessibility support + AUXDISPLAY y # Auxiliary Display support + DONGLE y # Serial dongle support + HIPPI y + MTD_COMPLEX_MAPPINGS y # needed for many devices + NET_POCKET y # enable pocket and portable adapters + SCSI_LOWLEVEL y # enable lots of SCSI devices + SCSI_LOWLEVEL_PCMCIA y + SPI y # needed for many devices + SPI_MASTER y + WAN y + + # Networking options. + IP_PNP n + IPV6_PRIVACY y + NETFILTER_ADVANCED y + IP_VS_PROTO_TCP y + IP_VS_PROTO_UDP y + IP_VS_PROTO_ESP y + IP_VS_PROTO_AH y + IP_DCCP_CCID3 n # experimental + CLS_U32_PERF y + CLS_U32_MARK y + + # Wireless networking. + IPW2100_MONITOR y # support promiscuous mode + IPW2200_MONITOR y # support promiscuous mode + IWLWIFI_LEDS? y + IWLWIFI_SPECTRUM_MEASUREMENT y + IWL3945_SPECTRUM_MEASUREMENT y + IWL4965 y # Intel Wireless WiFi 4965AGN + IWL5000 y # Intel Wireless WiFi 5000AGN + HOSTAP_FIRMWARE y # Support downloading firmware images with Host AP driver + HOSTAP_FIRMWARE_NVRAM y + + # Some settings to make sure that fbcondecor works - in particular, + # disable tileblitting and the drivers that need it. + + # Enable various FB devices. + FB y + FB_EFI y + FB_NVIDIA_I2C y # Enable DDC Support + FB_RIVA_I2C y + FB_ATY_CT y # Mach64 CT/VT/GT/LT (incl. 3D RAGE) support + FB_ATY_GX y # Mach64 GX support + FB_SAVAGE_I2C y + FB_SAVAGE_ACCEL y + FB_SIS_300 y + FB_SIS_315 y + FB_3DFX_ACCEL y + FB_GEODE y + + # Video configuration + # The intel drivers already require KMS + DRM_I915_KMS y + + # Sound. + SND_AC97_POWER_SAVE y # AC97 Power-Saving Mode + SND_HDA_INPUT_BEEP y # Support digital beep via input layer + SND_USB_CAIAQ_INPUT y + PSS_MIXER y # Enable PSS mixer (Beethoven ADSP-16 and other compatible) + + # USB serial devices. + USB_SERIAL_GENERIC y # USB Generic Serial Driver + USB_SERIAL_KEYSPAN_MPR y # include firmware for various USB serial devices + USB_SERIAL_KEYSPAN_USA28 y + USB_SERIAL_KEYSPAN_USA28X y + USB_SERIAL_KEYSPAN_USA28XA y + USB_SERIAL_KEYSPAN_USA28XB y + USB_SERIAL_KEYSPAN_USA19 y + USB_SERIAL_KEYSPAN_USA18X y + USB_SERIAL_KEYSPAN_USA19W y + USB_SERIAL_KEYSPAN_USA19QW y + USB_SERIAL_KEYSPAN_USA19QI y + USB_SERIAL_KEYSPAN_USA49W y + USB_SERIAL_KEYSPAN_USA49WLC y + + # Filesystem options - in particular, enable extended attributes and + # ACLs for all filesystems that support them. + EXT2_FS_XATTR y # Ext2 extended attributes + EXT2_FS_POSIX_ACL y # Ext2 POSIX Access Control Lists + EXT2_FS_SECURITY y # Ext2 Security Labels + EXT2_FS_XIP y # Ext2 execute in place support + EXT4_FS_POSIX_ACL y + EXT4_FS_SECURITY y + REISERFS_FS_XATTR y + REISERFS_FS_POSIX_ACL y + REISERFS_FS_SECURITY y + JFS_POSIX_ACL y + JFS_SECURITY y + XFS_QUOTA y + XFS_POSIX_ACL y + XFS_RT y # XFS Realtime subvolume support + OCFS2_DEBUG_MASKLOG n + OCFS2_FS_POSIX_ACL y + BTRFS_FS_POSIX_ACL y + UBIFS_FS_XATTR y + UBIFS_FS_ADVANCED_COMPR y + NFSD_V2_ACL y + NFSD_V3 y + NFSD_V3_ACL y + NFSD_V4 y + CIFS_XATTR y + CIFS_POSIX y + + # Security related features. + STRICT_DEVMEM y # Filter access to /dev/mem + SECURITY_SELINUX_BOOTPARAM_VALUE 0 # disable SELinux by default + + # Misc. options. + 8139TOO_8129 y + 8139TOO_PIO n # PIO is slower + AIC79XX_DEBUG_ENABLE n + AIC7XXX_DEBUG_ENABLE n + AIC94XX_DEBUG n + B43_PCMCIA y + BLK_DEV_BSG n + BLK_DEV_CMD640_ENHANCED y # CMD640 enhanced support + BLK_DEV_IDEACPI y # IDE ACPI support + BLK_DEV_INTEGRITY y + BSD_PROCESS_ACCT_V3 y + BT_HCIUART_BCSP y + BT_HCIUART_H4 y # UART (H4) protocol support + BT_HCIUART_LL y + BT_RFCOMM_TTY y # RFCOMM TTY support + CPU_FREQ_DEBUG n + CRASH_DUMP n + DMAR? n # experimental + DVB_DYNAMIC_MINORS y # we use udev + FUSION y # Fusion MPT device support + IDE_GD_ATAPI y # ATAPI floppy support + IRDA_ULTRA y # Ultra (connectionless) protocol + JOYSTICK_IFORCE_232 y # I-Force Serial joysticks and wheels + JOYSTICK_IFORCE_USB y # I-Force USB joysticks and wheels + JOYSTICK_XPAD_FF y # X-Box gamepad rumble support + JOYSTICK_XPAD_LEDS y # LED Support for Xbox360 controller 'BigX' LED + KALLSYMS_EXTRA_PASS n + LDM_PARTITION y # Windows Logical Disk Manager (Dynamic Disk) support + LEDS_TRIGGER_IDE_DISK y # LED IDE Disk Trigger + LOGIRUMBLEPAD2_FF y # Logitech Rumblepad 2 force feedback + LOGO n # not needed + MEDIA_ATTACH y + MEGARAID_NEWGEN y + MICROCODE_AMD y + MODVERSIONS y + MOUSE_PS2_ELANTECH y # Elantech PS/2 protocol extension + MTRR_SANITIZER y + NET_FC y # Fibre Channel driver support + PCI_LEGACY y + PPP_MULTILINK y # PPP multilink support + REGULATOR y # Voltage and Current Regulator Support + SCSI_LOGGING y # SCSI logging facility + SERIAL_8250 y # 8250/16550 and compatible serial support + SLIP_COMPRESSED y # CSLIP compressed headers + SLIP_SMART y + THERMAL_HWMON y # Hardware monitoring support + USB_DEBUG n + USB_EHCI_ROOT_HUB_TT y # Root Hub Transaction Translators + X86_CHECK_BIOS_CORRUPTION y + X86_MCE y + + ${extraConfig} + ''; +in import ./generic.nix ( rec { version = "2.6.31.14"; - + src = fetchurl { url = "mirror://kernel/linux/kernel/v2.6/linux-${version}.tar.bz2"; sha256 = "1c6ivcjgns4gbx04mhnhndqikm3prqhhfm2a5zrb1mfyvvishqpp"; }; - features = { - iwlwifi = true; - }; + config = configWithPlatform stdenv.platform; + configCross = configWithPlatform stdenv.cross.platform; - preConfigure = if (stdenv.system != "armv5tel-linux") then '' - killOption () { - sed -re 's/^('"$1"')=[ym]/# \1 is not set/' -i .config - } - setOptionMod () { - sed -re 's/^# ('"$1"') is not set/\1=m/' -i .config - sed -re "1i$1=m" -i .config - } - setOptionYes () { - sed -re 's/^# ('"$1"') is not set/\1=y/' -i .config - sed -re "1i$1=y" -i .config - } - - make allmodconfig - - killOption CONFIG_CMDLINE_OVERRIDE - - killOption CONFIG_IMA - killOption 'CONFIG_.*_DEBUG.*' - killOption 'CONFIG_DEBUG.*' - killOption CONFIG_AUDIT_ARCH - killOption CONFIG_PERF_COUNTERS - killOption 'CONFIG_GCOV.*' - killOption 'CONFIG_KGDB.*' - killOption 'CONFIG_.*_TEST' - - killOption 'CONFIG_USB_OTG_BLACKLIST_HUB' - - killOption CONFIG_KERNEL_BZIP2 - killOption CONFIG_KERNEL_LZMA - setOptionYes CONFIG_KERNEL_GZIP - - killOption CONFIG_TASKSTATS - killOption CONFIG_PREEMPT_NONE - setOptionYes CONFIG_PREEMPT_VOLUNTARY - - cp .config ${config} - '' else ""; - - config = if (stdenv.system == "armv5tel-linux") then - (./config-2.6.31-armv5tel) else "./kernel-config"; + features.iwlwifi = true; } - // args + // removeAttrs args ["extraConfig"] ) diff --git a/pkgs/os-specific/linux/kernel/patches.nix b/pkgs/os-specific/linux/kernel/patches.nix index 47154600aa0d..902be41f874c 100644 --- a/pkgs/os-specific/linux/kernel/patches.nix +++ b/pkgs/os-specific/linux/kernel/patches.nix @@ -38,7 +38,7 @@ let in -{ +rec { sec_perm_2_6_24 = { name = "sec_perm-2.6.24"; @@ -55,7 +55,7 @@ in extraConfig = fbcondecorConfig; features.fbConDecor = true; }; - + fbcondecor_2_6_27 = { name = "fbcondecor-0.9.4-2.6.27"; patch = fetchurl { @@ -75,7 +75,7 @@ in extraConfig = fbcondecorConfig; features.fbConDecor = true; }; - + fbcondecor_2_6_29 = { name = "fbcondecor-0.9.6-2.6.29.2"; patch = fetchurl { @@ -85,7 +85,7 @@ in extraConfig = fbcondecorConfig; features.fbConDecor = true; }; - + fbcondecor_2_6_31 = { name = "fbcondecor-0.9.6-2.6.31.2"; patch = fetchurl { @@ -148,7 +148,7 @@ in }; }; - gcov_2_6_28 = + gcov_2_6_28 = { name = "gcov"; patch = fetchurl { url = http://buildfarm.st.ewi.tudelft.nl/~eelco/dist/linux-2.6.28-gcov.patch; @@ -235,12 +235,38 @@ in # Increase the timeout on CIFS requests from 15 to 120 seconds to # make CIFS more resilient to high load on the CIFS server. - cifs_timeout = + cifs_timeout_2_6_15 = { name = "cifs-timeout"; - patch = ./cifs-timeout.patch; + patch = ./cifs-timeout-2.6.15.patch; features.cifsTimeout = true; }; + cifs_timeout_2_6_25 = + { name = "cifs-timeout"; + patch = ./cifs-timeout-2.6.25.patch; + features.cifsTimeout = true; + }; + + cifs_timeout_2_6_29 = + { name = "cifs-timeout"; + patch = ./cifs-timeout-2.6.29.patch; + features.cifsTimeout = true; + }; + + cifs_timeout_2_6_35 = + { name = "cifs-timeout"; + patch = ./cifs-timeout-2.6.35.patch; + features.cifsTimeout = true; + }; + + cifs_timeout_2_6_38 = + { name = "cifs-timeout"; + patch = ./cifs-timeout-2.6.38.patch; + features.cifsTimeout = true; + }; + + cifs_timeout = cifs_timeout_2_6_29; + no_xsave = { name = "no-xsave"; patch = fetchurl { diff --git a/pkgs/os-specific/linux/udev/145.nix b/pkgs/os-specific/linux/udev/145.nix new file mode 100644 index 000000000000..fd1cb8a2d8dc --- /dev/null +++ b/pkgs/os-specific/linux/udev/145.nix @@ -0,0 +1,53 @@ +{ stdenv, fetchurl, gperf, pkgconfig, glib, acl, libusb, usbutils, pciutils }: + +assert stdenv ? glibc; + +stdenv.mkDerivation rec { + name = "udev-145"; + + src = fetchurl { + url = "mirror://kernel/linux/utils/kernel/hotplug/${name}.tar.bz2"; + sha256 = "1zmibp6n7d582fqx8vmg9vb2a1435hghfpz36056bc25ccwf7yiv"; + }; + + buildInputs = [gperf pkgconfig glib acl libusb usbutils]; + + configureFlags = "--with-pci-ids-path=${pciutils}/share/pci.ids"; + + preConfigure = + '' + substituteInPlace extras/keymap/Makefile.in \ + --replace /usr/include ${stdenv.glibc}/include + ''; + + postInstall = + '' + # Install some rules that really should be installed by default. + for i in 40-alsa.rules 40-infiniband.rules 40-isdn.rules 40-pilot-links.rules 64-device-mapper.rules 64-md-raid.rules; do + cp rules/packages/$i $out/libexec/rules.d/ + done + + # The path to rule_generator.functions in write_cd_rules and + # write_net_rules is broken. Also, don't store the mutable + # persistant rules in /etc/udev/rules.d but in + # /var/lib/udev/rules.d. + for i in $out/libexec/write_cd_rules $out/libexec/write_net_rules; do + substituteInPlace $i \ + --replace /lib/udev $out/libexec \ + --replace /etc/udev/rules.d /var/lib/udev/rules.d + done + + # Don't set PATH to /bin:/sbin; won't work in NixOS. + substituteInPlace $out/libexec/rule_generator.functions \ + --replace 'PATH=' '#PATH=' + + # Don't hardcore the FIRMWARE_DIRS variable; obtain it from the + # environment of the caller. + sed '3,4d' -i $out/libexec/firmware.sh + ''; + + meta = { + homepage = http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html; + description = "Udev manages the /dev filesystem"; + }; +} diff --git a/pkgs/os-specific/linux/udev/default.nix b/pkgs/os-specific/linux/udev/172.nix similarity index 100% rename from pkgs/os-specific/linux/udev/default.nix rename to pkgs/os-specific/linux/udev/172.nix diff --git a/pkgs/os-specific/linux/util-linux-ng/default.nix b/pkgs/os-specific/linux/util-linux-ng/default.nix index 2ae172c6c190..4e62be4ff32d 100644 --- a/pkgs/os-specific/linux/util-linux-ng/default.nix +++ b/pkgs/os-specific/linux/util-linux-ng/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, ncurses ? null }: +{ stdenv, fetchurl, ncurses ? null, perl ? null }: stdenv.mkDerivation rec { name = "util-linux-ng-2.18"; @@ -19,5 +19,6 @@ stdenv.mkDerivation rec { ${if ncurses == null then "--without-ncurses" else ""} ''; - buildInputs = stdenv.lib.optional (ncurses != null) ncurses; + buildInputs = stdenv.lib.optional (ncurses != null) ncurses + ++ stdenv.lib.optional (perl != null) perl; } diff --git a/pkgs/servers/http/apache-modules/mod_fastcgi/default.nix b/pkgs/servers/http/apache-modules/mod_fastcgi/default.nix index 4a016f991ebd..5fdf74551723 100644 --- a/pkgs/servers/http/apache-modules/mod_fastcgi/default.nix +++ b/pkgs/servers/http/apache-modules/mod_fastcgi/default.nix @@ -30,7 +30,7 @@ stdenv.mkDerivation { more scalable. ''; - platforms = stdenv.lib.platforms.unix; + platforms = stdenv.lib.platforms.linux; maintainers = [ stdenv.lib.maintainers.simons ]; }; } diff --git a/pkgs/servers/http/apache-modules/mod_wsgi/default.nix b/pkgs/servers/http/apache-modules/mod_wsgi/default.nix index b5073428754c..c8f0da7040cc 100644 --- a/pkgs/servers/http/apache-modules/mod_wsgi/default.nix +++ b/pkgs/servers/http/apache-modules/mod_wsgi/default.nix @@ -21,7 +21,7 @@ stdenv.mkDerivation { description = "Host Python applications in Apache through the WSGI interface"; license = "ASL2.0"; - platforms = stdenv.lib.platforms.unix; + platforms = stdenv.lib.platforms.linux; maintainers = [ stdenv.lib.maintainers.simons ]; }; } diff --git a/pkgs/servers/mediatomb/default.nix b/pkgs/servers/mediatomb/default.nix new file mode 100644 index 000000000000..d040a4c9a57a --- /dev/null +++ b/pkgs/servers/mediatomb/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchurl +, sqlite, expat, spidermonkey, taglib, libexif, curl, ffmpeg, file }: +stdenv.mkDerivation rec { + + name = "mediatomb-${version}"; + version = "0.12.1"; + + src = fetchurl { + url = "mirror://sourceforge/mediatomb/${name}.tar.gz"; + sha256 = "1k8i5zvgik7cad7znd8358grzwh62frpqww1a5rwkldrlws3q5ii"; + }; + + buildInputs = [ sqlite expat spidermonkey taglib libexif curl ffmpeg file ]; + + configureFlags = [ "--enable-inotify" ]; + + meta = with stdenv.lib; { + homepage = http://mediatomb.cc; + description = "UPnP MediaServer with a web user interface,"; + license = licenses.gpl2; + maintainers = [ maintainers.phreedom ]; + platforms = platforms.linux; + }; +} \ No newline at end of file diff --git a/pkgs/servers/x11/xorg/default.nix b/pkgs/servers/x11/xorg/default.nix index ae56e00762b5..f25289a683a3 100644 --- a/pkgs/servers/x11/xorg/default.nix +++ b/pkgs/servers/x11/xorg/default.nix @@ -1428,11 +1428,11 @@ let })) // {inherit fontsproto libpciaccess randrproto renderproto videoproto xextproto xorgserver xproto ;}; xf86videoati = (stdenv.mkDerivation ((if overrides ? xf86videoati then overrides.xf86videoati else x: x) { - name = "xf86-video-ati-6.14.0"; + name = "xf86-video-ati-6.14.2"; builder = ./builder.sh; src = fetchurl { - url = mirror://xorg/individual/driver/xf86-video-ati-6.14.0.tar.bz2; - sha256 = "12q2b6wj53h23iy9bkm6x8zidan3xqfszhkzyr4qm043x21szjlx"; + url = mirror://xorg/individual/driver/xf86-video-ati-6.14.2.tar.bz2; + sha256 = "017974b622eea3b4483405368492b0c6f178854a9b9753d50e13c578b8a328dc"; }; buildInputs = [pkgconfig fontsproto libdrm udev libpciaccess randrproto renderproto videoproto xextproto xf86driproto xorgserver xproto ]; })) // {inherit fontsproto libdrm udev libpciaccess randrproto renderproto videoproto xextproto xf86driproto xorgserver xproto ;}; diff --git a/pkgs/servers/x11/xorg/tarballs-7.6.list b/pkgs/servers/x11/xorg/tarballs-7.6.list index 5b6059cd575a..c8039d24671c 100644 --- a/pkgs/servers/x11/xorg/tarballs-7.6.list +++ b/pkgs/servers/x11/xorg/tarballs-7.6.list @@ -127,7 +127,7 @@ 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 mirror://xorg/X11R7.6/src/everything/xf86-video-ark-0.7.3.tar.bz2 mirror://xorg/X11R7.6/src/everything/xf86-video-ast-0.91.10.tar.bz2 -mirror://xorg/individual/driver/xf86-video-ati-6.14.0.tar.bz2 +mirror://xorg/individual/driver/xf86-video-ati-6.14.2.tar.bz2 mirror://xorg/X11R7.6/src/everything/xf86-video-chips-1.2.3.tar.bz2 mirror://xorg/X11R7.6/src/everything/xf86-video-cirrus-1.3.2.tar.bz2 mirror://xorg/X11R7.6/src/everything/xf86-video-dummy-0.3.4.tar.bz2 diff --git a/pkgs/tools/filesystems/archivemount/default.nix b/pkgs/tools/filesystems/archivemount/default.nix new file mode 100644 index 000000000000..c05d2e98af32 --- /dev/null +++ b/pkgs/tools/filesystems/archivemount/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchurl, pkgconfig, fuse, libarchive }: + +let + name = "archivemount-0.6.1"; +in +stdenv.mkDerivation { + inherit name; + + src = fetchurl { + url = "http://www.cybernoia.de/software/archivemount/${name}.tar.gz"; + sha256 = "9235d6377a70a7c25aa288dab6b0e8ef906d1d219d43e5b8fcdb8cf3ace98e01"; + }; + + buildInputs = [ pkgconfig fuse libarchive ]; + + meta = { + description = "Gateway between FUSE and libarchive: allows mounting of cpio, .tar.gz, .tar.bz2 archives."; + license = "GPL2"; + + platforms = stdenv.lib.platforms.linux; + maintainers = [ stdenv.lib.maintainers.simons ]; + }; +} diff --git a/pkgs/tools/graphics/glxinfo/default.nix b/pkgs/tools/graphics/glxinfo/default.nix index d1978134a710..02db33f92cb1 100644 --- a/pkgs/tools/graphics/glxinfo/default.nix +++ b/pkgs/tools/graphics/glxinfo/default.nix @@ -1,23 +1,27 @@ {stdenv, fetchurl, x11, mesa}: +let version = "8.0.1"; in + stdenv.mkDerivation { - name = "glxinfo-7.8.2"; - + name = "glxinfo-${version}"; + src = fetchurl { - url = ftp://ftp.freedesktop.org/pub/mesa/7.8.2/MesaDemos-7.8.2.tar.bz2; - md5 = "757d9e2e06f48b1a52848be9b0307ced"; + url = "ftp://ftp.freedesktop.org/pub/mesa/demos/${version}/mesa-demos-${version}.tar.bz2"; + sha256 = "1lbp1llpx0hl5k79xb653yvjvk9mlikj73r8xjzyxqqp1nrg5isb"; }; buildInputs = [x11 mesa]; + configurePhase = "true"; + buildPhase = " - cd progs/xdemos - gcc glxinfo.c -o glxinfo -lGL -lX11 + cd src/xdemos + gcc glxinfo.c -o glxinfo -lGL -lX11 gcc glxgears.c -o glxgears -lGL -lX11 "; installPhase = " ensureDir $out/bin - cp glxinfo glxgears $out/bin + cp glxinfo glxgears $out/bin/ "; } diff --git a/pkgs/tools/networking/nbd/default.nix b/pkgs/tools/networking/nbd/default.nix index e411772f3615..0e795ed739e2 100644 --- a/pkgs/tools/networking/nbd/default.nix +++ b/pkgs/tools/networking/nbd/default.nix @@ -1,14 +1,14 @@ { stdenv, fetchurl, pkgconfig, glib }: let - name = "nbd-2.9.22"; + name = "nbd-2.9.23"; in stdenv.mkDerivation { inherit name; src = fetchurl { url = "mirror://sourceforge/nbd/${name}.tar.bz2"; - sha256 = "f9e1a9db1663393fd1f2de2dd70cf15cc4fa17616853b717db7ca6c539f8787d"; + sha256 = "0ab44fe9e80c3f41bb1025ecda351a874affd46bf56ba4033ea03700c3b83803"; }; buildInputs = [pkgconfig glib]; diff --git a/pkgs/tools/package-management/disnix/disnixos/default.nix b/pkgs/tools/package-management/disnix/disnixos/default.nix index 70953772c4a9..1a7ca5716044 100644 --- a/pkgs/tools/package-management/disnix/disnixos/default.nix +++ b/pkgs/tools/package-management/disnix/disnixos/default.nix @@ -1,10 +1,10 @@ {stdenv, fetchurl, disnix, socat, pkgconfig}: stdenv.mkDerivation { - name = "disnixos-0.2pre27272"; + name = "disnixos-0.2pre27672"; src = fetchurl { - url = http://hydra.nixos.org/build/1112308/download/3/disnixos-0.2pre27272.tar.gz; - sha256 = "0ij06bz24ig9g6h3pig7kwvndj46vnabpyfb173vy2ll1mx0vqnp"; + url = http://hydra.nixos.org/build/1153468/download/3/disnixos-0.2pre27672.tar.gz; + sha256 = "0z74p9fnvchvl78brj2p3r9h0wwvpl86zk0ynzqcf8ww0h71ws08"; }; buildInputs = [ socat pkgconfig disnix ]; dontStrip = true; diff --git a/pkgs/tools/package-management/nix/unstable.nix b/pkgs/tools/package-management/nix/unstable.nix index c59f0092c222..5cdf879f3220 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.0pre27565"; + name = "nix-1.0pre27764"; src = fetchurl { - url = "http://hydra.nixos.org/build/1138550/download/4/${name}.tar.bz2"; - sha256 = "1hvdvkl7grv1gv1mx1bad7i08ly4acs33mqxalishdhsdm4l9kmr"; + url = "http://hydra.nixos.org/build/1162354/download/4/${name}.tar.bz2"; + sha256 = "fe8117644a67947dd8aa8594181ff893b09806ea7803c842cc0b5be86a31a9c6"; }; buildNativeInputs = [ perl pkgconfig ]; diff --git a/pkgs/tools/system/smartmontools/default.nix b/pkgs/tools/system/smartmontools/default.nix index 8cab529d5c38..140e0008ed83 100644 --- a/pkgs/tools/system/smartmontools/default.nix +++ b/pkgs/tools/system/smartmontools/default.nix @@ -1,11 +1,14 @@ {stdenv, fetchurl}: -stdenv.mkDerivation rec { - name = "smartmontools-5.38"; - +let + name = "smartmontools-5.41"; +in +stdenv.mkDerivation { + inherit name; + src = fetchurl { url = "mirror://sourceforge/smartmontools/${name}.tar.gz"; - sha256 = "1s1i5y5n3jx681y03jj459yy4ijaq564z8bp2cgqb97wl4h762dj"; + sha256 = "173eb14e3253a30230f38c7e684085bcae7fa021efff58bdf94c2702ac76fa32"; }; meta = { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 934dba886ade..e296cd90d4c7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -354,6 +354,8 @@ let aircrackng = callPackage ../tools/networking/aircrack-ng { }; + archivemount = callPackage ../tools/filesystems/archivemount { }; + asymptote = builderDefsPackage ../tools/graphics/asymptote { inherit freeglut ghostscriptX imagemagick fftw boehmgc mesa ncurses readline gsl libsigsegv python zlib perl @@ -403,6 +405,8 @@ let azureus = callPackage ../tools/networking/p2p/azureus { }; + banner = callPackage ../games/banner {}; + barcode = callPackage ../tools/graphics/barcode {}; bc = callPackage ../tools/misc/bc { }; @@ -844,7 +848,9 @@ let jdiskreport = callPackage ../tools/misc/jdiskreport { }; - jfsrec = callPackage ../tools/filesystems/jfsrec { }; + jfsrec = callPackage ../tools/filesystems/jfsrec { + boost = boost144; + }; jfsutils = callPackage ../tools/filesystems/jfsutils { }; @@ -873,7 +879,7 @@ let most = callPackage ../tools/misc/most { }; ninka = callPackage ../development/tools/misc/ninka { }; - + nodejs = callPackage ../development/web/nodejs {}; lftp = callPackage ../tools/networking/lftp { }; @@ -1025,7 +1031,7 @@ let nylon = callPackage ../tools/networking/nylon { }; nzbget = callPackage ../tools/networking/nzbget { }; - + obex_data_server = callPackage ../tools/bluetooth/obex-data-server { }; obexd = callPackage ../tools/bluetooth/obexd { }; @@ -2369,6 +2375,8 @@ let lua5 = callPackage ../development/interpreters/lua-5 { }; + lua5_0 = callPackage ../development/interpreters/lua-5/5.0.3.nix { }; + maude = callPackage ../development/interpreters/maude { }; octave = callPackage ../development/interpreters/octave { @@ -2925,6 +2933,7 @@ let boost = callPackage ../development/libraries/boost { }; boost142 = callPackage ../development/libraries/boost/1.42.nix { }; + boost144 = callPackage ../development/libraries/boost/1.44.nix { }; boost146 = callPackage ../development/libraries/boost/1.46.nix { }; # A Boost build with all library variants enabled. Very large (about 250 MB). @@ -4257,7 +4266,7 @@ let slang = callPackage ../development/libraries/slang { }; slibGuile = callPackage ../development/libraries/slib { - scheme = guile; + scheme = guile_1_8; }; smpeg = callPackage ../development/libraries/smpeg { }; @@ -4370,7 +4379,7 @@ let gstPluginsGood; inherit (xlibs) libXt renderproto libXrender; }; - + webkitSVN = builderDefsPackage ../development/libraries/webkit/svn.nix { inherit (gnome28) gtkdoc libsoup; @@ -4384,7 +4393,7 @@ let gstPluginsGood; inherit (xlibs) libXt renderproto libXrender; }; - + wvstreams = callPackage ../development/libraries/wvstreams { }; wxGTK = wxGTK28; @@ -4691,6 +4700,8 @@ let lighttpd = callPackage ../servers/http/lighttpd { }; + mediatomb = callPackage ../servers/mediatomb { }; + mod_python = callPackage ../servers/http/apache-modules/mod_python { }; mod_fastcgi = callPackage ../servers/http/apache-modules/mod_fastcgi { }; @@ -5053,13 +5064,34 @@ let kernelPatches = callPackage ../os-specific/linux/kernel/patches.nix { }; + linux_2_6_15 = makeOverridable (import ../os-specific/linux/kernel/linux-2.6.15.nix) { + inherit fetchurl perl mktemp module_init_tools; + stdenv = overrideInStdenv stdenv [gcc34 gnumake381]; + kernelPatches = + [ kernelPatches.cifs_timeout_2_6_15 + ]; + }; + linux_2_6_25 = makeOverridable (import ../os-specific/linux/kernel/linux-2.6.25.nix) { + inherit fetchurl perl mktemp module_init_tools; + extraConfig = "KMOD y"; + stdenv = overrideInStdenv stdenv [gnumake381]; + kernelPatches = + [ kernelPatches.fbcondecor_2_6_25 + kernelPatches.sec_perm_2_6_24 + kernelPatches.glibc_getline + kernelPatches.cifs_timeout_2_6_25 + ]; + }; + + linux_2_6_26 = makeOverridable (import ../os-specific/linux/kernel/linux-2.6.26.nix) { inherit fetchurl perl mktemp module_init_tools; stdenv = overrideInStdenv stdenv [gnumake381]; kernelPatches = [ kernelPatches.fbcondecor_2_6_25 kernelPatches.sec_perm_2_6_24 kernelPatches.glibc_getline + kernelPatches.cifs_timeout_2_6_25 ]; }; @@ -5069,6 +5101,7 @@ let kernelPatches = [ kernelPatches.fbcondecor_2_6_27 kernelPatches.sec_perm_2_6_24 + kernelPatches.cifs_timeout_2_6_25 ]; }; @@ -5080,6 +5113,7 @@ let kernelPatches.sec_perm_2_6_24 kernelPatches.ext4_softlockups_2_6_28 kernelPatches.glibc_getline + kernelPatches.cifs_timeout_2_6_25 ]; }; @@ -5088,12 +5122,15 @@ let kernelPatches = [ kernelPatches.fbcondecor_2_6_29 kernelPatches.sec_perm_2_6_24 + kernelPatches.cifs_timeout_2_6_29 ]; }; linux_2_6_31 = makeOverridable (import ../os-specific/linux/kernel/linux-2.6.31.nix) { inherit fetchurl stdenv perl mktemp module_init_tools platform; - kernelPatches = []; + kernelPatches = + [ kernelPatches.cifs_timeout_2_6_29 + ]; }; linux_2_6_32 = makeOverridable (import ../os-specific/linux/kernel/linux-2.6.32.nix) { @@ -5102,7 +5139,7 @@ let [ kernelPatches.fbcondecor_2_6_31 kernelPatches.sec_perm_2_6_24 kernelPatches.aufs2_2_6_32 - kernelPatches.cifs_timeout + kernelPatches.cifs_timeout_2_6_29 kernelPatches.no_xsave kernelPatches.dell_rfkill ]; @@ -5160,6 +5197,7 @@ let kernelPatches = [ kernelPatches.fbcondecor_2_6_33 kernelPatches.sec_perm_2_6_24 + kernelPatches.cifs_timeout_2_6_29 ]; }; @@ -5185,6 +5223,7 @@ let [ /*kernelPatches.fbcondecor_2_6_33*/ kernelPatches.sec_perm_2_6_24 kernelPatches.aufs2_2_6_34 + kernelPatches.cifs_timeout_2_6_29 ]; }; @@ -5200,6 +5239,7 @@ let [ #kernelPatches.fbcondecor_2_6_35 kernelPatches.sec_perm_2_6_24 kernelPatches.aufs2_2_6_35 + kernelPatches.cifs_timeout_2_6_35 ] ++ lib.optional (platform.kernelArch == "arm") kernelPatches.sheevaplug_modules_2_6_35; }; @@ -5228,6 +5268,7 @@ let kernelPatches.sec_perm_2_6_24 #kernelPatches.aufs2_2_6_35 kernelPatches.mips_restart_2_6_36 + kernelPatches.cifs_timeout_2_6_35 ]; }; @@ -5249,6 +5290,7 @@ let kernelPatches.sec_perm_2_6_24 #kernelPatches.aufs2_2_6_35 kernelPatches.mips_restart_2_6_36 + kernelPatches.cifs_timeout_2_6_35 ]; }; @@ -5264,6 +5306,7 @@ let [ kernelPatches.fbcondecor_2_6_37 kernelPatches.sec_perm_2_6_24 kernelPatches.aufs2_1_2_6_37 + kernelPatches.cifs_timeout_2_6_35 #kernelPatches.mips_restart_2_6_36 ]; }; @@ -5280,10 +5323,13 @@ let [ kernelPatches.fbcondecor_2_6_38 kernelPatches.sec_perm_2_6_24 kernelPatches.aufs2_1_2_6_38 + kernelPatches.cifs_timeout_2_6_38 #kernelPatches.mips_restart_2_6_36 ]; }; + linux_2_6_38_ati = linux_2_6_38.override { extraConfig="DRM_RADEON_KMS y"; }; + linux_2_6_39 = makeOverridable (import ../os-specific/linux/kernel/linux-2.6.39.nix) { inherit fetchurl stdenv perl mktemp module_init_tools ubootChooser; kernelPatches = @@ -5422,6 +5468,7 @@ let linuxPackages_2_6_37 = recurseIntoAttrs (linuxPackagesFor linux_2_6_37 pkgs.linuxPackages_2_6_37); linuxPackages_2_6_37_tuxonice = recurseIntoAttrs (linuxPackagesFor linux_2_6_37_tuxonice pkgs.linuxPackages_2_6_37_tuxonice); linuxPackages_2_6_38 = recurseIntoAttrs (linuxPackagesFor linux_2_6_38 pkgs.linuxPackages_2_6_38); + linuxPackages_2_6_38_ati = recurseIntoAttrs (linuxPackagesFor linux_2_6_38_ati pkgs.linuxPackages_2_6_38); linuxPackages_2_6_39 = recurseIntoAttrs (linuxPackagesFor linux_2_6_39 pkgs.linuxPackages_2_6_39); linuxPackages_nanonote_jz_2_6_34 = recurseIntoAttrs (linuxPackagesFor linux_nanonote_jz_2_6_34 pkgs.linuxPackages_nanonote_jz_2_6_34); linuxPackages_nanonote_jz_2_6_35 = recurseIntoAttrs (linuxPackagesFor linux_nanonote_jz_2_6_35 pkgs.linuxPackages_nanonote_jz_2_6_35); @@ -5551,7 +5598,7 @@ let config = getConfig ["pcmciaUtils" "config"] null; }; - phat = callPackage ../development/libraries/phat { + phat = callPackage ../development/libraries/phat { inherit (gnome) gtk libgnomecanvas; }; @@ -5571,6 +5618,9 @@ let radeontools = callPackage ../os-specific/linux/radeontools { }; + radeonR700 = callPackage ../os-specific/linux/firmware/radeon-r700 { }; + radeonR600 = callPackage ../os-specific/linux/firmware/radeon-r600 { }; + rfkill = callPackage ../os-specific/linux/rfkill { }; rt2860fw = callPackage ../os-specific/linux/firmware/rt2860 { }; @@ -5643,7 +5693,9 @@ let cross = assert crossSystem != null; crossSystem; }; - udev = callPackage ../os-specific/linux/udev { }; + udev145 = callPackage ../os-specific/linux/udev/145.nix { }; + udev172 = callPackage ../os-specific/linux/udev/172.nix { }; + udev = udev172; uml = import ../os-specific/linux/kernel/linux-2.6.29.nix { inherit fetchurl stdenv perl mktemp module_init_tools; @@ -5664,12 +5716,13 @@ let utillinuxCurses = utillinuxngCurses; - utillinuxng = callPackage ../os-specific/linux/util-linux-ng { + utillinuxng = lowPrio (callPackage ../os-specific/linux/util-linux-ng { ncurses = null; - }; + perl = null; + }); utillinuxngCurses = utillinuxng.override { - inherit ncurses; + inherit ncurses perl; }; windows = rec { @@ -5897,7 +5950,7 @@ let audacious = callPackage ../applications/audio/audacious { }; - audacity = callPackage ../applications/audio/audacity { + audacity = callPackage ../applications/audio/audacity { portaudio = portaudioSVN; }; @@ -6319,10 +6372,11 @@ let }; gnucash = callPackage ../applications/office/gnucash { - inherit (gnome) gtk glib libglade libgnomeui libgtkhtml gtkhtml - libgnomeprint; + inherit (gnome) gtk glib libgnomeui libgtkhtml gtkhtml + libbonoboui libgnomeprint; gconf = gnome.GConf; guile = guile_1_8; + slibGuile = slibGuile.override { scheme = guile_1_8; }; }; qcad = callPackage ../applications/misc/qcad { }; @@ -6480,9 +6534,9 @@ let ikiwiki = callPackage ../applications/misc/ikiwiki { inherit (perlPackages) TextMarkdown URI HTMLParser HTMLScrubber HTMLTemplate TimeDate CGISession DBFile CGIFormBuilder LocaleGettext - RpcXML XMLSimple PerlMagick; - gitSupport = getConfig [ "ikiwiki" "git" ] false; - monotoneSupport = getConfig [ "ikiwiki" "monotone" ] false; + RpcXML XMLSimple PerlMagick YAML; + gitSupport = false; + monotoneSupport = false; extraUtils = []; }; @@ -6844,11 +6898,11 @@ let qtpfsgui = callPackage ../applications/graphics/qtpfsgui { }; - qtractor = callPackage ../applications/audio/qtractor { + qtractor = callPackage ../applications/audio/qtractor { inherit (gtkLibs) gtk; }; - rakarrack = callPackage ../applications/audio/rakarrack { + rakarrack = callPackage ../applications/audio/rakarrack { inherit (xorg) libXpm libXft; fltk = fltk11; }; @@ -7615,7 +7669,7 @@ let kde45 = callPackage ../desktops/kde-4.5 { callPackage = newScope pkgs.kde45; }; - + kde46 = callPackage ../desktops/kde-4.6 { callPackage = newScope pkgs.kde46; }; @@ -7642,10 +7696,13 @@ let ### SCIENCE - xplanet = callPackage ../applications/science/xplanet { + xplanet = callPackage ../applications/science/astronomy/xplanet { inherit (gtkLibs) pango; }; + gravit = callPackage ../applications/science/astronomy/gravit { }; + + stellarium = callPackage ../applications/science/astronomy/stellarium { }; ### SCIENCE/GEOMETRY @@ -7788,6 +7845,8 @@ let ecm = callPackage ../applications/science/math/ecm { }; + eukleides = callPackage ../applications/science/math/eukleides { }; + maxima = callPackage ../applications/science/math/maxima { }; wxmaxima = callPackage ../applications/science/math/wxmaxima { }; @@ -8071,6 +8130,10 @@ let inherit texLiveLatexXColor texLivePGF texLive; }; + texLiveModerncv = builderDefsPackage (import ../misc/tex/texlive/moderncv.nix) { + inherit texLive unzip; + }; + trac = callPackage ../misc/trac { inherit (pythonPackages) pysqlite; }; diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index e244ca8fc95e..9d14ad9fe2f9 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -325,6 +325,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); ACVector = callPackage ../development/libraries/haskell/AC-Vector {}; + aeson = callPackage ../development/libraries/haskell/aeson {}; + ansiTerminal = callPackage ../development/libraries/haskell/ansi-terminal {}; ansiWLPprint = callPackage ../development/libraries/haskell/ansi-wl-pprint {}; @@ -335,6 +337,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); attoparsecEnumerator = callPackage ../development/libraries/haskell/attoparsec/enumerator.nix {}; + baseUnicodeSymbols = callPackage ../development/libraries/haskell/base-unicode-symbols {}; + benchpress = callPackage ../development/libraries/haskell/benchpress {}; bimap = callPackage ../development/libraries/haskell/bimap {}; @@ -353,16 +357,22 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); blazeHtml = callPackage ../development/libraries/haskell/blaze-html {}; + blazeTextual = callPackage ../development/libraries/haskell/blaze-textual {}; + bmp = callPackage ../development/libraries/haskell/bmp {}; Boolean = callPackage ../development/libraries/haskell/Boolean {}; bytestringNums = callPackage ../development/libraries/haskell/bytestring-nums {}; + bytestringTrie = callPackage ../development/libraries/haskell/bytestring-trie {}; + cairo = callPackage ../development/libraries/haskell/cairo { inherit (pkgs) cairo zlib; }; + caseInsensitive = callPackage ../development/libraries/haskell/case-insensitive {}; + cautiousFile = callPackage ../development/libraries/haskell/cautious-file {}; cereal = callPackage ../development/libraries/haskell/cereal {}; @@ -377,6 +387,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); citeprocHs = callPackage ../development/libraries/haskell/citeproc-hs {}; + clientsession = callPackage ../development/libraries/haskell/clientsession {}; + cmdargs = callPackage ../development/libraries/haskell/cmdargs {}; colorizeHaskell = callPackage ../development/libraries/haskell/colorize-haskell {}; @@ -389,6 +401,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); time = self.time_1_1_3; }; + cookie = callPackage ../development/libraries/haskell/cookie {}; + criterion = callPackage ../development/libraries/haskell/criterion { parsec = self.parsec3; }; @@ -438,6 +452,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); inherit (pkgs) libedit; }; + emailValidate = callPackage ../development/libraries/haskell/email-validate {}; + enumerator = callPackage ../development/libraries/haskell/enumerator {}; erf = callPackage ../development/libraries/haskell/erf {}; @@ -452,6 +468,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); fclabels = callPackage ../development/libraries/haskell/fclabels {}; + funcmp = callPackage ../development/libraries/haskell/funcmp {}; + feed = callPackage ../development/libraries/haskell/feed {}; filestore = callPackage ../development/libraries/haskell/filestore {}; @@ -537,6 +555,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); happstackServer = callPackage ../development/libraries/haskell/happstack/happstack-server.nix {}; + hashable = callPackage ../development/libraries/haskell/hashable {}; + hashedStorage = callPackage ../development/libraries/haskell/hashed-storage {}; haskeline = callPackage ../development/libraries/haskell/haskeline {}; @@ -599,6 +619,12 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); hopenssl = callPackage ../development/libraries/haskell/hopenssl {}; + hostname = callPackage ../development/libraries/haskell/hostname {}; + + hp2anyCore = callPackage ../development/libraries/haskell/hp2any-core {}; + + hp2anyGraph = callPackage ../development/libraries/haskell/hp2any-graph {}; + hscolour = callPackage ../development/libraries/haskell/hscolour {}; hsemail = callPackage ../development/libraries/haskell/hsemail {}; @@ -616,6 +642,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); httpdShed = callPackage ../development/libraries/haskell/httpd-shed {}; + httpTypes = callPackage ../development/libraries/haskell/http-types {}; + HUnit_1_2_0_3 = callPackage ../development/libraries/haskell/HUnit/1.2.0.3.nix {}; HUnit_1_2_2_1 = callPackage ../development/libraries/haskell/HUnit/1.2.2.1.nix {}; HUnit_1_2_2_3 = callPackage ../development/libraries/haskell/HUnit/1.2.2.3.nix {}; @@ -665,6 +693,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); MonadCatchIOTransformers = callPackage ../development/libraries/haskell/MonadCatchIO-transformers {}; + monadControl = callPackage ../development/libraries/haskell/monad-control {}; + monadlab = callPackage ../development/libraries/haskell/monadlab {}; monadLoops = callPackage ../development/libraries/haskell/monad-loops {}; @@ -757,8 +787,12 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); persistent = callPackage ../development/libraries/haskell/persistent {}; + persistentTemplate = callPackage ../development/libraries/haskell/persistent-template {}; + polyparse = callPackage ../development/libraries/haskell/polyparse {}; + pool = callPackage ../development/libraries/haskell/pool {}; + ppm = callPackage ../development/libraries/haskell/ppm {}; prettyShow = callPackage ../development/libraries/haskell/pretty-show {}; @@ -790,6 +824,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); randomShuffle = callPackage ../development/libraries/haskell/random-shuffle {}; + ranges = callPackage ../development/libraries/haskell/ranges {}; + readline = callPackage ../development/libraries/haskell/readline { inherit (pkgs) readline ncurses; }; @@ -838,6 +874,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); sendfile = callPackage ../development/libraries/haskell/sendfile {}; + simpleSendfile = callPackage ../development/libraries/haskell/simple-sendfile {}; + smallcheck = callPackage ../development/libraries/haskell/smallcheck {}; snapCore = callPackage ../development/libraries/haskell/snap/core.nix {}; @@ -909,6 +947,14 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); inherit (pkgs) ncurses; }; + testFramework = callPackage ../development/libraries/haskell/test-framework {}; + + testFrameworkHUnit = callPackage ../development/libraries/haskell/test-framework-hunit {}; + + testFrameworkQuickCheck = callPackage ../development/libraries/haskell/test-framework-quickcheck {}; + + testFrameworkQuickCheck2 = callPackage ../development/libraries/haskell/test-framework-quickcheck2 {}; + testpack = callPackage ../development/libraries/haskell/testpack {}; texmath = callPackage ../development/libraries/haskell/texmath {}; @@ -937,6 +983,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); unixCompat = callPackage ../development/libraries/haskell/unix-compat {}; + unorderedContainers = callPackage ../development/libraries/haskell/unordered-containers {}; + url = callPackage ../development/libraries/haskell/url {}; utf8String = callPackage ../development/libraries/haskell/utf8-string {}; @@ -965,6 +1013,12 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); mtl = self.mtl2; }; + wai = callPackage ../development/libraries/haskell/wai {}; + + waiExtra = callPackage ../development/libraries/haskell/wai-extra {}; + + warp = callPackage ../development/libraries/haskell/warp {}; + WebBits = callPackage ../development/libraries/haskell/WebBits { parsec = self.parsec2; }; @@ -1022,6 +1076,14 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); xssSanitize = callPackage ../development/libraries/haskell/xss-sanitize {}; + yesodCore = callPackage ../development/libraries/haskell/yesod-core {}; + + yesodForm = callPackage ../development/libraries/haskell/yesod-form {}; + + yesodJson = callPackage ../development/libraries/haskell/yesod-json {}; + + yesodPersistent = callPackage ../development/libraries/haskell/yesod-persistent {}; + yst = callPackage ../development/libraries/haskell/yst {}; zipArchive = callPackage ../development/libraries/haskell/zip-archive {}; @@ -1042,6 +1104,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); zlib = self.zlib_0_5_0_0; + zlibBindings = callPackage ../development/libraries/haskell/zlib-bindings {}; + # Compilers. AgdaExecutable = callPackage ../development/compilers/Agda-executable {}; diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 25a3c121b449..36d470f70668 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -1277,7 +1277,7 @@ rec { sha256 = "1p84585b4iyqa21hbqni0blj8fzd917ynd3y1hwh3mrmyfqj178x"; }; - buildInputs = [ pkgs.gd pkgs.libjpeg pkgs.zlib pkgs.freetype + buildInputs = [ pkgs.gd pkgs.libjpeg pkgs.zlib pkgs.freetype pkgs.libpng pkgs.fontconfig pkgs.xlibs.libXpm GetOptLong ]; # Patch needed to get arguments past the first GetOptions call @@ -1290,7 +1290,7 @@ rec { # ( although the images look the same to my eye ); this is # possibly because the source packaged image was generated with a # different version of some library ( libpng maybe? ). - postPatch = "sed -ie 's/if (GD::Image->can(.newFromJpeg.)) {/if ( 0 ) {/' t/GD.t"; + postPatch = "sed -ie 's/if (GD::Image->can(.newFromJpeg.)) {/if ( 0 ) {/' t/GD.t"; makeMakerFlags = "--lib_png_path=${pkgs.libpng} --lib_jpeg_path=${pkgs.libjpeg} --lib_zlib_path=${pkgs.zlib} --lib_ft_path=${pkgs.freetype} --lib_fontconfig_path=${pkgs.fontconfig} --lib_xpm_path=${pkgs.xlibs.libXpm}"; }; @@ -1488,8 +1488,8 @@ rec { PerlMagick = buildPerlPackage { name = "PerlMagick-6.59"; src = fetchurl { - url = mirror://cpan/authors/id/J/JC/JCRISTY/PerlMagick-6.59.tar.gz; - sha256 = "a87999b322460f7ba964eed81f91f400fba4ba6ff88e3f9e2b216d4d8ecf638d"; + url = http://image_magick.veidrodis.com:8003/image_magick/perl/PerlMagick-6.59.tar.gz; + sha256 = "6d7a33f6431b5650637cf73dd696927dbb2073f28e8f8d11a465d7de4c4638b3"; }; buildInputs = [pkgs.imagemagick]; preConfigure = @@ -2081,7 +2081,7 @@ rec { sha256 = "179cxwqxb0f9dpx8954nvwjmggxxi5ndnang41yav1dx6mf0abp7"; }; }; - + ParamsUtil = buildPerlPackage rec { name = "Params-Util-1.01"; src = fetchurl {