Merging from trunk. I fixed conflicts regarding the renaming 'kernel' -> 'linux' in all-packages. Also a small conflict in all-packages about making openssl overridable. And I some linux 2.6.31-zen kernel files also marked in conflict.


svn path=/nixpkgs/branches/stdenv-updates/; revision=19438

+3570 -1248
+3 -3
doc/package-notes.xml
··· 11 12 <!--============================================================--> 13 14 - <section> 15 16 <title>Linux kernel</title> 17 ··· 181 182 <screen> 183 $ cd pkgs/servers/x11/xorg 184 - $ cat tarballs-7.4.list extra.list old.list \ 185 | perl ./generate-expr-from-tarballs.pl 186 </screen> 187 ··· 195 run, since they may indicate missing dependencies. (Some might be 196 optional dependencies, however.)</para> 197 198 - <para>A file like <filename>tarballs-7.4.list</filename> contains all 199 tarballs in a X.org release. It can be generated like this: 200 201 <screen>
··· 11 12 <!--============================================================--> 13 14 + <section xml:id="sec-linux-kernel"> 15 16 <title>Linux kernel</title> 17 ··· 181 182 <screen> 183 $ cd pkgs/servers/x11/xorg 184 + $ cat tarballs-7.5.list extra.list old.list \ 185 | perl ./generate-expr-from-tarballs.pl 186 </screen> 187 ··· 195 run, since they may indicate missing dependencies. (Some might be 196 optional dependencies, however.)</para> 197 198 + <para>A file like <filename>tarballs-7.5.list</filename> contains all 199 tarballs in a X.org release. It can be generated like this: 200 201 <screen>
+2 -2
pkgs/applications/graphics/gimp/default.nix
··· 4 }: 5 6 stdenv.mkDerivation rec { 7 - name = "gimp-2.6.7"; 8 9 src = fetchurl { 10 url = "ftp://ftp.gtk.org/pub/gimp/v2.6/${name}.tar.bz2"; 11 - sha256 = "05g1dwxf0ydaadc8nv85akr9n240frh3f2sdrc9j90cywpxwa0d4"; 12 }; 13 14 buildInputs = [
··· 4 }: 5 6 stdenv.mkDerivation rec { 7 + name = "gimp-2.6.8"; 8 9 src = fetchurl { 10 url = "ftp://ftp.gtk.org/pub/gimp/v2.6/${name}.tar.bz2"; 11 + sha256 = "0cikkb4l6psankz9yhgal934b41nwk6d5a93r9zib413fj5j3m6m"; 12 }; 13 14 buildInputs = [
+46
pkgs/applications/misc/calibre/default.nix
···
··· 1 + {stdenv, fetchurl, python, pyqt4, sip, popplerQt4, pkgconfig, libpng, 2 + imagemagick, libjpeg, fontconfig, podofo, qt4, mechanize, lxml, dateutil, 3 + pil, makeWrapper, unrar}: 4 + 5 + stdenv.mkDerivation rec { 6 + name = "calibre-0.6.32"; 7 + 8 + src = fetchurl { 9 + url = "mirror://sourceforge/calibre/${name}.tar.gz"; 10 + sha256 = "0r646k5yig9y139jpajsr5scwsqjbgyq94klj7f2b8wjw79qpsmz"; 11 + }; 12 + 13 + inherit python; 14 + 15 + buildInputs = [ python pyqt4 sip popplerQt4 pkgconfig libpng imagemagick 16 + libjpeg fontconfig podofo qt4 mechanize lxml dateutil pil makeWrapper ]; 17 + 18 + installPhase = '' 19 + export POPPLER_INC_DIR=${popplerQt4}/include/poppler 20 + export POPPLER_LIB_DIR=${popplerQt4}/lib 21 + export MAGICK_INC=${imagemagick}/include/ImageMagick 22 + export MAGICK_LIB=${imagemagick}/lib 23 + export FC_INC_DIR=${fontconfig}/include/fontconfig 24 + export FC_LIB_DIR=${fontconfig}/lib 25 + export PODOFO_INC_DIR=${podofo}/include/podofo 26 + export PODOFO_LIB_DIR=${podofo}/lib 27 + python setup.py install --prefix=$out 28 + 29 + PYFILES="$out/bin/* $out/lib/calibre/calibre/web/feeds/*.py 30 + $out/lib/calibre/calibre/ebooks/metadata/*.py 31 + $out/lib/calibre/calibre/ebooks/rtf2xml/*.py" 32 + 33 + sed -i "s/env python/python/" $PYFILES 34 + for a in $out/bin/*; do 35 + wrapProgram $a --prefix PYTHONPATH : $PYTHONPATH --prefix LD_LIBRARY_PATH : ${unrar}/lib 36 + done 37 + ''; 38 + 39 + meta = { 40 + description = "Comprehensive e-book software"; 41 + homepage = http://calibre-ebook.com; 42 + license = "GPLv3"; 43 + maintainers = with stdenv.lib.maintainers; [viric]; 44 + platforms = with stdenv.lib.platforms; linux; 45 + }; 46 + }
+7 -5
pkgs/applications/misc/gv/default.nix
··· 1 { stdenv, fetchurl, Xaw3d, ghostscriptX }: 2 3 stdenv.mkDerivation rec { 4 - name = "gv-3.6.7"; 5 6 src = fetchurl { 7 url = "mirror://gnu/gv/${name}.tar.gz"; 8 - sha256 = "1cdkkxamsicpk0jdbrkjpxhcsrx0b82kqgrc4j407q2gc3qs8wgf"; 9 }; 10 11 buildInputs = [ Xaw3d ghostscriptX ]; 12 - 13 patchPhase = '' 14 - sed 's|\<gs\>|${ghostscriptX}/bin/gs|g' -i src/*.in 15 - sed 's|"gs"|"${ghostscriptX}/bin/gs"|g' -i src/*.c 16 ''; 17 18 doCheck = true; ··· 28 ''; 29 30 license = "GPLv3+"; 31 }; 32 }
··· 1 { stdenv, fetchurl, Xaw3d, ghostscriptX }: 2 3 stdenv.mkDerivation rec { 4 + name = "gv-3.6.8"; 5 6 src = fetchurl { 7 url = "mirror://gnu/gv/${name}.tar.gz"; 8 + sha256 = "1i86a4wfswp908gp4i0f6jbksn8bqqzkfy58r9ishspzkp2fb510"; 9 }; 10 11 buildInputs = [ Xaw3d ghostscriptX ]; 12 + 13 patchPhase = '' 14 + sed 's|\<gs\>|${ghostscriptX}/bin/gs|g' -i "src/"*.in 15 + sed 's|"gs"|"${ghostscriptX}/bin/gs"|g' -i "src/"*.c 16 ''; 17 18 doCheck = true; ··· 28 ''; 29 30 license = "GPLv3+"; 31 + maintainers = [ stdenv.lib.maintainers.ludo ]; 32 + platforms = stdenv.lib.platforms.gnu; # arbitrary choice 33 }; 34 }
+7 -4
pkgs/applications/networking/browsers/chromium/default.nix
··· 20 , unzip 21 , expat 22 , zlib 23 }: 24 25 assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux" ; 26 27 stdenv.mkDerivation rec { 28 name = "chrome-${version}"; 29 - version = "32599"; 30 src = 31 if stdenv.system == "x86_64-linux" then 32 fetchurl { 33 url = "http://build.chromium.org/buildbot/snapshots/chromium-rel-linux-64/${version}/chrome-linux.zip"; 34 - sha256 = "1wz24hrnnjggsjxsaa4spqg73p1f7bv4a8l2ys3kbkdp709fl6v8"; 35 } 36 else if stdenv.system == "i686-linux" then 37 fetchurl { 38 url = "http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/${version}/chrome-linux.zip"; 39 - sha256 = "16w6d7kp34jr1c4ym6y2h6llkq3d65rybj5hs46w1b8qri60q6aa"; 40 } 41 else null; 42 ··· 46 47 libPath = 48 stdenv.lib.makeLibraryPath 49 - [ stdenv.glibc stdenv.gcc.gcc ffmpeg cairo pango glib libXrender gtk nspr nss fontconfig freetype alsaLib libX11 GConf libXext atk libXt expat zlib] ; 50 51 installPhase = '' 52 ensureDir $out/bin
··· 20 , unzip 21 , expat 22 , zlib 23 + , libjpeg 24 + , bzip2 25 + , libpng 26 }: 27 28 assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux" ; 29 30 stdenv.mkDerivation rec { 31 name = "chrome-${version}"; 32 + version = "35449"; 33 src = 34 if stdenv.system == "x86_64-linux" then 35 fetchurl { 36 url = "http://build.chromium.org/buildbot/snapshots/chromium-rel-linux-64/${version}/chrome-linux.zip"; 37 + sha256 = "0fdm1hs67vcr68r290ami3zlyypcvd88rm059622qyadqz49yvcj"; 38 } 39 else if stdenv.system == "i686-linux" then 40 fetchurl { 41 url = "http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/${version}/chrome-linux.zip"; 42 + sha256 = "1indm0s87yz9zsg4archsywvp4yd0ff83azkjbwszj0snggk16pg"; 43 } 44 else null; 45 ··· 49 50 libPath = 51 stdenv.lib.makeLibraryPath 52 + [ stdenv.glibc stdenv.gcc.gcc ffmpeg cairo pango glib libXrender gtk nspr nss fontconfig freetype alsaLib libX11 GConf libXext atk libXt expat zlib libjpeg bzip2 libpng] ; 53 54 installPhase = '' 55 ensureDir $out/bin
+3 -3
pkgs/applications/networking/browsers/firefox/3.0.nix
··· 11 12 rec { 13 14 - firefoxVersion = "3.0.15"; 15 16 - xulVersion = "1.9.0.15"; # this attribute is used by other packages 17 18 19 src = fetchurl { 20 url = "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${firefoxVersion}/source/firefox-${firefoxVersion}-source.tar.bz2"; 21 - sha1 = "06d488f0aee8f9e60dc6526c1d292f3708da301f"; 22 }; 23 24
··· 11 12 rec { 13 14 + firefoxVersion = "3.0.17"; 15 16 + xulVersion = "1.9.0.17"; # this attribute is used by other packages 17 18 19 src = fetchurl { 20 url = "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${firefoxVersion}/source/firefox-${firefoxVersion}-source.tar.bz2"; 21 + sha1 = "e4bb7daae1699f3493936ca6739512d28c7f150f"; 22 }; 23 24
+3 -3
pkgs/applications/networking/browsers/firefox/3.5.nix
··· 12 13 rec { 14 15 - firefoxVersion = "3.5.6"; 16 17 - xulVersion = "1.9.1.6"; # this attribute is used by other packages 18 19 20 src = fetchurl { 21 url = "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${firefoxVersion}/source/firefox-${firefoxVersion}.source.tar.bz2"; 22 - sha1 = "fc1de4ddb9c20c7ba9e297737f926e9d8e32eed4"; 23 }; 24 25
··· 12 13 rec { 14 15 + firefoxVersion = "3.5.7"; 16 17 + xulVersion = "1.9.1.7"; # this attribute is used by other packages 18 19 20 src = fetchurl { 21 url = "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${firefoxVersion}/source/firefox-${firefoxVersion}.source.tar.bz2"; 22 + sha1 = "7605d89b3d3e458db74dea4d227dd86d0d12ba1b"; 23 }; 24 25
+2 -2
pkgs/applications/networking/browsers/icecat-3/default.nix
··· 4 , freetype, fontconfig 5 , application ? "browser" }: 6 7 - let version = "3.5.6"; in 8 stdenv.mkDerivation { 9 name = "icecat-${version}"; 10 11 src = fetchurl { 12 url = "mirror://gnu/gnuzilla/${version}/icecat-${version}.tar.bz2"; 13 - sha256 = "10lacri0imag90ib1lg4caxljzsfzryysygx22ja3akfwjlkrk8c"; 14 }; 15 16 buildInputs = [
··· 4 , freetype, fontconfig 5 , application ? "browser" }: 6 7 + let version = "3.5.7"; in 8 stdenv.mkDerivation { 9 name = "icecat-${version}"; 10 11 src = fetchurl { 12 url = "mirror://gnu/gnuzilla/${version}/icecat-${version}.tar.bz2"; 13 + sha256 = "0pz48rz9rpig3xdvs6jkjc4azhwxabn81bz7c0alkfkdzjmcl8ym"; 14 }; 15 16 buildInputs = [
+37 -9
pkgs/applications/networking/browsers/mozilla-plugins/flashplayer-10/default.nix
··· 16 , glib 17 , pango 18 , atk 19 }: 20 21 - stdenv.mkDerivation { 22 name = "flashplayer-10.0.32.18"; 23 24 builder = ./builder.sh; 25 26 src = 27 if stdenv.system == "x86_64-linux" then 28 - fetchurl { 29 - url = http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz; 30 - sha256 = "006k3jvahlq2v34q5mf2y7ghczhy6spsdd69fj120i9yz9zklhpw"; 31 - } 32 else 33 - fetchurl { 34 url = http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz; 35 - sha256 = "1nnswpivn8ymbvqywdw39xf26mn2i65hyqw8lcl77qsv7kbsbbl8"; 36 - }; 37 38 inherit zlib alsaLib; 39 ··· 47 description = "Adobe Flash Player browser plugin"; 48 homepage = http://www.adobe.com/products/flashplayer/; 49 }; 50 - }
··· 16 , glib 17 , pango 18 , atk 19 + , debug ? false 20 + 21 + /* you have to add ~/mm.cfg : 22 + 23 + TraceOutputFileEnable=1 24 + ErrorReportingEnable=1 25 + MaxWarnings=1 26 + 27 + in order to read the flash trace at ~/.macromedia/Flash_Player/Logs/flashlog.txt 28 + Then FlashBug (a FireFox plugin) shows the log as well 29 + */ 30 + 31 }: 32 33 + stdenv.mkDerivation ({ 34 name = "flashplayer-10.0.32.18"; 35 36 builder = ./builder.sh; 37 38 src = 39 if stdenv.system == "x86_64-linux" then 40 + fetchurl ( 41 + if debug then 42 + # no plans to provide a x86_64 version: 43 + # http://labs.adobe.com/technologies/flashplayer10/faq.html 44 + throw "no x86_64 debugging version available" 45 + else { 46 + # -> http://labs.adobe.com/downloads/flashplayer10_64bit.html 47 + url = http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz; 48 + sha256 = "006k3jvahlq2v34q5mf2y7ghczhy6spsdd69fj120i9yz9zklhpw"; 49 + } 50 + ) 51 else 52 + fetchurl ( if debug then { 53 + # The debug version also contains a player 54 + url = http://download.macromedia.com/pub/flashplayer/updaters/10/flash_player_10_linux_dev.tar.gz; 55 + sha256 = "0j3i4sbry9xdln23892hbkfbznqg2wzrakpfv4g5g6y7r2nchkfj"; 56 + } else { 57 url = http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz; 58 + sha256 = "04ppx812dz4d93pkyx412z3jslkw8nsqw5gni467ipahqz6lifhi"; 59 + }); 60 61 inherit zlib alsaLib; 62 ··· 70 description = "Adobe Flash Player browser plugin"; 71 homepage = http://www.adobe.com/products/flashplayer/; 72 }; 73 + } // (if debug then { 74 + buildPhase = '' 75 + pwd;ls -l . 76 + tar xfz plugin/debugger/libflashplayer.so.tar.gz 77 + ''; 78 + } else {} ) )
+2 -2
pkgs/applications/networking/instant-messengers/bitlbee/default.nix
··· 1 { fetchurl, stdenv, gnutls, glib, pkgconfig }: 2 3 stdenv.mkDerivation rec { 4 - name = "bitlbee-1.2.3"; 5 6 src = fetchurl { 7 url = "mirror://bitlbee/src/" + name + ".tar.gz"; 8 - sha256 = "1qj5cx0lqhg6dy2gdjb05ap963r84rv1b96iz23c97c2ihc31fqc"; 9 }; 10 11 buildInputs = [ gnutls glib pkgconfig ];
··· 1 { fetchurl, stdenv, gnutls, glib, pkgconfig }: 2 3 stdenv.mkDerivation rec { 4 + name = "bitlbee-1.2.4"; 5 6 src = fetchurl { 7 url = "mirror://bitlbee/src/" + name + ".tar.gz"; 8 + sha256 = "1lwcjh1r81xqf6fxjwd2a2hv8dq9g0iyc8dnbr1pgas4vmjg9xf2"; 9 }; 10 11 buildInputs = [ gnutls glib pkgconfig ];
+5 -5
pkgs/applications/networking/instant-messengers/pidgin/default.nix
··· 14 GStreamer, gstPluginsBase, startupnotification, gettext, 15 perl, perlXMLParser, libxml2, nss, nspr, farsight2, 16 libXScrnSaver, ncurses, avahi, dbus, dbus_glib, intltool, libidn 17 - , lib 18 , openssl ? null 19 , gnutls ? null 20 , voice ? null 21 } : 22 23 stdenv.mkDerivation { 24 - name = "pidgin-2.6.4"; 25 src = fetchurl { 26 - url = mirror://sourceforge/pidgin/pidgin-2.6.4.tar.bz2; 27 - sha256 = "04dyr2g45i3wr67zsn04pjl6vyvic8dchb73pajf823pa377m47s"; 28 }; 29 30 inherit nss ncurses; ··· 36 ++ (lib.optional (gnutls != null) gnutls) 37 ++ 38 [nss nspr farsight2 39 - libXScrnSaver ncurses 40 avahi dbus dbus_glib intltool libidn 41 ] 42 ;
··· 14 GStreamer, gstPluginsBase, startupnotification, gettext, 15 perl, perlXMLParser, libxml2, nss, nspr, farsight2, 16 libXScrnSaver, ncurses, avahi, dbus, dbus_glib, intltool, libidn 17 + , lib, python 18 , openssl ? null 19 , gnutls ? null 20 , voice ? null 21 } : 22 23 stdenv.mkDerivation { 24 + name = "pidgin-2.6.5"; 25 src = fetchurl { 26 + url = mirror://sourceforge/pidgin/pidgin-2.6.5.tar.bz2; 27 + sha256 = "03ix5w1dr1hl98qh1jmp5dgv2i8f9bd39sim3rcpk9pwjd09wi9w"; 28 }; 29 30 inherit nss ncurses; ··· 36 ++ (lib.optional (gnutls != null) gnutls) 37 ++ 38 [nss nspr farsight2 39 + libXScrnSaver ncurses python 40 avahi dbus dbus_glib intltool libidn 41 ] 42 ;
pkgs/applications/networking/mailreaders/thunderbird-2.x/builder.sh pkgs/applications/networking/mailreaders/thunderbird/builder.sh
pkgs/applications/networking/mailreaders/thunderbird-2.x/default.nix pkgs/applications/networking/mailreaders/thunderbird/2.x.nix
pkgs/applications/networking/mailreaders/thunderbird-2.x/xlibs.patch pkgs/applications/networking/mailreaders/thunderbird/xlibs.patch
-105
pkgs/applications/networking/mailreaders/thunderbird-3.x/default.nix
··· 1 - { stdenv, fetchurl, pkgconfig, gtk, pango, perl, python, zip, libIDL 2 - , libjpeg, zlib, cairo, dbus, dbus_glib, bzip2 3 - , freetype, fontconfig, xulrunner 4 - , autoconf , libpng , alsaLib, sqlite, patchelf 5 - 6 - , # If you want the resulting program to call itself "Thunderbird" 7 - # instead of "Mail", enable this option. However, those 8 - # binaries may not be distributed without permission from the 9 - # Mozilla Foundation, see 10 - # http://www.mozilla.org/foundation/trademarks/. 11 - enableOfficialBranding ? false 12 - 13 - }: 14 - 15 - stdenv.mkDerivation { 16 - name = "thunderbird-3.0beta2"; 17 - 18 - src = fetchurl { 19 - url = "ftp://ftp.mozilla.org/pub/thunderbird/releases/3.0b2/source/thunderbird-3.0b2-source.tar.bz2"; 20 - sha256 = "17mlp0x6sf1v9w8vraln7mr566gvk84rxvxiwzhbdj2p0475zjqr"; 21 - }; 22 - 23 - buildInputs = [ 24 - pkgconfig gtk perl zip libIDL libjpeg zlib cairo bzip2 25 - python dbus dbus_glib pango freetype fontconfig autoconf 26 - libpng alsaLib sqlite patchelf 27 - ]; 28 - 29 - propagatedBuildInputs = [xulrunner]; 30 - 31 - preUnpack = "mkdir thunderbird; cd thunderbird;"; 32 - setSourceRoot = "export sourceRoot=.;"; 33 - preConfigure = '' 34 - for i in $(find . -name configure.in); do echo $i; (cd $(dirname $i); autoconf || true; ); done; 35 - XUL_SDK=$(echo ${xulrunner}/lib/xulrunner-devel-*/) 36 - export NIX_CFLAGS_COMPILE="''${NIX_CFLAGS_COMPILE} -I$XUL_SDK/include"; 37 - export NIX_CFLAGS_COMPILE="''${NIX_CFLAGS_COMPILE} -I$(echo ${xulrunner}/include/xulrunner-*/stable)"; 38 - export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE"; 39 - export NIX_LDFLAGS="''${NIX_LDFLAGS} -L$XUL_SDK/lib -L$XUL_SDK/sdk/lib"; 40 - export NIX_LDFLAGS="$NIX_LDFLAGS -L${xulrunner}/lib/xulrunner-${xulrunner.version}"; 41 - export NIX_LDFLAGS="$NIX_LDFLAGS -lxpcomglue -lxpcomglue_s -lxul -lnss -lmozjs -lsqlite3"; 42 - echo NIX_CFLAGS_COMPILE: $NIX_CFLAGS_COMPILE 43 - echo NIX_LDFLAGS: $NIX_LDFLAGS 44 - for i in $(find $(pwd) -wholename '*/public/*.idl' -exec dirname '{}' ';' | sort | uniq); do 45 - export XPIDL_FLAGS="$XPIDL_FLAGS -I$i"; 46 - done; 47 - echo $XPIDL_FLAGS 48 - 49 - sed -e "s@\$(XPIDL_FLAGS)@\$(XPIDL_FLAGS) $XPIDL_FLAGS@" -i config/rules.mk 50 - ''; 51 - postConfigure = '' 52 - (cd mozilla/nsprpub; ./configure --prefix=$out/XUL_SDK; ) 53 - ''; 54 - preBuild = '' 55 - for i in $(find . -name autoconf.mk); do echo $i; sed -e 's@-Wl,-rpath-link,$(PREFIX)/lib@@' -i $i; done 56 - make -C mozilla/config nsinstall 57 - mkdir -p $out/libexec/mozilla/nsinstall 58 - mv mozilla/config/nsinstall $out/libexec/mozilla/nsinstall/nsinstall 59 - cat > mozilla/config/nsinstall <<EOF 60 - #! /bin/sh 61 - export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${sqlite}/lib:${xulrunner}/lib/xulrunner-${xulrunner.version}" 62 - $out/libexec/mozilla/nsinstall/nsinstall "\$@" 63 - EOF 64 - chmod a+x mozilla/config/nsinstall 65 - ''; 66 - 67 - configureFlags = [ 68 - "--enable-application=mail" 69 - "--enable-optimize" 70 - "--disable-debug" 71 - "--with-system-jpeg" 72 - "--with-system-zlib" 73 - "--with-system-bz2" 74 - #"--with-system-png" # <-- "--with-system-png won't work because the system's libpng doesn't have APNG support" 75 - "--enable-system-cairo" 76 - #"--enable-system-sqlite" # <-- this seems to be discouraged 77 - "--disable-crashreporter" 78 - "--with-libxul-sdk=${xulrunner}/lib/xulrunner-devel-${xulrunner.version}" 79 - "--enable-extensions=default" 80 - ] 81 - ++ (if enableOfficialBranding then ["--enable-official-branding"] else []); 82 - 83 - postInstall = '' 84 - # Strip some more stuff. 85 - strip -S $out/lib/*/* || true 86 - 87 - libDir=$(cd $out/lib && ls -d thunderbird-[0-9]*) 88 - test -n "$libDir" 89 - 90 - ln -s ${xulrunner}/lib/xulrunner-${xulrunner.version} $out/lib/$libDir/xulrunner 91 - 92 - # Register extensions etc. !!! is this needed anymore? 93 - echo "running thunderbird -register..." 94 - $out/bin/thunderbird -register 95 - ''; # */ 96 - 97 - meta = { 98 - description = "Mozilla Thunderbird, a full-featured email client"; 99 - homepage = http://www.mozilla.com/en-US/thunderbird/; 100 - }; 101 - 102 - passthru = { 103 - inherit gtk; 104 - }; 105 - }
···
+65
pkgs/applications/networking/mailreaders/thunderbird/3.x.nix
···
··· 1 + { stdenv, fetchurl, pkgconfig, gtk, perl, python, zip, libIDL 2 + , dbus_glib, bzip2, alsaLib, nspr 3 + 4 + , # If you want the resulting program to call itself "Thunderbird" 5 + # instead of "Shredder", enable this option. However, those 6 + # binaries may not be distributed without permission from the 7 + # Mozilla Foundation, see 8 + # http://www.mozilla.org/foundation/trademarks/. 9 + enableOfficialBranding ? false 10 + 11 + }: 12 + 13 + let version = "3.0"; in 14 + 15 + stdenv.mkDerivation { 16 + name = "thunderbird-${version}"; 17 + 18 + src = fetchurl { 19 + url = "http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${version}/source/thunderbird-${version}.source.tar.bz2"; 20 + sha1 = "7a8a08f011901b4c0b737de2d7a226242935543d"; 21 + }; 22 + 23 + buildInputs = 24 + [ pkgconfig perl python zip bzip2 gtk dbus_glib alsaLib libIDL nspr ]; 25 + 26 + configureFlags = 27 + [ "--enable-application=mail" 28 + "--enable-optimize" 29 + "--disable-debug" 30 + "--enable-strip" 31 + "--with-system-jpeg" 32 + "--with-system-zlib" 33 + "--with-system-bz2" 34 + "--with-system-nspr" 35 + "--enable-system-cairo" 36 + "--disable-crashreporter" 37 + "--disable-tests" 38 + "--enable-static" # required by `make install' 39 + ] 40 + ++ stdenv.lib.optional enableOfficialBranding "--enable-official-branding"; 41 + 42 + # The Thunderbird Makefiles refer to the variables LIBXUL_DIST, 43 + # prefix, and PREFIX in some places where they are not set. In 44 + # particular, there are some linker flags like 45 + # `-rpath-link=$(LIBXUL_DIST)/bin'. Since this expands to 46 + # `-rpath-link=/bin', the build fails due to the purity checks in 47 + # the ld wrapper. So disable the purity check for now. 48 + preBuild = "NIX_ENFORCE_PURITY=0"; 49 + 50 + # This doesn't work: 51 + #makeFlags = "LIBXUL_DIST=$(out) prefix=$(out) PREFIX=$(out)"; 52 + 53 + postInstall = 54 + '' 55 + # Fix some references to /bin paths in the Xulrunner shell script. 56 + substituteInPlace $out/lib/thunderbird-*/thunderbird \ 57 + --replace /bin/pwd "$(type -tP pwd)" \ 58 + --replace /bin/ls "$(type -tP ls)" 59 + ''; 60 + 61 + meta = { 62 + description = "Mozilla Thunderbird, a full-featured email client"; 63 + homepage = http://www.mozilla.com/en-US/thunderbird/; 64 + }; 65 + }
+24 -21
pkgs/applications/networking/p2p/gnunet/default.nix
··· 6 7 assert gtkSupport -> (gtk != null) && (libglade != null); 8 9 - let version = "0.8.0b"; 10 in 11 stdenv.mkDerivation { 12 name = "gnunet-${version}"; 13 14 src = fetchurl { 15 - url = "http://gnunet.org/download/GNUnet-${version}.tar.bz2"; 16 - sha256 = "1d1abnfqbd1f8pjzq9p0za7jyy2lay7k8l09xadk83k8d96abwcs"; 17 }; 18 19 - configureFlags = '' 20 - --without-included-ltdl --disable-ltdl-install --with-ltdl-include=${libtool}/include --with-ltdl-lib=${libtool}/lib 21 - ''; 22 - 23 buildInputs = [ 24 libextractor libmicrohttpd libgcrypt gmp curl libtool 25 zlib guile adns sqlite libxml2 ncurses ··· 27 makeWrapper 28 ] ++ (if gtkSupport then [ gtk libglade ] else []); 29 30 - patches = [ 31 - ./tmpdir.patch 32 - ./disable-http-tests.patch 33 - ]; 34 35 - preConfigure = '' 36 - # Brute force: make sure the tests don't rely on `/tmp', for 37 - # the sake of chroot builds. 38 for i in $(find . \( -iname \*test\*.c -or -name \*.conf \) \ 39 -exec grep -l /tmp {} \;) 40 do ··· 43 done 44 ''; 45 46 - # Tests have to be run xonce it's installed. 47 - # FIXME: Re-enable tests when they are less broken. 48 - #postInstall = '' 49 - # GNUNET_PREFIX="$out" make check 50 - #''; 51 52 - doCheck = false; 53 54 - # Help programs find the numerous modules that sit under `$out/lib/GNUnet'. 55 postInstall = '' 56 wrapProgram "$out/bin/gnunetd" \ 57 --prefix LTDL_LIBRARY_PATH ":" "$out/lib/GNUnet" 58 ''; ··· 78 homepage = http://gnunet.org/; 79 80 license = "GPLv2+"; 81 }; 82 }
··· 6 7 assert gtkSupport -> (gtk != null) && (libglade != null); 8 9 + let version = "0.8.1"; 10 in 11 stdenv.mkDerivation { 12 name = "gnunet-${version}"; 13 14 src = fetchurl { 15 + url = "mirror://gnu/gnunet/GNUnet-${version}.tar.gz"; 16 + sha256 = "0makh52fsrsxg2qgfi1n68sh2hllqxj453g335m05wk05d7minl4"; 17 }; 18 19 buildInputs = [ 20 libextractor libmicrohttpd libgcrypt gmp curl libtool 21 zlib guile adns sqlite libxml2 ncurses ··· 23 makeWrapper 24 ] ++ (if gtkSupport then [ gtk libglade ] else []); 25 26 + preConfigure = '' 27 + # Brute force: since nix-worker chroots don't provide 28 + # /etc/{resolv.conf,hosts}, replace all references to `localhost' 29 + # by their IPv4 equivalent. 30 + for i in $(find . \( -name \*.c -or -name \*.conf \) \ 31 + -exec grep -l localhost {} \;) 32 + do 33 + echo "$i: substituting \`127.0.0.1' to \`localhost'..." 34 + substituteInPlace "$i" --replace "localhost" "127.0.0.1" 35 + done 36 37 + # Make sure the tests don't rely on `/tmp', for the sake of chroot 38 + # builds. 39 for i in $(find . \( -iname \*test\*.c -or -name \*.conf \) \ 40 -exec grep -l /tmp {} \;) 41 do ··· 44 done 45 ''; 46 47 + doCheck = false; 48 49 + # 1. Run tests have once GNUnet is installed. 50 + # 2. Help programs find the numerous modules that sit under 51 + # `$out/lib/GNUnet'. 52 53 + # FIXME: `src/transports/test_udp' hangs forever. 54 postInstall = '' 55 + #GNUNET_PREFIX="$out" make check 56 wrapProgram "$out/bin/gnunetd" \ 57 --prefix LTDL_LIBRARY_PATH ":" "$out/lib/GNUnet" 58 ''; ··· 78 homepage = http://gnunet.org/; 79 80 license = "GPLv2+"; 81 + 82 + maintainers = [ stdenv.lib.maintainers.ludo ]; 83 + platforms = stdenv.lib.platforms.gnu; 84 }; 85 }
-88
pkgs/applications/networking/p2p/gnunet/disable-http-tests.patch
··· 1 - Disable HTTP tests as they seem to deadlock when building in a chroot on NixOS. 2 - 3 - diff --git a/src/transports/Makefile.in b/src/transports/Makefile.in 4 - index b0b76a2..30a0bb5 100644 5 - --- a/src/transports/Makefile.in 6 - +++ b/src/transports/Makefile.in 7 - @@ -38,8 +38,8 @@ PRE_UNINSTALL = : 8 - POST_UNINSTALL = : 9 - host_triplet = @host@ 10 - check_PROGRAMS = test_udp$(EXEEXT) test_tcp$(EXEEXT) \ 11 - - test_http$(EXEEXT) testrepeat_udp$(EXEEXT) \ 12 - - testrepeat_tcp$(EXEEXT) testrepeat_http$(EXEEXT) 13 - + testrepeat_udp$(EXEEXT) \ 14 - + testrepeat_tcp$(EXEEXT) 15 - subdir = src/transports 16 - DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 17 - ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 18 - 19 - diff --git a/src/applications/session/Makefile.in b/src/applications/session/Makefile.in 20 - index b2717f9..a048d21 100644 21 - --- a/src/applications/session/Makefile.in 22 - +++ b/src/applications/session/Makefile.in 23 - @@ -38,7 +38,7 @@ PRE_UNINSTALL = : 24 - POST_UNINSTALL = : 25 - host_triplet = @host@ 26 - check_PROGRAMS = sessiontest_tcp$(EXEEXT) sessiontest_udp$(EXEEXT) \ 27 - - sessiontest_nat$(EXEEXT) $(am__EXEEXT_1) 28 - + sessiontest_nat$(EXEEXT) 29 - subdir = src/applications/session 30 - DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 31 - ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 32 - 33 - diff --git a/src/applications/tbench/Makefile.in b/src/applications/tbench/Makefile.in 34 - index ea061bc..c6ee8f8 100644 35 - --- a/src/applications/tbench/Makefile.in 36 - +++ b/src/applications/tbench/Makefile.in 37 - @@ -39,8 +39,7 @@ PRE_UNINSTALL = : 38 - POST_UNINSTALL = : 39 - host_triplet = @host@ 40 - bin_PROGRAMS = gnunet-tbench$(EXEEXT) 41 - -check_PROGRAMS = tbenchtest_tcp$(EXEEXT) tbenchtest_udp$(EXEEXT) \ 42 - - $(am__EXEEXT_1) 43 - +check_PROGRAMS = tbenchtest_tcp$(EXEEXT) tbenchtest_udp$(EXEEXT) 44 - subdir = src/applications/tbench 45 - DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 46 - ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 47 - 48 - diff --git a/src/applications/advertising/Makefile.in b/src/applications/advertising/Makefile.in 49 - index 454fa63..af7aefb 100644 50 - --- a/src/applications/advertising/Makefile.in 51 - +++ b/src/applications/advertising/Makefile.in 52 - @@ -38,7 +38,7 @@ PRE_UNINSTALL = : 53 - POST_UNINSTALL = : 54 - host_triplet = @host@ 55 - check_PROGRAMS = advertisingtest_tcp$(EXEEXT) \ 56 - - advertisingtest_udp$(EXEEXT) $(am__EXEEXT_1) 57 - + advertisingtest_udp$(EXEEXT) 58 - subdir = src/applications/advertising 59 - DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 60 - ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 61 - 62 - diff --git a/src/applications/bootstrap_http/Makefile.in b/src/applications/bootstrap_http/Makefile.in 63 - index 29800af..ad5c6a1 100644 64 - --- a/src/applications/bootstrap_http/Makefile.in 65 - +++ b/src/applications/bootstrap_http/Makefile.in 66 - @@ -37,7 +37,7 @@ NORMAL_UNINSTALL = : 67 - PRE_UNINSTALL = : 68 - POST_UNINSTALL = : 69 - host_triplet = @host@ 70 - -check_PROGRAMS = httptest$(EXEEXT) 71 - +check_PROGRAMS = 72 - subdir = src/applications/bootstrap_http 73 - DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 74 - ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 75 - 76 - diff --git a/src/applications/hostlist/Makefile.in b/src/applications/hostlist/Makefile.in 77 - index 126df5e..2317c60 100644 78 - --- a/src/applications/hostlist/Makefile.in 79 - +++ b/src/applications/hostlist/Makefile.in 80 - @@ -37,7 +37,7 @@ NORMAL_UNINSTALL = : 81 - PRE_UNINSTALL = : 82 - POST_UNINSTALL = : 83 - host_triplet = @host@ 84 - -check_PROGRAMS = hostlisttest$(EXEEXT) 85 - +check_PROGRAMS = 86 - subdir = src/applications/hostlist 87 - DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 88 - ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
···
-93
pkgs/applications/networking/p2p/gnunet/tmpdir.patch
··· 1 - Make sure the core libraries used by the tests honor $TMPDIR. 2 - 3 - diff --git a/src/applications/dstore_sqlite/dstore.c b/src/applications/dstore_sqlite/dstore.c 4 - index cdcae81..4bb45a3 100644 5 - --- a/src/applications/dstore_sqlite/dstore.c 6 - +++ b/src/applications/dstore_sqlite/dstore.c 7 - @@ -129,6 +129,7 @@ db_reset () 8 - int fd; 9 - sqlite3 *dbh; 10 - char *tmpl; 11 - + const char *tmpdir; 12 - 13 - if (fn != NULL) 14 - { 15 - @@ -136,7 +137,15 @@ db_reset () 16 - GNUNET_free (fn); 17 - } 18 - payload = 0; 19 - - tmpl = "/tmp/dstoreXXXXXX"; 20 - + 21 - + tmpdir = getenv ("TMPDIR"); 22 - + tmpdir = tmpdir ? tmpdir : "/tmp"; 23 - + 24 - +#define TEMPLATE "/gnunet-dstoreXXXXXX" 25 - + tmpl = alloca (strlen (tmpdir) + sizeof (TEMPLATE) + 1); 26 - + strcpy (tmpl, tmpdir); 27 - + strcat (tmpl, TEMPLATE); 28 - +#undef TEMPLATE 29 - 30 - #ifdef MINGW 31 - fn = (char *) GNUNET_malloc (MAX_PATH + 1); 32 - diff --git a/src/applications/fs/collection/collection.c b/src/applications/fs/collection/collection.c 33 - index 5671cb3..da2b605 100644 34 - --- a/src/applications/fs/collection/collection.c 35 - +++ b/src/applications/fs/collection/collection.c 36 - @@ -487,6 +487,7 @@ GNUNET_CO_collection_publish_now () 37 - char *dirData; 38 - char this_revision_string[128]; 39 - char next_revision_string[128]; 40 - + const char *tmpdir; 41 - 42 - GNUNET_mutex_lock (lock); 43 - if ((collectionData == NULL) || 44 - @@ -495,7 +496,17 @@ GNUNET_CO_collection_publish_now () 45 - GNUNET_mutex_unlock (lock); 46 - return; 47 - } 48 - - tmpName = GNUNET_strdup ("/tmp/gnunet-collectionXXXXXX"); 49 - + 50 - + tmpdir = getenv ("TMPDIR"); 51 - + tmpdir = tmpdir ? tmpdir : "/tmp"; 52 - + 53 - +#define TEMPLATE "/gnunet-collectionXXXXXX" 54 - + tmpName = alloca (strlen (tmpdir) + sizeof (TEMPLATE) + 1); 55 - + strcpy (tmpName, tmpdir); 56 - + strcat (tmpName, TEMPLATE); 57 - +#undef TEMPLATE 58 - + 59 - + tmpName = GNUNET_strdup (tmpName); 60 - fd = mkstemp (tmpName); 61 - if (fd == -1) 62 - { 63 - diff --git a/src/applications/fs/fsui/upload.c b/src/applications/fs/fsui/upload.c 64 - index dc683a5..46a04af 100644 65 - --- a/src/applications/fs/fsui/upload.c 66 - +++ b/src/applications/fs/fsui/upload.c 67 - @@ -159,6 +159,7 @@ createDirectoryHelper (struct GNUNET_GE_Context *ectx, 68 - int handle; 69 - struct GNUNET_GE_Memory *mem; 70 - struct GNUNET_GE_Context *ee; 71 - + const char *tmpdir; 72 - 73 - fis = NULL; 74 - size = 0; 75 - @@ -208,7 +209,17 @@ createDirectoryHelper (struct GNUNET_GE_Context *ectx, 76 - pos = pos->next; 77 - } 78 - GNUNET_GE_memory_reset (mem); 79 - - tempName = GNUNET_strdup ("/tmp/gnunet-upload-dir.XXXXXX"); 80 - + 81 - + tmpdir = getenv ("TMPDIR"); 82 - + tmpdir = tmpdir ? tmpdir : "/tmp"; 83 - + 84 - +#define TEMPLATE "/gnunet-upload-dirXXXXXX" 85 - + tempName = alloca (strlen (tmpdir) + sizeof (TEMPLATE) + 1); 86 - + strcpy (tempName, tmpdir); 87 - + strcat (tempName, TEMPLATE); 88 - +#undef TEMPLATE 89 - + 90 - + tempName = GNUNET_strdup (tempName); 91 - handle = mkstemp (tempName); 92 - if (handle == -1) 93 - {
···
+5 -5
pkgs/applications/networking/sync/rsync/default.nix
··· 1 - { stdenv, fetchurl 2 , enableACLs ? true, acl ? null 3 }: 4 5 assert enableACLs -> acl != null; 6 7 stdenv.mkDerivation { 8 - name = "rsync-3.0.6"; 9 10 src = fetchurl { 11 - url = http://rsync.samba.org/ftp/rsync/src/rsync-3.0.6.tar.gz; 12 - sha256 = "1cz1adlshjwwi41yqhw7wph7vq58a73b4zgs8piv6rnbcj9rdk1k"; 13 }; 14 15 - buildInputs = stdenv.lib.optional enableACLs acl; 16 17 meta = { 18 homepage = http://samba.anu.edu.au/rsync/;
··· 1 + { stdenv, fetchurl, perl 2 , enableACLs ? true, acl ? null 3 }: 4 5 assert enableACLs -> acl != null; 6 7 stdenv.mkDerivation { 8 + name = "rsync-3.0.7"; 9 10 src = fetchurl { 11 + url = http://rsync.samba.org/ftp/rsync/src/rsync-3.0.7.tar.gz; 12 + sha256 = "1j77vwz6q3dvgr8w6wvigd5v4m5952czaqdvihr8di13q0b0vq4y"; 13 }; 14 15 + buildInputs = [perl] ++ stdenv.lib.optional enableACLs acl; 16 17 meta = { 18 homepage = http://samba.anu.edu.au/rsync/;
+74
pkgs/applications/office/openoffice/OOo-3.1.1-HEADERFIX-1.patch
···
··· 1 + Submitted By: zippo zippo@oppiz.net 2 + Date: 2009-09-23 3 + Initial Package Version: 3.1.1 4 + Upstream Status: Unknown 5 + Origin: zippo@oppiz.net 6 + Description: Fixes missing headers, GCC-4.3.2 and corrects errors for Glib 2.10 7 + diff -Naur OOO310_m19/soltools/mkdepend/def.h OOO310_m19.new/soltools/mkdepend/def.h 8 + --- OOO310_m19/soltools/mkdepend/def.h 2008-04-10 18:05:14.000000000 +0000 9 + +++ OOO310_m19.new/soltools/mkdepend/def.h 2009-09-23 01:17:01.913883308 +0000 10 + @@ -154,7 +154,7 @@ 11 + 12 + char *copy(); 13 + char *base_name(); 14 + -char *getline(); 15 + +char *get_line(); 16 + char *isdefined(); 17 + struct filepointer *getfile(); 18 + struct inclist *newinclude(); 19 + diff -Naur OOO310_m19/soltools/mkdepend/main.c OOO310_m19.new/soltools/mkdepend/main.c 20 + --- OOO310_m19/soltools/mkdepend/main.c 2008-07-22 17:24:34.000000000 +0000 21 + +++ OOO310_m19.new/soltools/mkdepend/main.c 2009-09-23 01:18:09.160646833 +0000 22 + @@ -548,7 +548,7 @@ 23 + * Get the next line. We only return lines beginning with '#' since that 24 + * is all this program is ever interested in. 25 + */ 26 + -char *getline(filep) 27 + +char *get_line(filep) 28 + register struct filepointer *filep; 29 + { 30 + register char *p, /* walking pointer */ 31 + diff -Naur OOO310_m19/soltools/mkdepend/parse.c OOO310_m19.new/soltools/mkdepend/parse.c 32 + --- OOO310_m19/soltools/mkdepend/parse.c 2008-04-10 18:06:39.000000000 +0000 33 + +++ OOO310_m19.new/soltools/mkdepend/parse.c 2009-09-23 01:18:54.183802453 +0000 34 + @@ -45,7 +45,7 @@ 35 + register int type; 36 + boolean recfailOK; 37 + 38 + - while ((line = getline(filep))) { 39 + + while ((line = get_line(filep))) { 40 + switch(type = deftype(line, filep, file_red, file, TRUE, symbols)) { 41 + case IF: 42 + doif: 43 + @@ -168,7 +168,7 @@ 44 + register char *line; 45 + register int type; 46 + 47 + - while ((line = getline(filep))) { 48 + + while ((line = get_line(filep))) { 49 + switch(type = deftype(line, filep, file_red, file, FALSE, symbols)) { 50 + case IF: 51 + case IFFALSE: 52 + diff -Naur OOO310_m19/sw/source/core/doc/docbm.cxx OOO310_m19.new/sw/source/core/doc/docbm.cxx 53 + --- OOO310_m19/sw/source/core/doc/docbm.cxx 2008-09-04 10:19:07.000000000 +0000 54 + +++ OOO310_m19.new/sw/source/core/doc/docbm.cxx 2009-09-23 12:32:08.011104664 +0000 55 + @@ -32,7 +32,7 @@ 56 + // MARKER(update_precomp.py): autogen include statement, do not remove 57 + #include "precompiled_sw.hxx" 58 + 59 + - 60 + +#include <stdio.h> 61 + #include <tools/pstm.hxx> 62 + #include <svx/linkmgr.hxx> 63 + #include <fmtanchr.hxx> 64 + diff -Naur OOO310_m19/sw/source/filter/ww8/WW8TableInfo.cxx OOO310_m19.new/sw/source/filter/ww8/WW8TableInfo.cxx 65 + --- OOO310_m19/sw/source/filter/ww8/WW8TableInfo.cxx 2009-04-21 09:51:46.000000000 +0000 66 + +++ OOO310_m19.new/sw/source/filter/ww8/WW8TableInfo.cxx 2009-09-23 12:51:12.882511596 +0000 67 + @@ -31,6 +31,7 @@ 68 + // MARKER(update_precomp.py): autogen include statement, do not remove 69 + #include "precompiled_sw.hxx" 70 + 71 + +#include <stdio.h> 72 + #include <iostream> 73 + #include "WW8TableInfo.hxx" 74 + #include "swtable.hxx"
+1 -1
pkgs/applications/office/openoffice/default.nix
··· 17 sha256 = "95440f09f8dce616178b86b26af8e543c869d01579207aa68e8474019b59caca"; 18 }; 19 20 - patches = [ ./oo.patch ]; 21 22 src_system = fetchurl { 23 url = "http://openoffice.bouncer.osuosl.org/?product=OpenOffice.org&os=src_bzip&lang=system&version=${version}";
··· 17 sha256 = "95440f09f8dce616178b86b26af8e543c869d01579207aa68e8474019b59caca"; 18 }; 19 20 + patches = [ ./oo.patch ./OOo-3.1.1-HEADERFIX-1.patch ]; 21 22 src_system = fetchurl { 23 url = "http://openoffice.bouncer.osuosl.org/?product=OpenOffice.org&os=src_bzip&lang=system&version=${version}";
+2 -2
pkgs/applications/science/math/maxima/default.nix
··· 2 3 let 4 name = "maxima"; 5 - version = "5.19.2"; 6 in 7 stdenv.mkDerivation { 8 name = "${name}-${version}"; 9 10 src = fetchurl { 11 url = "mirror://sourceforge/${name}/${name}-${version}.tar.gz"; 12 - sha256 = "4b9d592cb5c5b49acf10c894aa4e899bd47f079b315ee22542122a2e64589072"; 13 }; 14 15 buildInputs = [clisp];
··· 2 3 let 4 name = "maxima"; 5 + version = "5.20.1"; 6 in 7 stdenv.mkDerivation { 8 name = "${name}-${version}"; 9 10 src = fetchurl { 11 url = "mirror://sourceforge/${name}/${name}-${version}.tar.gz"; 12 + sha256 = "cc2430ad6b895fb730ee2a7b8df4852c2b6d09a5a8bb715bdba783982c470bd9"; 13 }; 14 15 buildInputs = [clisp];
+3 -3
pkgs/applications/virtualization/qemu/0.10.3.nix pkgs/applications/virtualization/qemu/0.12.1.nix
··· 1 {stdenv, fetchurl, SDL, zlib, which}: 2 3 stdenv.mkDerivation { 4 - name = "qemu-0.10.3"; 5 6 src = fetchurl { 7 - url = http://download.savannah.gnu.org/releases/qemu/qemu-0.10.3.tar.gz; 8 - sha256 = "0xxhyxa376vi4drjpqq21g0h6gqgb1fxamca7zinl2l8iix0sm49"; 9 }; 10 11 patchFlags = "-p2";
··· 1 {stdenv, fetchurl, SDL, zlib, which}: 2 3 stdenv.mkDerivation { 4 + name = "qemu-0.12.1"; 5 6 src = fetchurl { 7 + url = http://download.savannah.gnu.org/releases/qemu/qemu-0.12.1.tar.gz; 8 + sha256 = "15frq26h2f847fiy1aivb3kj4psx8id8kw217781aimqlk9q45pf"; 9 }; 10 11 patchFlags = "-p2";
-20
pkgs/applications/virtualization/qemu/0.9.1.nix
··· 1 - {stdenv, fetchurl, SDL, zlib, which}: 2 - 3 - stdenv.mkDerivation { 4 - name = "qemu-0.9.1"; 5 - 6 - src = fetchurl { 7 - url = http://bellard.org/qemu/qemu-0.9.1.tar.gz; 8 - sha256 = "199mb12w141yh2afzznh539jsip4h79kfsxwaj1xhzfwljsd0mj7"; 9 - }; 10 - 11 - patches = [../../../os-specific/linux/kvm/smbd-path.patch]; 12 - 13 - patchFlags = "-p2"; 14 - 15 - buildInputs = [SDL zlib which]; 16 - 17 - meta = { 18 - description = "QEmu processor emulator"; 19 - }; 20 - }
···
+3 -3
pkgs/applications/virtualization/virtualbox/default.nix
··· 4 }: 5 6 stdenv.mkDerivation { 7 - name = "virtualbox-3.1.0-${kernel.version}"; 8 9 src = fetchurl { 10 - url = http://download.virtualbox.org/virtualbox/3.1.0/VirtualBox-3.1.0-OSE.tar.bz2; 11 - sha256 = "0f86w4awscgbg9az26h0rlg4i7xr9319hbddjs69ils28g2gz2ns"; 12 }; 13 14 buildInputs = [iasl dev86 libxslt libxml2 xproto libX11 libXext libXcursor qt4 libIDL SDL hal libcap glib kernel python alsaLib curl];
··· 4 }: 5 6 stdenv.mkDerivation { 7 + name = "virtualbox-3.1.2-${kernel.version}"; 8 9 src = fetchurl { 10 + url = http://download.virtualbox.org/virtualbox/3.1.2/VirtualBox-3.1.2-OSE.tar.bz2; 11 + sha256 = "1cgj696lyrklddjjhmrgb5j1jvj43d46hr1wnpyrx8pd6wp5hgr9"; 12 }; 13 14 buildInputs = [iasl dev86 libxslt libxml2 xproto libX11 libXext libXcursor qt4 libIDL SDL hal libcap glib kernel python alsaLib curl];
+9 -6
pkgs/applications/window-managers/icewm/default.nix
··· 1 - args: with args; 2 3 - stdenv.mkDerivation { 4 - name = "icewm-1.2.32"; 5 6 - buildInputs = [ gettext libX11 libXft libXext libXinerama libXrandr libjpeg libtiff libungif libpng imlib ]; 7 8 src = fetchurl { 9 - url = http://mesh.dl.sourceforge.net/sourceforge/icewm/icewm-1.2.32.tar.gz; 10 - sha256 = "c2fe6ef0bdc0a9f841ae6fe214c06a15d666f90df027d105305f3e0dc109a667"; 11 }; 12 13 meta = {
··· 1 + { stdenv, fetchurl, gettext, libjpeg, libtiff, libungif, libpng, imlib, xlibs }: 2 3 + stdenv.mkDerivation rec { 4 + name = "icewm-1.2.37"; 5 6 + buildInputs = 7 + [ gettext libjpeg libtiff libungif libpng imlib 8 + xlibs.libX11 xlibs.libXft xlibs.libXext xlibs.libXinerama xlibs.libXrandr 9 + ]; 10 11 src = fetchurl { 12 + url = "mirror://sourceforge/icewm/${name}.tar.gz"; 13 + sha256 = "15852k96z2w19v3d02jynxyf6ld378hbkd6lpy64byysrmjh3dmz"; 14 }; 15 16 meta = {
+22
pkgs/applications/window-managers/xcompmgr/default.nix
···
··· 1 + { stdenv, fetchurl, pkgconfig, libXcomposite, libXfixes, libXdamage 2 + , libXrender }: 3 + stdenv.mkDerivation rec { 4 + name = "xcompmgr-1.1.5"; 5 + src = fetchurl { 6 + url = "http://www.x.org/releases/individual/app/${name}.tar.bz2"; 7 + sha256 = "bb20737a6f9e0cdf5cfbd5288b6a9a4b16ca18d2be19444549c1d6be2a90b571"; 8 + }; 9 + buildInputs = [ pkgconfig libXcomposite libXfixes libXdamage libXrender ]; 10 + meta = { 11 + homepage = http://www.x.org/; 12 + description = "A sample compositing manager for X servers"; 13 + longDescription = '' 14 + A sample compositing manager for X servers supporting the XFIXES, 15 + DAMAGE, RENDER, and COMPOSITE extensions. It enables basic eye-candy 16 + effects. 17 + ''; 18 + license = "bsd"; 19 + maintainers = with stdenv.lib.maintainers; [ astsmtl ]; 20 + platforms = with stdenv.lib.platforms; linux; 21 + }; 22 + }
+2 -2
pkgs/applications/window-managers/xmonad/default.nix
··· 3 cabal.mkDerivation (self : { 4 pname = "xmonad"; 5 name = "${self.fname}"; 6 - version = "0.9"; 7 - sha256 = "51670f83de211a8ea24ce2724c71ac5c3e4782f25422319d8b5e43f3ae7bf9e8"; 8 propagatedBuildInputs = [X11 mtl]; 9 meta = { 10 description = "xmonad is a tiling window manager for X";
··· 3 cabal.mkDerivation (self : { 4 pname = "xmonad"; 5 name = "${self.fname}"; 6 + version = "0.9.1"; 7 + sha256 = "014201200e8a521ee3a0d8c0727392916a7549207b91064fb456f8c660609927"; 8 propagatedBuildInputs = [X11 mtl]; 9 meta = { 10 description = "xmonad is a tiling window manager for X";
+2 -2
pkgs/applications/window-managers/xmonad/xmonad-contrib.nix
··· 3 cabal.mkDerivation (self : { 4 pname = "xmonad-contrib"; 5 name = "${self.fname}"; 6 - version = "0.9"; 7 - sha256 = "f67471785eba323ac416f912d3503976ef6ed43e93e53fabf5621b2c93351ae9"; 8 propagatedBuildInputs = [X11 xmonad utf8String]; 9 meta = { 10 description = "a huge extension library for xmonad";
··· 3 cabal.mkDerivation (self : { 4 pname = "xmonad-contrib"; 5 name = "${self.fname}"; 6 + version = "0.9.1"; 7 + sha256 = "b4ca1d71d12903be76187ce58898697086e7af3ef73468987cb7ef03b076ec47"; 8 propagatedBuildInputs = [X11 xmonad utf8String]; 9 meta = { 10 description = "a huge extension library for xmonad";
+2 -1
pkgs/build-support/release/nix-build.nix
··· 22 23 showBuildStats = true; 24 25 - phases = "unpackPhase patchPhase configurePhase buildPhase installPhase checkPhase fixupPhase distPhase ${if doCoverageAnalysis then "coverageReportPhase" else ""} finalPhase"; 26 27 finalPhase = 28 ''
··· 22 23 showBuildStats = true; 24 25 + postPhases = 26 + (stdenv.lib.optional doCoverageAnalysis "coverageReportPhase") ++ ["finalPhase"]; 27 28 finalPhase = 29 ''
+25
pkgs/build-support/trivial-builders.nix
··· 73 linkFarm = name: entries: runCommand name {} ("mkdir -p $out; cd $out; \n" + 74 (stdenv.lib.concatMapStrings (x: "ln -s '${x.path}' '${x.name}';\n") entries)); 75 76 }
··· 73 linkFarm = name: entries: runCommand name {} ("mkdir -p $out; cd $out; \n" + 74 (stdenv.lib.concatMapStrings (x: "ln -s '${x.path}' '${x.name}';\n") entries)); 75 76 + # Search in the environment if the same program exists with a set uid or 77 + # set gid bit. If it exists, run the first program found, otherwise run 78 + # the default binary. 79 + useSetUID = drv: path: 80 + let 81 + name = stdenv.lib.basename path; 82 + bin = "${drv}${path}"; 83 + in assert name != ""; 84 + writeScript "setUID-${name}" '' 85 + #!${stdenv.shell} 86 + inode=$(stat -Lc %i ${bin}) 87 + for file in $(type -ap ${name}); do 88 + case $(stat -Lc %a $file) in 89 + ([2-7][0-7][0-7][0-7]) 90 + if test -r "$file".real; then 91 + orig=$(cat "$file".real) 92 + if test $inode = $(stat -Lc %i "$orig"); then 93 + exec "$file" "$@" 94 + fi 95 + fi;; 96 + esac 97 + done 98 + exec ${bin} "$@" 99 + ''; 100 + 101 }
+3 -3
pkgs/desktops/gnome-2.28/desktop/libsoup/default.nix
··· 2 glib, GConf, gnome_keyring}: 3 4 stdenv.mkDerivation { 5 - name = "libsoup-2.28.0"; 6 src = fetchurl { 7 - url = mirror://gnome/sources/libsoup/2.28/libsoup-2.28.0.tar.bz2; 8 - sha256 = "1dkgih5im81lqc0y2qv3xcjd8hvmd4fjjvh5a5akfq6mjp9ifwk4"; 9 }; 10 buildInputs = [ pkgconfig libxml2 gnutls libproxy sqlite curl 11 glib GConf gnome_keyring ];
··· 2 glib, GConf, gnome_keyring}: 3 4 stdenv.mkDerivation { 5 + name = "libsoup-2.28.2"; 6 src = fetchurl { 7 + url = mirror://gnome/sources/libsoup/2.28/libsoup-2.28.2.tar.bz2; 8 + sha256 = "002kxjh6dwpps4iwly1bazxlzgqhkfszqqy26mp1gy2il3lzrlcx"; 9 }; 10 buildInputs = [ pkgconfig libxml2 gnutls libproxy sqlite curl 11 glib GConf gnome_keyring ];
+7 -6
pkgs/development/compilers/adobe-flex-sdk/default.nix
··· 1 args: with args; 2 stdenv.mkDerivation rec { 3 - name = "adobe-flex-sdk-3.3.0.4852_mpl"; 4 5 src = fetchurl { 6 - url = http://flexorg.wip3.adobe.com/flexsdk/3.3.0.4852/flex_sdk_3.3.0.4852_mpl.zip; 7 - sha256 = "1gsm774afc7zwv3hyib5n6fpdbnd0dh6z7r2amjf38fm96jw7a99"; 8 }; 9 10 phases="installPhase"; ··· 18 t=$out/opt/flex-sdk 19 ensureDir $t $out/bin 20 mv * $t 21 - sed 's/ $//' -i $t/bin/mxmlc 22 - rm $t/bin/*.exe 23 - for i in $t/bin/mxmlc; do 24 b="$(basename "$i")"; 25 cat > "$out/bin/$b" << EOF 26 #!/bin/sh
··· 1 args: with args; 2 stdenv.mkDerivation rec { 3 + name = "adobe_flex_sdk_3.4.1.10084_mpl"; 4 5 src = fetchurl { 6 + # This is the open source distribution 7 + url = http://fpdownload.adobe.com/pub/flex/sdk/builds/flex3/flex_sdk_3.4.1.10084_mpl.zip; 8 + sha256 = "0bq0cnq25qyr3g64sqqc20y3mmnhgh07p3ylxd2iq0ha8cdis7z0"; 9 }; 10 11 phases="installPhase"; ··· 19 t=$out/opt/flex-sdk 20 ensureDir $t $out/bin 21 mv * $t 22 + rm $t/bin/*.exe $t/bin/*.bat 23 + sed 's/ $//' -i $t/bin/* 24 + for i in $t/bin/*; do 25 b="$(basename "$i")"; 26 cat > "$out/bin/$b" << EOF 27 #!/bin/sh
+12 -5
pkgs/development/compilers/fpc/binary.nix
··· 1 args: with args; 2 3 stdenv.mkDerivation { 4 - name = "fpc-2.2.2-binary"; 5 6 - src = fetchurl { 7 - url = ftp://ftp.chg.ru/pub/lang/pascal/fpc/dist/i386-linux-2.2.2/fpc-2.2.2.i386-linux.tar; 8 - sha256 = "8c18f63b36a76eee673f96ca254c49c5a42bcf3e36279abe8774f961792449a5"; 9 - }; 10 11 builder = ./binary-builder.sh; 12
··· 1 args: with args; 2 3 stdenv.mkDerivation { 4 + name = "fpc-2.4.0-binary"; 5 6 + src = if stdenv.system == "i686-linux" then 7 + fetchurl { 8 + url = "ftp://ftp.chg.ru/pub/lang/pascal/fpc/dist/2.4.0/i386-linux/fpc-2.4.0.i386-linux.tar"; 9 + sha256 = "1zas9kp0b36zxqvb9i4idh2l0nb6qpmgah038l77w6las7ghh0dv"; 10 + } 11 + else if stdenv.system == "x86_64-linux" then 12 + fetchurl { 13 + url = "ftp://ftp.chg.ru/pub/lang/pascal/fpc/dist/2.4.0/x86_64-linux/fpc-2.4.0.x86_64-linux.tar"; 14 + sha256 = "111d11g5ra55hjywx64ldwwflpimsy8zryvap68v0309nyd23f0z"; 15 + } 16 + else null; 17 18 builder = ./binary-builder.sh; 19
+2 -2
pkgs/development/compilers/fpc/default.nix
··· 5 with args; 6 7 stdenv.mkDerivation rec { 8 - version = "2.2.4"; 9 name = "fpc-${version}"; 10 11 src = fetchurl { 12 url = "http://downloads.sourceforge.net/sourceforge/freepascal/fpcbuild-${version}.tar.gz"; 13 - sha256 = "1kxljnivww4riqff8vxann7s135cv634ly3i61rfs1wzwc4lz9bp"; 14 }; 15 16 buildInputs = [startFPC gawk];
··· 5 with args; 6 7 stdenv.mkDerivation rec { 8 + version = "2.4.0"; 9 name = "fpc-${version}"; 10 11 src = fetchurl { 12 url = "http://downloads.sourceforge.net/sourceforge/freepascal/fpcbuild-${version}.tar.gz"; 13 + sha256 = "1m2g2bafjixbwl5b9lna5h7r56y1rcayfnbp8kyjfd1c1ymbxaxk"; 14 }; 15 16 buildInputs = [startFPC gawk];
+2 -2
pkgs/development/compilers/fpc/lazarus.nix
··· 2 rec { 3 version = "0.9.26.2-0"; 4 src = fetchurl { 5 - url = "http://downloads.sourceforge.net/lazarus/lazarus-${version}.tgz"; 6 - sha256 = "5b582685c0447034580fe17c60b8fc84a8b097b6f31ff9b4583cf0eb741297cc"; 7 }; 8 9 buildInputs = [fpc gtk glib libXi inputproto
··· 2 rec { 3 version = "0.9.26.2-0"; 4 src = fetchurl { 5 + url = "mirror://sourceforge/lazarus/Lazarus%20Zip%20_%20GZip/Lazarus%200.9.28.2/lazarus-0.9.28.2-src.tar.bz2"; 6 + sha256 = "1zad1sylgvhpb210zxypdyng72fpjz1zdf3cpqj9dl94cwn3f4ap"; 7 }; 8 9 buildInputs = [fpc gtk glib libXi inputproto
+7 -5
pkgs/development/compilers/ghc/6.12.1.nix
··· 1 {stdenv, fetchurl, ghc, perl, gmp, ncurses}: 2 3 stdenv.mkDerivation rec { 4 - version = "6.12.0.20091010"; 5 6 name = "ghc-${version}"; 7 8 homepage = "http://haskell.org/ghc"; 9 10 src = fetchurl { 11 - url = "http://darcs.haskell.org/~ghc/dist/6.12.1rc1/${name}-src.tar.bz2"; 12 - sha256 = "903552917778329fc79cc273ece81030324006f47157ddd4278cb08c1c637fd3"; 13 }; 14 15 buildInputs = [ghc perl gmp ncurses]; ··· 34 meta = { 35 inherit homepage; 36 description = "The Glasgow Haskell Compiler"; 37 }; 38 39 40 passthru = { 41 corePackages = [ 42 - [ "Cabal" "1.8.0" ] 43 [ "array" "0.3.0.0" ] 44 [ "base" "3.0.3.2" ] 45 [ "base" "4.2.0.0" ] ··· 56 [ "extensible-exceptions" "0.1.1.1" ] 57 [ "ffi" "1.0" ] 58 [ "filepath" "1.1.0.3" ] 59 - [ "ghc" "6.12.0.20091010" ] 60 [ "ghc-binary" "0.5.0.2" ] 61 [ "ghc-prim" "0.2.0.0" ] 62 [ "haskell98" "1.0.1.1" ]
··· 1 {stdenv, fetchurl, ghc, perl, gmp, ncurses}: 2 3 stdenv.mkDerivation rec { 4 + version = "6.12.1"; 5 6 name = "ghc-${version}"; 7 8 homepage = "http://haskell.org/ghc"; 9 10 src = fetchurl { 11 + url = http://haskell.org/ghc/dist/6.12.1/ghc-6.12.1-src.tar.bz2; 12 + sha256 = "0ajm4sypk4zgjp0m6i03fadyv5dm9vlqfnvsx1g94yk7vnd9zyfd"; 13 }; 14 15 buildInputs = [ghc perl gmp ncurses]; ··· 34 meta = { 35 inherit homepage; 36 description = "The Glasgow Haskell Compiler"; 37 + maintainers = [stdenv.lib.maintainers.marcweber]; 38 + platforms = stdenv.platforms.linux; 39 }; 40 41 42 passthru = { 43 corePackages = [ 44 + [ "Cabal" "1.8.0.2" ] 45 [ "array" "0.3.0.0" ] 46 [ "base" "3.0.3.2" ] 47 [ "base" "4.2.0.0" ] ··· 58 [ "extensible-exceptions" "0.1.1.1" ] 59 [ "ffi" "1.0" ] 60 [ "filepath" "1.1.0.3" ] 61 + [ "ghc" "6.12.1" ] 62 [ "ghc-binary" "0.5.0.2" ] 63 [ "ghc-prim" "0.2.0.0" ] 64 [ "haskell98" "1.0.1.1" ]
+1
pkgs/development/compilers/ghc/ghc-get-packages.sh
··· 18 test -f $i && echo -n " $prefix$i" 19 done 20 done
··· 18 test -f $i && echo -n " $prefix$i" 19 done 20 done 21 + test -f "$2/../lib/ghc-$version/package.conf" && echo -n " $prefix$2/../lib/ghc-$version/package.conf"
+14
pkgs/development/compilers/mozart/default.nix
···
··· 1 + {stdenv, fetchurl, flex, bison, perl, gmp, zlib, tcl, tk, gdbm, m4, x11, emacs}: 2 + 3 + stdenv.mkDerivation { 4 + name = "mozart-1.4.0"; 5 + src = fetchurl { 6 + url = http://www.mozart-oz.org/download/mozart-ftp/store/1.4.0-2008-07-02-tar/mozart-1.4.0.20080704-src.tar.gz; 7 + sha256 = "5da73d80b5aa7fa42edca64159a1a076323f090e5c548f3747f94d0afc60b223"; 8 + }; 9 + 10 + buildInputs = [flex bison perl gmp zlib tcl tk gdbm m4 x11 emacs]; 11 + 12 + # micq gives a compile error for me 13 + configureFlags = "--with-tcl=${tcl}/lib --with-tk=${tk}/lib --disable-contrib-micq"; 14 + }
+3 -3
pkgs/development/compilers/strategoxt/0.18.nix
··· 41 42 43 strategoxt = stdenv.mkDerivation rec { 44 - name = "strategoxt-0.18pre20227"; 45 46 src = fetchurl { 47 - url = "http://hydra.nixos.org/build/124117/download/1/strategoxt-0.18pre20227.tar.gz"; 48 - sha256 = "c2c7a68f76c6dfaf470ed9f7bad71cddebb620b709f20b01231c3a6fd93d8150"; 49 }; 50 51 buildInputs = [pkgconfig aterm sdf getopt];
··· 41 42 43 strategoxt = stdenv.mkDerivation rec { 44 + name = "strategoxt-0.18pre20449"; 45 46 src = fetchurl { 47 + url = "http://hydra.nixos.org/build/199475/download/1/strategoxt-0.18pre20449.tar.gz"; 48 + sha256 = "c492df19a810801377f160f6d117bfd3e689f23396bd89c3e98224f35db666f2"; 49 }; 50 51 buildInputs = [pkgconfig aterm sdf getopt];
+2 -2
pkgs/development/interpreters/guile/1.9.nix
··· 17 propagatedBuildInputs = [ gmp boehmgc ]; 18 19 patches = 20 - stdenv.lib.optional (coverageAnalysis != null) 21 - ./disable-gc-sensitive-tests.patch; 22 23 postInstall = '' 24 wrapProgram $out/bin/guile-snarf --prefix PATH : "${gawk}/bin"
··· 17 propagatedBuildInputs = [ gmp boehmgc ]; 18 19 patches = 20 + stdenv.lib.optionals (coverageAnalysis != null) 21 + [ ./gcov-file-name.patch ./disable-gc-sensitive-tests.patch ]; 22 23 postInstall = '' 24 wrapProgram $out/bin/guile-snarf --prefix PATH : "${gawk}/bin"
+42
pkgs/development/interpreters/guile/gcov-file-name.patch
···
··· 1 + This patch arranges so that we don't end up, with profiling builds, with a 2 + file named `<stdout>.gcov' since that confuses lcov: 3 + 4 + <stdout>:cannot open source file 5 + geninfo: ERROR: cannot read <stdout>.gcov! 6 + 7 + --- guile/libguile/c-tokenize.c 2009-09-13 13:05:15.000000000 +0200 8 + +++ guile/libguile/c-tokenize.c 2009-10-28 16:24:15.000000000 +0100 9 + @@ -1,5 +1,5 @@ 10 + 11 + -#line 3 "<stdout>" 12 + +#line 3 "c-tokenize.c" 13 + 14 + #define YY_INT_ALIGNED short int 15 + 16 + @@ -616,7 +616,7 @@ int cookie_was_last = 0; 17 + #define IS_COOKIE cookie_was_last = 1 18 + #define IS_NOT_COOKIE cookie_was_last = 0 19 + 20 + -#line 620 "<stdout>" 21 + +#line 620 "c-tokenize.c" 22 + 23 + #define INITIAL 0 24 + 25 + @@ -799,7 +799,7 @@ YY_DECL 26 + #line 65 "./c-tokenize.lex" 27 + 28 + 29 + -#line 803 "<stdout>" 30 + +#line 803 "c-tokenize.c" 31 + 32 + if ( !(yy_init) ) 33 + { 34 + @@ -1235,7 +1235,7 @@ YY_RULE_SETUP 35 + #line 181 "./c-tokenize.lex" 36 + ECHO; 37 + YY_BREAK 38 + -#line 1239 "<stdout>" 39 + +#line 1239 "c-tokenize.c" 40 + case YY_STATE_EOF(INITIAL): 41 + yyterminate(); 42 +
+34
pkgs/development/interpreters/php-xdebug/default.nix
···
··· 1 + args: with args; 2 + stdenv.mkDerivation { 3 + name = "php-xdebug"; 4 + 5 + src = args.fetchurl { 6 + url = "http://xdebug.org/files/xdebug-2.0.5.tgz"; 7 + sha256 = "1cmq7c36gj8n41mfq1wba5rij8j77yqhydpcsbcysk1zchg68f26"; 8 + }; 9 + 10 + buildInputs = [php autoconf automake]; 11 + 12 + configurePhase = '' 13 + phpize 14 + ./configure --prefix=$out 15 + ''; 16 + 17 + buildPhase = '' 18 + make && make test 19 + ''; 20 + 21 + installPhase = '' 22 + ensureDir $out/lib/xdebug 23 + cp modules/xdebug.so $out/lib 24 + cp LICENSE $out/lib/xdebug 25 + ''; 26 + 27 + meta = { 28 + description = "php debugger and profiler extension"; 29 + homepage = http://xdebug.org/; 30 + license = "xdebug"; # based on PHP-3 31 + maintainers = [stdenv.lib.maintainers.marcweber]; 32 + platforms = stdenv.lib.platforms.linux; 33 + }; 34 + }
+43
pkgs/development/interpreters/php/ini-bulider.nix
···
··· 1 + {runCommand, php, appendLines ? "", prefixPhpRecommended ? true} : 2 + 3 + 4 + /* 5 + 6 + NixOS: see apache-httpd/default.nix's phpIni option 7 + 8 + to enable Xdebug append these lines: 9 + '' 10 + zend_extension="${pkgs.phpXdebug}/lib/xdebug.so" 11 + zend_extension_ts="${pkgs.phpXdebug}/lib/xdebug.so" 12 + zend_extension_debug="${pkgs.phpXdebug}/lib/xdebug.so" 13 + xdebug.remote_enable=true 14 + xdebug.remote_host=127.0.0.1 15 + xdebug.remote_port=9000 16 + xdebug.remote_handler=dbgp 17 + xdebug.profiler_enable=0 18 + xdebug.profiler_output_dir="/tmp/xdebug" 19 + xdebug.remote_mode=req 20 + '' 21 + 22 + to make php's mail() function work add 23 + '' 24 + ; Needed for PHP's mail() function. 25 + sendmail_path = sendmail -t -i 26 + '' 27 + */ 28 + 29 + 30 + runCommand "php.ini" 31 + { 32 + inherit php appendLines prefixPhpRecommended; 33 + } 34 + '' 35 + [ -z "$prefixPhpRecommended" ] || { 36 + { 37 + echo "# PHP RECOMMENDED INI START" 38 + cat $php/etc/php-recommended.ini 39 + echo "# PHP RECOMMENDED INI END" 40 + } >> $out 41 + } 42 + echo "$appendLines" >> $out 43 + ''
+1 -35
pkgs/development/interpreters/php_configurable/default.nix
··· 106 license = "based on the PHP license - as is"; 107 }; 108 */ 109 - xdebug = { 110 - buildInputs = [ automake autoconf ]; 111 - xdebug_src = args.fetchurl { 112 - url = "http://xdebug.org/files/xdebug-2.0.5.tgz"; 113 - sha256 = "1cmq7c36gj8n41mfq1wba5rij8j77yqhydpcsbcysk1zchg68f26"; 114 - }; 115 - }; 116 }; 117 118 cfg = { ··· 130 soapSupport = getConfig ["php" "soap"] true; 131 zlibSupport = getConfig ["php" "zlib"] true; 132 opensslSupport = getConfig ["php" "openssl"] true; 133 - xdebugSupport = getConfig ["php" "xdebug"] false; 134 mbstringSupport = getConfig ["php" "mbstring"] true; 135 gdSupport = getConfig ["php" "gd"] true; 136 }; 137 138 # only -O1 139 configurePhase = '' 140 - iniFile=$out/etc/$name.ini 141 [[ -z "$libxml2" ]] || export PATH=$PATH:$libxml2/bin 142 ./configure --with-config-file-scan-dir=/etc --with-config-file-path=$out/etc --prefix=$out $configureFlags 143 echo configurePhase end ··· 147 installPhase = '' 148 unset installPhase; installPhase; 149 cp php.ini-recommended $iniFile 150 - 151 - # Now Let's build xdebug if flag has been given 152 - # TODO I think there are better paths than the given below 153 - if [ -n "$xdebug_src" ]; then 154 - PATH=$PATH:$out/bin 155 - tar xfz $xdebug_src; 156 - cd xdebug* 157 - phpize 158 - ./configure --prefix=$out 159 - make 160 - ensureDir $out/lib; cp modules/xdebug.so $out/lib 161 - cat >> $out/etc/php.ini << EOF 162 - zend_extension="$out/lib/xdebug.so" 163 - zend_extension_ts="$out/lib/xdebug.so" 164 - zend_extension_debug="$out/lib/xdebug.so" 165 - xdebug.remote_enable=true 166 - xdebug.remote_host=127.0.0.1 167 - xdebug.remote_port=9000 168 - xdebug.remote_handler=dbgp 169 - xdebug.profiler_enable=0 170 - xdebug.profiler_output_dir="/tmp/xdebug" 171 - xdebug.remote_mode=req 172 - max_execution_time = 300 173 - date.timezone = UTC 174 - EOF 175 - fi 176 ''; 177 178 src = args.fetchurl {
··· 106 license = "based on the PHP license - as is"; 107 }; 108 */ 109 }; 110 111 cfg = { ··· 123 soapSupport = getConfig ["php" "soap"] true; 124 zlibSupport = getConfig ["php" "zlib"] true; 125 opensslSupport = getConfig ["php" "openssl"] true; 126 mbstringSupport = getConfig ["php" "mbstring"] true; 127 gdSupport = getConfig ["php" "gd"] true; 128 }; 129 130 # only -O1 131 configurePhase = '' 132 + iniFile=$out/etc/php-recommended.ini 133 [[ -z "$libxml2" ]] || export PATH=$PATH:$libxml2/bin 134 ./configure --with-config-file-scan-dir=/etc --with-config-file-path=$out/etc --prefix=$out $configureFlags 135 echo configurePhase end ··· 139 installPhase = '' 140 unset installPhase; installPhase; 141 cp php.ini-recommended $iniFile 142 ''; 143 144 src = args.fetchurl {
+5 -1
pkgs/development/libraries/adns/default.nix
··· 11 }; 12 src = fetchurl 13 { 14 - url = "ftp://ftp.chiark.greenend.org.uk/users/ian/adns/adns-${version}.tar.gz"; 15 sha256 = "${versionHash}"; 16 }; 17 configureFlags = if static then "--disable-dynamic" else "--enable-dynamic";
··· 11 }; 12 src = fetchurl 13 { 14 + urls = 15 + [ "http://www.chiark.greenend.org.uk/~ian/adns/ftp/adns-${version}.tar.gz" 16 + "ftp://ftp.chiark.greenend.org.uk/users/ian/adns/adns-${version}.tar.gz" 17 + "mirror://gnu/adns/adns-${version}.tar.gz" 18 + ]; 19 sha256 = "${versionHash}"; 20 }; 21 configureFlags = if static then "--disable-dynamic" else "--enable-dynamic";
+18
pkgs/development/libraries/enginepkcs11/default.nix
···
··· 1 + {stdenv, fetchurl, libp11, pkgconfig, openssl}: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "engine_pkcs11-0.1.8"; 5 + 6 + src = fetchurl { 7 + url = "http://www.opensc-project.org/files/engine_pkcs11/${name}.tar.gz"; 8 + sha256 = "1rd20rxy12rfx3kwwvk5sqvc1ll87z60rqak1ksfwbf4wx0pwzfy"; 9 + }; 10 + 11 + buildInputs = [ libp11 pkgconfig openssl ]; 12 + 13 + meta = { 14 + homepage = http://www.opensc-project.org/engine_pkcs11/; 15 + license = "BSD"; 16 + description = "Engine for OpenSSL to use smart cards in PKCS#11 format"; 17 + }; 18 + }
+2 -2
pkgs/development/libraries/glib/2.22.x.nix
··· 1 { stdenv, fetchurl, pkgconfig, gettext, perl }: 2 3 stdenv.mkDerivation rec { 4 - name = "glib-2.22.2"; 5 6 src = fetchurl { 7 url = "mirror://gnome/sources/glib/2.22/${name}.tar.bz2"; 8 - sha256 = "18ycpaf69wlpp4wq385hkq7bcfhbis8ncd7wl7zmwgrdzh11v954"; 9 }; 10 11 buildInputs = [pkgconfig gettext perl];
··· 1 { stdenv, fetchurl, pkgconfig, gettext, perl }: 2 3 stdenv.mkDerivation rec { 4 + name = "glib-2.22.4"; 5 6 src = fetchurl { 7 url = "mirror://gnome/sources/glib/2.22/${name}.tar.bz2"; 8 + sha256 = "055dv2hymbyzwpcd39r97x747vsvlkyywa826zr75dzambw6n7qd"; 9 }; 10 11 buildInputs = [pkgconfig gettext perl];
+2 -2
pkgs/development/libraries/gtk+/2.18.x.nix
··· 8 assert cupsSupport -> cups != null; 9 10 stdenv.mkDerivation rec { 11 - name = "gtk+-2.18.3"; 12 13 src = fetchurl { 14 url = "mirror://gnome/sources/gtk+/2.18/${name}.tar.bz2"; 15 - sha256 = "1gv8lx7a00yp95ss0vzvmda4nv213m8adjdkx18hhmhaavz6a1hw"; 16 }; 17 18 buildInputs = [ pkgconfig perl jasper ];
··· 8 assert cupsSupport -> cups != null; 9 10 stdenv.mkDerivation rec { 11 + name = "gtk+-2.18.6"; 12 13 src = fetchurl { 14 url = "mirror://gnome/sources/gtk+/2.18/${name}.tar.bz2"; 15 + sha256 = "0k9mz46q97537kdpmz8j5bhrzpn3zjp7k4mni4niafdp2x4r8aan"; 16 }; 17 18 buildInputs = [ pkgconfig perl jasper ];
+3 -2
pkgs/development/libraries/haskell/Agda/default.nix
··· 3 4 cabal.mkDerivation (self : { 5 pname = "Agda"; 6 - version = "2.2.2"; 7 - sha256 = "265dbb5bc6d67bfeefa4a2a4ac9e5018d6d8b5c1a75816e05da2661c43a39bba"; 8 extraBuildInputs = [happy alex]; 9 propagatedBuildInputs = 10 [QuickCheck binary haskeline haskellSrc mtl utf8String xhtml zlib]; 11 meta = { 12 description = "A dependently typed functional language and proof assistant"; 13 }; 14 }) 15
··· 3 4 cabal.mkDerivation (self : { 5 pname = "Agda"; 6 + version = "2.2.6"; 7 + sha256 = "e9268a61db30fc0f22f7e1fbc78673cd3e0d1bf2dd40ee5cf809635ca40fca78"; 8 extraBuildInputs = [happy alex]; 9 propagatedBuildInputs = 10 [QuickCheck binary haskeline haskellSrc mtl utf8String xhtml zlib]; 11 meta = { 12 description = "A dependently typed functional language and proof assistant"; 13 + maintainers = [self.stdenv.lib.maintainers.andres]; 14 }; 15 }) 16
-13
pkgs/development/libraries/haskell/QuickCheck/2.1.0.1.nix
··· 1 - {cabal, mtl}: 2 - 3 - cabal.mkDerivation (self : { 4 - pname = "QuickCheck"; 5 - version = "2.1.0.1"; 6 - sha256 = "f99edf1a45315e90c9ec672d5d959d5878dcc1de65678c6aed85829a896b75f1"; 7 - propagatedBuildInputs = [mtl]; 8 - configureFlags = ''--constraint=base<4''; 9 - meta = { 10 - description = "Automatic testing of Haskell programs"; 11 - }; 12 - }) 13 -
···
+14
pkgs/development/libraries/haskell/QuickCheck/QuickCheck-2.nix
···
··· 1 + {cabal, mtl}: 2 + 3 + cabal.mkDerivation (self : { 4 + pname = "QuickCheck"; 5 + version = "2.1.0.2"; 6 + sha256 = "1adeea5aa52cba7b8bcd27f9cdd9fe944e9a4a22d22fdf0570b526f580981e58"; 7 + propagatedBuildInputs = [mtl]; 8 + meta = { 9 + description = "Automatic testing of Haskell programs"; 10 + license = "BSD"; 11 + maintainers = [self.stdenv.lib.maintainers.andres]; 12 + }; 13 + }) 14 +
+2 -2
pkgs/development/libraries/haskell/X11/default.nix
··· 4 5 cabal.mkDerivation (self : { 6 pname = "X11"; 7 - version = "1.4.6.1"; 8 - sha256 = "3e1375d4e53a8366fa2ea12bd9c3033ffe2f7dd00443acd84f722cf0dfff0fa9"; 9 propagatedBuildInputs = [libX11] ++ (if xineramaSupport then [libXinerama libXext] else []); 10 meta = { 11 description = "A Haskell binding to the X11 graphics library";
··· 4 5 cabal.mkDerivation (self : { 6 pname = "X11"; 7 + version = "1.5.0.0"; 8 + sha256 = "653ff8aa4053574a36dbb1729459df6e5a1a87a223bc3eeced8e40c6e3a5406f"; 9 propagatedBuildInputs = [libX11] ++ (if xineramaSupport then [libXinerama libXext] else []); 10 meta = { 11 description = "A Haskell binding to the X11 graphics library";
+29 -13
pkgs/development/libraries/haskell/cabal/cabal.nix
··· 9 10 # pname should be defined by the client to be the package basename 11 # version should be defined by the client to be the package version 12 - 13 # fname is the internal full name of the package 14 fname = "${self.pname}-${self.version}"; 15 16 - # name is the external full name of the package; usually we prefix 17 - # all packages with haskell- to avoid name clashes for libraries; 18 - # if that is not desired (for applications), name can be set to 19 - # fname. 20 - name = "haskell-${self.pname}-ghc${attrs.ghc.ghc.version}-${self.version}"; 21 22 # the default download location for Cabal packages is Hackage, 23 # you still have to specify the checksum ··· 37 propagatedBuildInputs = []; 38 39 # library directories that have to be added to the Cabal files 40 - extraLibDirs = attrs.lib.lists.concatMap (x : [ (x + "/lib64") (x + "/lib") ]) self.propagatedBuildInputs; 41 42 # compiles Setup and configures 43 configurePhase = '' ··· 46 for i in Setup.hs Setup.lhs; do 47 test -f $i && ghc --make $i 48 done 49 - ./Setup configure --verbose --prefix="$out" ${toString (map (x : "--extra-lib-dir=" + x) self.extraLibDirs)} $configureFlags 50 51 eval "$postConfigure" 52 ''; ··· 57 58 ./Setup build 59 60 eval "$postBuild" 61 ''; 62 63 - # installs via Cabal; creates a registration file for nix-support 64 - # so that the package can be used in other Haskell-builds; also 65 - # adds all propagated build inputs to the user environment packages 66 installPhase = '' 67 eval "$preInstall" 68 ··· 82 83 ensureDir $out/nix-support 84 ln -s $out/nix-support/propagated-build-inputs $out/nix-support/propagated-user-env-packages 85 - 86 eval "$postInstall" 87 ''; 88 }; 89 in attrs.stdenv.mkDerivation ((rec { f = dtransform f // transform f; }).f); 90 - }
··· 9 10 # pname should be defined by the client to be the package basename 11 # version should be defined by the client to be the package version 12 + 13 # fname is the internal full name of the package 14 fname = "${self.pname}-${self.version}"; 15 16 + # name is the external full name of the package; usually we prefix 17 + # all packages with haskell- to avoid name clashes for libraries; 18 + # if that is not desired (for applications), name can be set to 19 + # fname. 20 + name = "haskell-${self.pname}-ghc${attrs.ghc.ghc.version}-${self.version}"; 21 22 # the default download location for Cabal packages is Hackage, 23 # you still have to specify the checksum ··· 37 propagatedBuildInputs = []; 38 39 # library directories that have to be added to the Cabal files 40 + extraLibDirs = []; 41 42 # compiles Setup and configures 43 configurePhase = '' ··· 46 for i in Setup.hs Setup.lhs; do 47 test -f $i && ghc --make $i 48 done 49 + 50 + for p in $propagatedBuildInputs; do 51 + for d in lib{,64}; do 52 + if [ -e "$p/$d" ]; then 53 + extraLibDirs="$extraLibDirs --extra-lib-dir=$p/$d" 54 + fi 55 + done 56 + done 57 + 58 + ./Setup configure --verbose --prefix="$out" $extraLibDirs $configureFlags 59 60 eval "$postConfigure" 61 ''; ··· 66 67 ./Setup build 68 69 + export GHC_PACKAGE_PATH=$(ghc-packages) 70 + ./Setup haddock 71 + 72 eval "$postBuild" 73 ''; 74 75 + # installs via Cabal; creates a registration file for nix-support 76 + # so that the package can be used in other Haskell-builds; also 77 + # adds all propagated build inputs to the user environment packages 78 installPhase = '' 79 eval "$preInstall" 80 ··· 94 95 ensureDir $out/nix-support 96 ln -s $out/nix-support/propagated-build-inputs $out/nix-support/propagated-user-env-packages 97 + 98 eval "$postInstall" 99 ''; 100 + 101 + # We inherit stdenv and ghc so that they can be used 102 + # in Cabal derivations. 103 + inherit (attrs) stdenv ghc; 104 }; 105 in attrs.stdenv.mkDerivation ((rec { f = dtransform f // transform f; }).f); 106 + }
+2 -2
pkgs/development/libraries/haskell/haskeline/default.nix
··· 2 3 cabal.mkDerivation (self : { 4 pname = "haskeline"; 5 - version = "0.6.1.3"; 6 - sha256 = "af27d17bf6df7647e843bca91548b542748a5305f072ba7cfef97105a52578d4"; 7 propagatedBuildInputs = [extensibleExceptions mtl utf8String]; 8 meta = { 9 description = "A command-line interface for user input, written in Haskell";
··· 2 3 cabal.mkDerivation (self : { 4 pname = "haskeline"; 5 + version = "0.6.2.2"; 6 + sha256 = "b6307563258802453d65c7e7bd1ef1c6635fefea17af3e01449192b52075b25b"; 7 propagatedBuildInputs = [extensibleExceptions mtl utf8String]; 8 meta = { 9 description = "A command-line interface for user input, written in Haskell";
+4 -2
pkgs/development/libraries/haskell/regular/default.nix
··· 2 3 cabal.mkDerivation (self : { 4 pname = "regular"; 5 - version = "0.1"; 6 - sha256 = "2f2858a22dd26d93eaa4b5244141d6d146387eac98e0fb15f647123d50525820"; 7 meta = { 8 description = "Generic programming library for regular datatypes"; 9 }; 10 }) 11
··· 2 3 cabal.mkDerivation (self : { 4 pname = "regular"; 5 + version = "0.2.1"; 6 + sha256 = "732de15c4687b34a2702d38975581c8ab32167a76cd3c40cd4886bca0fc8b762"; 7 meta = { 8 description = "Generic programming library for regular datatypes"; 9 + license = "BSD"; 10 + maintainers = [self.stdenv.lib.maintainers.andres]; 11 }; 12 }) 13
+2 -2
pkgs/development/libraries/haskell/utf8-string/default.nix
··· 2 3 cabal.mkDerivation (self : { 4 pname = "utf8-string"; 5 - version = "0.3.5"; 6 - sha256 = "41f99b3e9f61ab5309c93f98d45f1ba2e475a8504c5202a350720c27fb82d07a"; 7 meta = { 8 description = "A UTF8 layer for IO and Strings"; 9 };
··· 2 3 cabal.mkDerivation (self : { 4 pname = "utf8-string"; 5 + version = "0.3.6"; 6 + sha256 = "c8c74555174edfb96145585c9b80780d0fc55ba249282b8a4c5968cca7c09d69"; 7 meta = { 8 description = "A UTF8 layer for IO and Strings"; 9 };
+2 -2
pkgs/development/libraries/haskell/uu-parsinglib/default.nix
··· 2 3 cabal.mkDerivation (self : { 4 pname = "uu-parsinglib"; 5 - version = "2.2.1"; 6 - sha256 = "f05088d621715e5ebc7037f1a8cb5f34fd13ed055a26bf2dc331bdbeef7552dc"; 7 meta = { 8 description = "New version of the Utrecht University parser combinator library"; 9 };
··· 2 3 cabal.mkDerivation (self : { 4 pname = "uu-parsinglib"; 5 + version = "2.3.0"; 6 + sha256 = "0ddf5ff41e59d8a777942f821170f1e6c7373712b029261a7efbc16fa663b671"; 7 meta = { 8 description = "New version of the Utrecht University parser combinator library"; 9 };
+21
pkgs/development/libraries/java/dbus-java/default.nix
···
··· 1 + {stdenv, fetchurl, gettext, jdk, libmatthew_java}: 2 + 3 + stdenv.mkDerivation { 4 + name = "dbus-java-2.7"; 5 + src = fetchurl { 6 + url = http://dbus.freedesktop.org/releases/dbus-java/dbus-java-2.7.tar.gz; 7 + sha256 = "0cyaxd8x6sxmi6pklkkx45j311a6w51fxl4jc5j3inc4cailwh5y"; 8 + }; 9 + JAVA_HOME=jdk; 10 + JAVA="${jdk}/bin/java"; 11 + PREFIX=''''${out}''; 12 + JAVAUNIXLIBDIR="${libmatthew_java}/lib/jni"; 13 + JAVAUNIXJARDIR="${libmatthew_java}/share/java"; 14 + buildInputs = [ gettext jdk ]; 15 + # I'm too lazy to build the documentation 16 + preBuild = '' 17 + sed -i -e "s|all: bin doc man|all: bin|" \ 18 + -e "s|install: install-bin install-man install-doc|install: install-bin|" Makefile 19 + ''; 20 + maintainers = [ stdenv.lib.maintainers.sander ]; 21 + }
+13
pkgs/development/libraries/java/libmatthew-java/default.nix
···
··· 1 + {stdenv, fetchurl, jdk}: 2 + 3 + stdenv.mkDerivation { 4 + name = "libmatthew-java-0.7.2"; 5 + src = fetchurl { 6 + url = http://www.matthew.ath.cx/projects/java/libmatthew-java-0.7.2.tar.gz; 7 + sha256 = "00zd6vplbvha64pf65bpw44abg2y8irblik30pbk35wcm86a0j4z"; 8 + }; 9 + JAVA_HOME=jdk; 10 + PREFIX=''''${out}''; 11 + buildInputs = [ jdk ]; 12 + maintainers = [ stdenv.lib.maintainers.sander ]; 13 + }
+2 -2
pkgs/development/libraries/libdrm/default.nix
··· 1 {stdenv, fetchurl, pkgconfig, libpthreadstubs}: 2 3 stdenv.mkDerivation rec { 4 - name = "libdrm-2.4.15"; 5 6 src = fetchurl { 7 url = "http://dri.freedesktop.org/libdrm/${name}.tar.bz2"; 8 - sha256 = "1pm7iddv3yjwvqmlbdmj9m55bmkfcfzq0wvqpgx4gkmdjfd8kzxw"; 9 }; 10 11 buildInputs = [ pkgconfig libpthreadstubs ];
··· 1 {stdenv, fetchurl, pkgconfig, libpthreadstubs}: 2 3 stdenv.mkDerivation rec { 4 + name = "libdrm-2.4.17"; 5 6 src = fetchurl { 7 url = "http://dri.freedesktop.org/libdrm/${name}.tar.bz2"; 8 + sha256 = "0sii8bhplb99i4x67626sd4pm1c2i3i0c73rdma71sdh233fg95q"; 9 }; 10 11 buildInputs = [ pkgconfig libpthreadstubs ];
-21
pkgs/development/libraries/libextractor/0.5.18.nix
··· 1 - args : with args; 2 - let localDefs = builderDefs.passthru.function { 3 - src = /* put a fetchurl here */ 4 - fetchurl { 5 - url = http://gnunet.org/libextractor/download/libextractor-0.5.18.tar.gz; 6 - sha256 = "09y869zmnr6n2953ra4y7z9m9nj23prlqa4nr4rwcb50dzdmil1k"; 7 - }; 8 - 9 - buildInputs = [ zlib]; 10 - configureFlags = []; 11 - }; 12 - in with localDefs; 13 - stdenv.mkDerivation rec { 14 - name = "libextractor-0.5.18"; 15 - builder = writeScript (name + "-builder") 16 - (textClosure localDefs [doConfigure doMakeInstall doForceShare doPropagate]); 17 - meta = { 18 - description = "A tool to extract metadata from files"; 19 - inherit src; 20 - }; 21 - }
···
+64
pkgs/development/libraries/libextractor/default.nix
···
··· 1 + { fetchurl, stdenv, libtool, gettext, zlib, bzip2, flac, libvorbis, libmpeg2 2 + , ffmpeg, exiv2, libgsf, rpm, pkgconfig, glib, gtk }: 3 + 4 + stdenv.mkDerivation rec { 5 + name = "libextractor-0.5.23"; 6 + 7 + src = fetchurl { 8 + url = "mirror://gnu/libextractor/${name}.tar.gz"; 9 + sha256 = "1zyfshayjrp7kd87pm7blyq0dvbv5bbh3f368pp4jws4qxs8aj9f"; 10 + }; 11 + 12 + preConfigure = 13 + '' echo "patching installation directory in \`extractor.c'..." 14 + sed -i "src/main/extractor.c" \ 15 + -e "s|pexe[[:blank:]]*=.*$|pexe = strdup(\"$out/lib/\");|g" 16 + ''; 17 + 18 + buildInputs = 19 + [ libtool gettext zlib bzip2 flac libvorbis libmpeg2 exiv2 ffmpeg 20 + libgsf rpm 21 + pkgconfig glib gtk 22 + ]; 23 + 24 + configureFlags = "--disable-ltdl-install " 25 + + "--with-ltdl-include=${libtool}/include " 26 + + "--with-ltdl-lib=${libtool}/lib " 27 + + "--enable-xpdf"; 28 + 29 + # Checks need to be run after "make install", otherwise plug-ins are not in 30 + # the search path, etc. 31 + # FIXME: Tests currently fail and the test framework appears to be deeply 32 + # broken anyway. 33 + doCheck = false; 34 + #postInstall = "make check"; 35 + 36 + meta = { 37 + description = "GNU libextractor, a simple library for keyword extraction"; 38 + 39 + longDescription = 40 + '' GNU libextractor is a library used to extract meta-data from files 41 + of arbitrary type. It is designed to use helper-libraries to perform 42 + the actual extraction, and to be trivially extendable by linking 43 + against external extractors for additional file types. 44 + 45 + The goal is to provide developers of file-sharing networks or 46 + WWW-indexing bots with a universal library to obtain simple keywords 47 + to match against queries. libextractor contains a shell-command 48 + extract that, similar to the well-known file command, can extract 49 + meta-data from a file an print the results to stdout. 50 + 51 + Currently, libextractor supports the following formats: HTML, PDF, 52 + PS, OLE2 (DOC, XLS, PPT), OpenOffice (sxw), StarOffice (sdw), DVI, 53 + MAN, FLAC, MP3 (ID3v1 and ID3v2), NSF(E) (NES music), SID (C64 54 + music), OGG, WAV, EXIV2, JPEG, GIF, PNG, TIFF, DEB, RPM, TAR(.GZ), 55 + ZIP, ELF, S3M (Scream Tracker 3), XM (eXtended Module), IT (Impulse 56 + Tracker), FLV, REAL, RIFF (AVI), MPEG, QT and ASF. Also, various 57 + additional MIME types are detected. 58 + ''; 59 + 60 + license = "GPLv2+"; 61 + 62 + maintainers = [ stdenv.lib.maintainers.ludo ]; 63 + }; 64 + }
+4 -2
pkgs/development/libraries/libidn/default.nix
··· 1 { fetchurl, stdenv }: 2 3 stdenv.mkDerivation rec { 4 - name = "libidn-1.13"; 5 6 src = fetchurl { 7 url = "mirror://gnu/libidn/${name}.tar.gz"; 8 - sha256 = "07p7cnmfnq7ds8a56iqmxps46bzznn92xxpdlnnp3n6pwcnidmn7"; 9 }; 10 11 doCheck = true; ··· 31 ''; 32 33 license = "LGPLv2+"; 34 }; 35 }
··· 1 { fetchurl, stdenv }: 2 3 stdenv.mkDerivation rec { 4 + name = "libidn-1.16"; 5 6 src = fetchurl { 7 url = "mirror://gnu/libidn/${name}.tar.gz"; 8 + sha256 = "1zywwhqg7i44qg0sj2wpwprxif7723sp3if7vhvgy8mdzfn0zn7p"; 9 }; 10 11 doCheck = true; ··· 31 ''; 32 33 license = "LGPLv2+"; 34 + platforms = stdenv.lib.platforms.all; 35 + maintainers = [ stdenv.lib.maintainers.ludo ]; 36 }; 37 }
+29
pkgs/development/libraries/libjpeg/62.nix
···
··· 1 + {stdenv, fetchurl, libtool, static ? false, ...}: 2 + 3 + stdenv.mkDerivation { 4 + name = "libjpeg-6b"; 5 + 6 + builder = ./builder.sh; 7 + 8 + src = fetchurl { 9 + url = http://www.ijg.org/files/jpegsrc.v6b.tar.gz; 10 + md5 = "dbd5f3b47ed13132f04c685d608a7547"; 11 + }; 12 + 13 + inherit libtool; 14 + 15 + configureFlags = "--enable-shared ${if static then " --enable-static" else ""}"; 16 + 17 + # Required for building of dynamic libraries on Darwin. 18 + patches = [ 19 + (fetchurl { 20 + url = http://svn.macports.org/repository/macports/trunk/dports/graphics/jpeg/files/patch-ltconfig; 21 + md5 = "e6725fa4a09aa1de4ca75343fd0f61d5"; 22 + }) 23 + (fetchurl { 24 + url = http://svn.macports.org/repository/macports/trunk/dports/graphics/jpeg/files/patch-ltmain.sh; 25 + #md5 = "489986ad8e7a93aef036766b25f321d5"; 26 + md5 = "092a12aeb0c386dd7dae059109d950ba"; 27 + }) 28 + ]; 29 + }
+25
pkgs/development/libraries/libjpeg/builder.sh
···
··· 1 + source $stdenv/setup 2 + 3 + preConfigure() { 4 + # Workarounds for the ancient libtool shipped by libjpeg. 5 + ln -s $libtool/bin/libtool . 6 + cp $libtool/share/libtool/config.guess . 7 + cp $libtool/share/libtool/config.sub . 8 + } 9 + 10 + preInstall() { 11 + mkdir $out 12 + mkdir $out/bin 13 + mkdir $out/lib 14 + mkdir $out/include 15 + mkdir $out/man 16 + mkdir $out/man/man1 17 + } 18 + 19 + patchPhase() { 20 + for i in $patches; do 21 + patch < $i 22 + done 23 + } 24 + 25 + genericBuild
+12 -2
pkgs/development/libraries/libmicrohttpd/default.nix
··· 1 {stdenv, fetchurl, curl}: 2 3 stdenv.mkDerivation rec { 4 - name = "libmicrohttpd-0.3.1"; 5 6 src = fetchurl { 7 url = "mirror://gnu/libmicrohttpd/${name}.tar.gz"; 8 - sha256 = "1zv8a7lwypwbwzam5jvr35wvxb13chyh0ir18k82nzm9q5s3v3n3"; 9 }; 10 11 buildInputs = [ curl ]; 12 13 doCheck = true; 14 15 meta = { ··· 23 license = "LGPLv2+"; 24 25 homepage = http://www.gnu.org/software/libmicrohttpd/; 26 }; 27 }
··· 1 {stdenv, fetchurl, curl}: 2 3 stdenv.mkDerivation rec { 4 + name = "libmicrohttpd-0.4.4"; 5 6 src = fetchurl { 7 url = "mirror://gnu/libmicrohttpd/${name}.tar.gz"; 8 + sha256 = "1w486b4hpwnzpc4zdywm3f1q5zs7j4yh7xibbsig6b8cv1npn0rz"; 9 }; 10 11 buildInputs = [ curl ]; 12 13 + preCheck = 14 + # Since `localhost' can't be resolved in a chroot, work around it. 15 + '' for i in "src/test"*"/"*.[ch] 16 + do 17 + sed -i "$i" -es/localhost/127.0.0.1/g 18 + done 19 + ''; 20 + 21 doCheck = true; 22 23 meta = { ··· 31 license = "LGPLv2+"; 32 33 homepage = http://www.gnu.org/software/libmicrohttpd/; 34 + 35 + maintainers = [ stdenv.lib.maintainers.ludo ]; 36 }; 37 }
+22
pkgs/development/libraries/libmusclecard/default.nix
···
··· 1 + {stdenv, fetchurl, pkgconfig, pcsclite}: 2 + stdenv.mkDerivation { 3 + name = "libmusclecard-1.3.6"; 4 + 5 + src = fetchurl { 6 + url = https://alioth.debian.org/frs/download.php/3024/libmusclecard-1.3.6.tar.bz2; 7 + sha256 = "1sswy7vcy0w9p6818al7prv9d3whj7w3w98k55zw9nhspbj6lppb"; 8 + }; 9 + 10 + # The OS should care on preparing the services into this location 11 + configureFlags = [ "--enable-muscledropdir=/var/lib/pcsc/services" ]; 12 + 13 + buildInputs = [ pkgconfig pcsclite ]; 14 + 15 + meta = { 16 + description = "Library for MUSCLE smartcard applications"; 17 + homepage = http://pcsclite.alioth.debian.org/; 18 + license = "BSD"; 19 + maintainers = with stdenv.lib.maintainers; [viric]; 20 + platforms = with stdenv.lib.platforms; linux; 21 + }; 22 + }
+18
pkgs/development/libraries/libp11/default.nix
···
··· 1 + {stdenv, fetchurl, libtool, openssl, pkgconfig}: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "libp11-0.2.7"; 5 + 6 + src = fetchurl { 7 + url = "http://www.opensc-project.org/files/libp11/${name}.tar.gz"; 8 + sha256 = "0kaz5qafaxm0ycywmajl166c29fh9cz89b8i043jqsbxlpzf4hdp"; 9 + }; 10 + 11 + buildInputs = [ libtool openssl pkgconfig ]; 12 + 13 + meta = { 14 + homepage = http://www.opensc-project.org/libp11/; 15 + license = "LGPL"; 16 + description = "Small layer on top of PKCS#11 API to make PKCS#11 implementations easier"; 17 + }; 18 + }
+5 -3
pkgs/development/libraries/mesa/default.nix
··· 5 else 6 7 stdenv.mkDerivation { 8 - name = "mesa-7.5.2"; 9 10 src = fetchurl { 11 - url = ftp://ftp.freedesktop.org/pub/mesa/7.5.2/MesaLib-7.5.2.tar.bz2; 12 - md5 = "94e47a499f1226803869c2e37a6a8e3a"; 13 }; 14 15 buildInputs = 16 [ pkgconfig expat x11 libdrm xlibs.glproto
··· 5 else 6 7 stdenv.mkDerivation { 8 + name = "mesa-7.6.1"; 9 10 src = fetchurl { 11 + url = ftp://ftp.freedesktop.org/pub/mesa/7.6.1/MesaLib-7.6.1.tar.bz2; 12 + md5 = "7db4617e9e10ad3aca1b64339fd71b7d"; 13 }; 14 + 15 + configureFlags = "--disable-gallium"; 16 17 buildInputs = 18 [ pkgconfig expat x11 libdrm xlibs.glproto
-10
pkgs/development/libraries/mesa/headers.nix
··· 1 - {stdenv, mesaSrc}: 2 - 3 - stdenv.mkDerivation { 4 - name = "mesa-headers-6.5.2"; # !!! keep up-to-date 5 - buildCommand = " 6 - unpackFile ${mesaSrc} 7 - ensureDir $out/include 8 - cp -prvd Mesa-*/include/GL $out/include/ 9 - "; 10 - }
···
+2
pkgs/development/libraries/mpeg2dec/default.nix
··· 8 sha256 = "1vny7rg0p2rmic71hli2l2612i5yaw8vy0wsnm5nvhwfiw37cjn7"; 9 }; 10 11 meta = { 12 homepage = http://libmpeg2.sourceforge.net/; 13 description = "A free library for decoding mpeg-2 and mpeg-1 video streams";
··· 8 sha256 = "1vny7rg0p2rmic71hli2l2612i5yaw8vy0wsnm5nvhwfiw37cjn7"; 9 }; 10 11 + configureFlags = "--enable-shared --disable-static"; 12 + 13 meta = { 14 homepage = http://libmpeg2.sourceforge.net/; 15 description = "A free library for decoding mpeg-2 and mpeg-1 video streams";
+3 -3
pkgs/development/libraries/nss/default.nix
··· 10 in 11 12 stdenv.mkDerivation { 13 - name = "nss-3.12.4"; 14 15 src = fetchurl { 16 - url = http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_4_RTM/src/nss-3.12.4.tar.gz; 17 - sha1 = "a152bf980f3a3dcf575c2d149fb279058ef2e757"; 18 }; 19 20 buildInputs = [nspr perl zlib];
··· 10 in 11 12 stdenv.mkDerivation { 13 + name = "nss-3.12.5"; 14 15 src = fetchurl { 16 + url = http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_5_RTM/src/nss-3.12.5.tar.gz; 17 + sha1 = "ec12c6eddba5fb4609a174b079095b374935d37c"; 18 }; 19 20 buildInputs = [nspr perl zlib];
+21
pkgs/development/libraries/openct/default.nix
···
··· 1 + {stdenv, fetchurl, libtool, pcsclite, libusb, pkgconfig}: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "openct-0.6.19"; 5 + 6 + src = fetchurl { 7 + url = "http://www.opensc-project.org/files/openct/${name}.tar.gz"; 8 + sha256 = "1y4jlr877g3lziq7i3p6pdkscqpkn1lld874q6r2hsvc39n7c88z"; 9 + }; 10 + 11 + configureFlags = [ "--enable-usb" "--enable-pcsc" "--localstatedir=/var" ]; 12 + buildInputs = [ libtool pcsclite libusb pkgconfig ]; 13 + 14 + meta = { 15 + homepage = http://www.opensc-project.org/openct/; 16 + license = "LGPL"; 17 + description = "Drivers for several smart card readers"; 18 + maintainers = with stdenv.lib.maintainers; [viric]; 19 + platforms = with stdenv.lib.platforms; linux; 20 + }; 21 + }
+49
pkgs/development/libraries/opensc-dnie/default.nix
···
··· 1 + {stdenv, fetchurl, writeScript, patchelf, glib, opensc, openssl, openct, libtool, pcsclite, 2 + zlib}: 3 + 4 + # Version 1.4.6-2 works only with opensc 0.11.7 5 + assert opensc.name == "opensc-0.11.7"; 6 + 7 + stdenv.mkDerivation rec { 8 + name = "opensc-dnie-1.4.6-2"; 9 + 10 + src = if (stdenv.system == "i686-linux") then (fetchurl { 11 + url = http://www.dnielectronico.es/descargas/PKCS11_para_Sistemas_Unix/1.4.6.Ubuntu_Jaunty_32/Ubuntu_Jaunty_opensc-dnie_1.4.6-2_i386.deb.tar; 12 + sha256 = "1i6r9ahjr0rkcxjfzkg2rrib1rjsjd5raxswvvfiya98q8rlv39i"; 13 + }) 14 + else if (stdenv.system == "x86_64-linux") then (fetchurl { url = http://www.dnielectronico.es/descargas/PKCS11_para_Sistemas_Unix/1.4.6.Ubuntu_Jaunty_64/Ubuntu_Jaunty_opensc-dnie_1.4.6-2_amd64.deb.tar; 15 + sha256 = "1py2bxavdcj0crhk1lwqzjgya5lvyhdfdbr4g04iysj56amxb7f9"; 16 + }) 17 + else throw "Architecture not supported"; 18 + 19 + buildInputs = [ patchelf glib ]; 20 + 21 + builder = writeScript (name + "-builder.sh") '' 22 + source $stdenv/setup 23 + tar xf $src 24 + ar x opensc-dnie* 25 + tar xf data.tar.gz 26 + 27 + RPATH=${glib}/lib:${opensc}/lib:${openssl}/lib:${openct}/lib:${libtool}/lib:${pcsclite}/lib:${stdenv.gcc.libc}/lib:${zlib}/lib 28 + 29 + for a in usr/lib/*.so*; do 30 + if ! test -L $a; then 31 + patchelf --set-rpath $RPATH $a 32 + fi 33 + done 34 + 35 + sed -i s,/usr,$out, usr/lib/pkgconfig/* 36 + 37 + ensureDir $out 38 + cp -R usr/lib $out 39 + cp -R usr/share $out 40 + ''; 41 + 42 + meta = { 43 + homepage = http://www.dnielectronico.es/descargas/; 44 + description = "Opensc plugin to access the Spanish national ID smartcard"; 45 + license = "nonfree"; 46 + maintainers = with stdenv.lib.maintainers; [viric]; 47 + platforms = with stdenv.lib.platforms; linux; 48 + }; 49 + }
+2 -2
pkgs/development/libraries/pango/1.26.x.nix
··· 1 { stdenv, fetchurl, pkgconfig, gettext, x11, glib, cairo, libpng }: 2 3 stdenv.mkDerivation rec { 4 - name = "pango-1.26.0"; 5 6 src = fetchurl { 7 url = "mirror://gnome/sources/pango/1.26/${name}.tar.bz2"; 8 - sha256 = "1hx6v6w3xk9wfcrb26gg7rrfl6m6ykxk2bqm67aqdzql4vysxgz1"; 9 }; 10 11 buildInputs = [pkgconfig] ++ stdenv.lib.optional (stdenv.system == "i686-darwin") gettext;
··· 1 { stdenv, fetchurl, pkgconfig, gettext, x11, glib, cairo, libpng }: 2 3 stdenv.mkDerivation rec { 4 + name = "pango-1.26.2"; 5 6 src = fetchurl { 7 url = "mirror://gnome/sources/pango/1.26/${name}.tar.bz2"; 8 + sha256 = "021ygk3l9bk00gsvxk02flxsk68w0wl99dx221fmb547bng8g19v"; 9 }; 10 11 buildInputs = [pkgconfig] ++ stdenv.lib.optional (stdenv.system == "i686-darwin") gettext;
+12
pkgs/development/libraries/podofo/default.nix
···
··· 1 + {stdenv, fetchurl, cmake, zlib, freetype, libjpeg, libtiff, fontconfig, 2 + openssl}: 3 + 4 + stdenv.mkDerivation rec { 5 + name = "podofo-0.7.0"; 6 + src = fetchurl { 7 + url = "mirror://sourceforge/podofo/${name}.tar.gz"; 8 + sha256 = "1hpd5ldjv013041rmcfrkbk8v6wdpxcg60i3aklik583q2rf0mqy"; 9 + }; 10 + buildInputs = [ cmake zlib freetype libjpeg libtiff fontconfig openssl ]; 11 + cmakeFlags = "-DPODOFO_BUILD_SHARED=ON -DPODOFO_BUILD_STATIC=OFF"; 12 + }
+3 -3
pkgs/development/libraries/poppler/default.nix
··· 5 assert qt4Support -> (qt4 != null); 6 7 stdenv.mkDerivation rec { 8 - name = "poppler-0.10.6"; 9 10 src = fetchurl { 11 url = "http://poppler.freedesktop.org/${name}.tar.gz"; 12 - sha256 = "bcd78d674c4166af069afdb27af810c012e13cfd2b7b21f9dce63dd3f62bded1"; 13 }; 14 15 buildInputs = [pkgconfig zlib glib cairo freetype fontconfig libjpeg gtk] ··· 22 '' 23 + (if qt4Support then "--enable-qt-poppler" else "--disable-qt-poppler"); 24 25 - patches = [ ./GDir-const.patch ./use_exceptions.patch ]; 26 27 preConfigure = "sed -e '/jpeg_incdirs/s@/usr@${libjpeg}@' -i configure"; 28
··· 5 assert qt4Support -> (qt4 != null); 6 7 stdenv.mkDerivation rec { 8 + name = "poppler-0.12.3"; 9 10 src = fetchurl { 11 url = "http://poppler.freedesktop.org/${name}.tar.gz"; 12 + sha256 = "1k7vilpz0ipnmw9dfpb3rqkhlm4rqcnkn3bhhp14di2h55nzwkvs"; 13 }; 14 15 buildInputs = [pkgconfig zlib glib cairo freetype fontconfig libjpeg gtk] ··· 22 '' 23 + (if qt4Support then "--enable-qt-poppler" else "--disable-qt-poppler"); 24 25 + patches = [ ./GDir-const.patch ]; 26 27 preConfigure = "sed -e '/jpeg_incdirs/s@/usr@${libjpeg}@' -i configure"; 28
-60
pkgs/development/libraries/poppler/use_exceptions.patch
··· 1 - diff -ur poppler-0.6.1/goo/gmem.cc poppler-0.6.1-patched/goo/gmem.cc 2 - --- poppler-0.6.1/goo/gmem.cc 2007-10-12 13:34:49.000000000 +0200 3 - +++ poppler-0.6.1-patched/goo/gmem.cc 2007-11-06 16:17:41.290632269 +0100 4 - @@ -60,7 +60,7 @@ 5 - } 6 - size1 = gMemDataSize(size); 7 - if (!(mem = (char *)malloc(size1 + gMemHdrSize + gMemTrlSize))) { 8 - -#if USE_EXCEPTIONS 9 - +#ifdef USE_EXCEPTIONS 10 - throw GMemException(); 11 - #else 12 - fprintf(stderr, "Out of memory\n"); 13 - @@ -95,7 +95,7 @@ 14 - return NULL; 15 - } 16 - if (!(p = malloc(size))) { 17 - -#if USE_EXCEPTIONS 18 - +#ifdef USE_EXCEPTIONS 19 - throw GMemException(); 20 - #else 21 - fprintf(stderr, "Out of memory\n"); 22 - @@ -143,7 +143,7 @@ 23 - q = malloc(size); 24 - } 25 - if (!q) { 26 - -#if USE_EXCEPTIONS 27 - +#ifdef USE_EXCEPTIONS 28 - throw GMemException(); 29 - #else 30 - fprintf(stderr, "Out of memory\n"); 31 - @@ -162,7 +162,7 @@ 32 - } 33 - n = nObjs * objSize; 34 - if (objSize <= 0 || nObjs < 0 || nObjs >= INT_MAX / objSize) { 35 - -#if USE_EXCEPTIONS 36 - +#ifdef USE_EXCEPTIONS 37 - throw GMemException(); 38 - #else 39 - fprintf(stderr, "Bogus memory allocation size\n"); 40 - @@ -183,7 +183,7 @@ 41 - } 42 - n = nObjs * objSize; 43 - if (objSize <= 0 || nObjs < 0 || nObjs >= INT_MAX / objSize) { 44 - -#if USE_EXCEPTIONS 45 - +#ifdef USE_EXCEPTIONS 46 - throw GMemException(); 47 - #else 48 - fprintf(stderr, "Bogus memory allocation size\n"); 49 - diff -ur poppler-0.6.1/goo/gmem.h poppler-0.6.1-patched/goo/gmem.h 50 - --- poppler-0.6.1/goo/gmem.h 2007-09-17 20:37:39.000000000 +0200 51 - +++ poppler-0.6.1-patched/goo/gmem.h 2007-11-06 16:17:46.606925527 +0100 52 - @@ -12,7 +12,7 @@ 53 - #include <stdio.h> 54 - #include <poppler/poppler-config.h> 55 - 56 - -#if USE_EXCEPTIONS 57 - +#ifdef USE_EXCEPTIONS 58 - 59 - class GMemException { 60 - public:
···
+4
pkgs/development/libraries/qt-4.6/default.nix
··· 13 }; 14 15 setupHook = ./setup-hook.sh; 16 17 propagatedBuildInputs = [ 18 libXft
··· 13 }; 14 15 setupHook = ./setup-hook.sh; 16 + 17 + preConfigure = '' 18 + export LD_LIBRARY_PATH="`pwd`/lib:$LD_LIBRARY_PATH" 19 + ''; 20 21 propagatedBuildInputs = [ 22 libXft
+38
pkgs/development/libraries/scmccid/default.nix
···
··· 1 + {stdenv, fetchurl, patchelf, libusb}: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "scmccid-5.0.11"; 5 + 6 + src = if (stdenv.system == "i686-linux") then (fetchurl { 7 + url = "http://www.scmmicro.com/support/download/scmccid_5.0.11_linux.tar.gz"; 8 + sha256 = "1r5wkarhzl09ncgj55baizf573czw0nplh1pgddzx9xck66kh5bm"; 9 + }) 10 + else if (stdenv.system == "x86_64-linux") then (fetchurl { 11 + url = "http://www.scmmicro.com/support/download/scmccid_5.0.11_linux_x64.tar.gz"; 12 + sha256 = "0k9lzlk01sl4ycfqgrqqy3bildz0mcr1r0kkicgjz96l4s0jgz0i"; 13 + }) 14 + else throw "Architecture not supported"; 15 + 16 + buildInputs = [ patchelf ]; 17 + 18 + installPhase = '' 19 + RPATH=${libusb}/lib:${stdenv.gcc.libc}/lib 20 + 21 + for a in proprietary/*/Contents/Linux/*.so*; do 22 + if ! test -L $a; then 23 + patchelf --set-rpath $RPATH $a 24 + fi 25 + done 26 + 27 + ensureDir $out/pcsc/drivers 28 + cp -R proprietary/* $out/pcsc/drivers 29 + ''; 30 + 31 + meta = { 32 + homepage = http://www.scmmicro.com/support/pc-security-support/downloads.html; 33 + description = "PCSC drivers for linux, for the SCM SCR3310 v2.0 card and others"; 34 + license = "nonfree"; 35 + maintainers = with stdenv.lib.maintainers; [viric]; 36 + platforms = with stdenv.lib.platforms; linux; 37 + }; 38 + }
+5 -5
pkgs/development/libraries/webkit/src-for-default.nix
··· 1 rec { 2 - version="r51303"; 3 - name="webkit-r51303"; 4 - hash="0khlc38gzb65xr0fsap60cz65rd6d7f7v31hhj4x1bxjrm3pj48w"; 5 - url="http://builds.nightly.webkit.org/files/trunk/src/WebKit-r51303.tar.bz2"; 6 - advertisedUrl="http://builds.nightly.webkit.org/files/trunk/src/WebKit-r51303.tar.bz2"; 7 8 9 }
··· 1 rec { 2 + version="r53178"; 3 + name="webkit-r53178"; 4 + hash="0452kfqd73igmkgp0v4w13lk3ycypqz4zl9hnspg7ns5vlyknqcn"; 5 + url="http://builds.nightly.webkit.org/files/trunk/src/WebKit-r53178.tar.bz2"; 6 + advertisedUrl="http://builds.nightly.webkit.org/files/trunk/src/WebKit-r53178.tar.bz2"; 7 8 9 }
+1 -1
pkgs/development/python-modules/pyqt/default.nix
··· 6 url = http://pyqwt.sourceforge.net/support/PyQt-x11-gpl-4.5.4.tar.gz; # Not downloading from riverbank, since they remove older releases 7 sha256 = "1a55zng6yhnbk5swc02bkbyccdgf0f0v94yxk9v5a43hv9xnrl5k"; 8 }; 9 - configurePhase = "python ./configure.py --confirm-license -b $out/bin -d $out/lib/python2.5/site-packages -v $out/share/sip -p $out/plugins"; 10 buildInputs = [ python sip qt4 ]; 11 meta = { 12 description = "Python bindings for Qt";
··· 6 url = http://pyqwt.sourceforge.net/support/PyQt-x11-gpl-4.5.4.tar.gz; # Not downloading from riverbank, since they remove older releases 7 sha256 = "1a55zng6yhnbk5swc02bkbyccdgf0f0v94yxk9v5a43hv9xnrl5k"; 8 }; 9 + configurePhase = "python ./configure.py --confirm-license -b $out/bin -d $out/lib/${python.libPrefix}/site-packages -v $out/share/sip -p $out/plugins"; 10 buildInputs = [ python sip qt4 ]; 11 meta = { 12 description = "Python bindings for Qt";
+1 -1
pkgs/development/python-modules/python-sip/default.nix
··· 6 url = http://pyqwt.sourceforge.net/support/sip-4.8.2.tar.gz; # Not downloading from riverbank, since they remove older releases 7 sha256 = "1afr2qaibzgf8fq4fmc31jz9hvbwxbg5jvl68ygvkkdvnbg2kfrf"; 8 }; 9 - configurePhase = "python ./configure.py -d $out/lib/python2.5/site-packages -b $out/bin -e $out/include"; 10 buildInputs = [ python ]; 11 meta = { 12 description = "Creates C++ bindings for Python modules";
··· 6 url = http://pyqwt.sourceforge.net/support/sip-4.8.2.tar.gz; # Not downloading from riverbank, since they remove older releases 7 sha256 = "1afr2qaibzgf8fq4fmc31jz9hvbwxbg5jvl68ygvkkdvnbg2kfrf"; 8 }; 9 + configurePhase = "python ./configure.py -d $out/lib/${python.libPrefix}/site-packages -b $out/bin -e $out/include"; 10 buildInputs = [ python ]; 11 meta = { 12 description = "Creates C++ bindings for Python modules";
+3 -3
pkgs/development/python-modules/setuptools/default.nix
··· 29 '') ["addInputs" "doUnpack"]; 30 31 doInstall = a.fullDepEntry('' 32 - ensureDir "$out/lib/python2.5/site-packages" 33 34 - PYTHONPATH="$out/lib/python2.5/site-packages:$PYTHONPATH" \ 35 python setup.py install --prefix="$out" 36 37 for i in "$out/bin/"* 38 do 39 wrapProgram "$i" \ 40 --prefix PYTHONPATH ":" \ 41 - "$out/lib/python2.5/site-packages" 42 done 43 '') ["doBuild"]; 44
··· 29 '') ["addInputs" "doUnpack"]; 30 31 doInstall = a.fullDepEntry('' 32 + ensureDir "$out/lib/${a.python.libPrefix}/site-packages" 33 34 + PYTHONPATH="$out/lib/${a.python.libPrefix}/site-packages:$PYTHONPATH" \ 35 python setup.py install --prefix="$out" 36 37 for i in "$out/bin/"* 38 do 39 wrapProgram "$i" \ 40 --prefix PYTHONPATH ":" \ 41 + "$out/lib/${a.python.libPrefix}/site-packages" 42 done 43 '') ["doBuild"]; 44
+2 -2
pkgs/development/tools/build-managers/apache-ant/default.nix
··· 11 inherit antContrib jdk; 12 13 src = fetchurl { 14 - url = http://apache.mirror.transip.nl/ant/binaries/apache-ant-1.7.1-bin.tar.bz2 ; 15 - sha256 = "15rgkini0g100jygp7z9hgc3yfb9m62q4nk989rin7dqj2flrr94"; 16 }; 17 }; 18
··· 11 inherit antContrib jdk; 12 13 src = fetchurl { 14 + url = http://apache.mirror.transip.nl/ant/binaries/apache-ant-1.8.0RC1-bin.tar.bz2 ; 15 + sha256 = "0xvmrsghibq7p3wvfkmvmkkg0zzfmw32lrfjl5f6cfzchjjnw9wx"; 16 }; 17 }; 18
+65 -18
pkgs/development/tools/build-managers/buildbot/default.nix
··· 1 - {stdenv, fetchurl, python, twisted, makeWrapper}: 2 3 - stdenv.mkDerivation rec { 4 - name = "buildbot-${version}"; 5 - version = "0.7.8"; 6 meta = { 7 - homepage = "http://buildbot.net/"; 8 - description = "A system to automate the compile/test cycle to validate code changes."; 9 - }; 10 - src = fetchurl { 11 - url = "mirror://sourceforge/buildbot/buildbot-${version}.tar.gz"; 12 - sha256 = "0f3qkbs1y4a1djxbfkvsr1639qkc7bzzsz2wpas2mk1zg8zrci2v"; 13 }; 14 - propagatedBuildInputs = [python twisted makeWrapper]; 15 - buildPhase = "true"; 16 - installPhase = 17 - '' 18 - python setup.py install --prefix=$out --install-lib=$(toPythonPath $out) -O1 19 - for n in $out/bin/*; do wrapProgram $n --set PYTHONPATH "$(toPythonPath $out):$PYTHONPATH"; done 20 - ''; 21 - }
··· 1 + { fetchurl, stdenv, buildPythonPackage, twisted, texinfo }: 2 + 3 + buildPythonPackage (rec { 4 + name = "buildbot-0.7.11p3"; 5 + namePrefix = ""; 6 + 7 + src = fetchurl { 8 + url = "mirror://sourceforge/buildbot/${name}.tar.gz"; 9 + sha256 = "0h77ijf5iqvc8bnfxpsh3hvpr7wj23pkcywd3hcyphv1wwlhmhjv"; 10 + }; 11 12 + patchPhase = 13 + # The code insists on /usr/bin/tail, /usr/bin/make, etc. 14 + '' echo "patching erroneous absolute path references..." 15 + for i in $(find -name \*.py) 16 + do 17 + sed -i "$i" \ 18 + -e "s|/usr/bin/python|$(type -P python)|g ; s|/usr/bin/||g" 19 + done 20 + ''; 21 + 22 + buildInputs = [ texinfo ]; 23 + propagatedBuildInputs = [ twisted ]; 24 + 25 + # FIXME: Some tests fail. 26 + doCheck = false; 27 + 28 + postInstall = 29 + '' ensureDir "$out/share/info" 30 + make -C docs buildbot.info 31 + cp -v "docs/buildbot.info"* "$out/share/info" 32 + ''; 33 + 34 meta = { 35 + homepage = http://buildbot.net/; 36 + 37 + license = "GPLv2+"; 38 + 39 + # Of course, we don't really need that on NixOS. :-) 40 + description = "BuildBot, a system to automate the software compile/test cycle"; 41 + 42 + longDescription = 43 + '' The BuildBot is a system to automate the compile/test cycle 44 + required by most software projects to validate code changes. By 45 + automatically rebuilding and testing the tree each time something 46 + has changed, build problems are pinpointed quickly, before other 47 + developers are inconvenienced by the failure. The guilty 48 + developer can be identified and harassed without human 49 + intervention. By running the builds on a variety of platforms, 50 + developers who do not have the facilities to test their changes 51 + everywhere before checkin will at least know shortly afterwards 52 + whether they have broken the build or not. Warning counts, lint 53 + checks, image size, compile time, and other build parameters can 54 + be tracked over time, are more visible, and are therefore easier 55 + to improve. 56 + 57 + The overall goal is to reduce tree breakage and provide a platform 58 + to run tests or code-quality checks that are too annoying or 59 + pedantic for any human to waste their time with. Developers get 60 + immediate (and potentially public) feedback about their changes, 61 + encouraging them to be more careful about testing before checking 62 + in code. 63 + ''; 64 + 65 + maintainers = [ stdenv.lib.maintainers.ludo ]; 66 + platforms = stdenv.lib.platforms.all; 67 }; 68 + })
+6 -4
pkgs/development/tools/misc/coccinelle/default.nix
··· 1 { fetchurl, stdenv, ocaml, perl, python, ncurses, makeWrapper }: 2 3 stdenv.mkDerivation rec { 4 - name = "coccinelle-0.1.11rc1"; 5 6 src = fetchurl { 7 url = "http://coccinelle.lip6.fr/distrib/${name}.tgz"; 8 - sha256 = "1rdsv3qcl6zcx3d3zd4cl9d79hdgaw19llxbflkfxipvkg3vk59x"; 9 }; 10 11 buildInputs = [ ocaml perl python ncurses makeWrapper ]; ··· 18 19 buildPhase = "make depend && make all"; 20 21 - # Most of the test suite seems to fail (?!). 22 doCheck = false; 23 - checkPhase = "make test"; 24 25 postInstall = 26 '' wrapProgram "$out/bin/spatch" \ 27 --prefix "LD_LIBRARY_PATH" ":" "$out/lib" \ 28 --prefix "PYTHONPATH" ":" "$out/share/coccinelle/python" 29 ''; 30 31 meta = {
··· 1 { fetchurl, stdenv, ocaml, perl, python, ncurses, makeWrapper }: 2 3 stdenv.mkDerivation rec { 4 + name = "coccinelle-0.2.0"; 5 6 src = fetchurl { 7 url = "http://coccinelle.lip6.fr/distrib/${name}.tgz"; 8 + sha256 = "1mg6r92h8j3kqgy9iv6kk0g96m84wcj71iavgvv9qdbk3qwim8i4"; 9 }; 10 11 buildInputs = [ ocaml perl python ncurses makeWrapper ]; ··· 18 19 buildPhase = "make depend && make all"; 20 21 + # Note: The tests want $out/share/coccinelle/standard.h so they must be run 22 + # after "make install". 23 doCheck = false; 24 25 postInstall = 26 '' wrapProgram "$out/bin/spatch" \ 27 --prefix "LD_LIBRARY_PATH" ":" "$out/lib" \ 28 --prefix "PYTHONPATH" ":" "$out/share/coccinelle/python" 29 + 30 + make test 31 ''; 32 33 meta = {
+1 -1
pkgs/games/quake3/wrapper/builder.sh
··· 10 # We add Mesa to the end of $LD_LIBRARY_PATH to provide fallback 11 # software rendering. GCC is needed so that libgcc_s.so can be found 12 # when Mesa is used. 13 - makeWrapper $game/ioquake3.i386 $out/bin/quake3 \ 14 --suffix-each LD_LIBRARY_PATH ':' "$mesa/lib $gcc/lib" \ 15 --add-flags "+set fs_basepath $out +set r_allowSoftwareGL 1"
··· 10 # We add Mesa to the end of $LD_LIBRARY_PATH to provide fallback 11 # software rendering. GCC is needed so that libgcc_s.so can be found 12 # when Mesa is used. 13 + makeWrapper $game/ioquake3.* $out/bin/quake3 \ 14 --suffix-each LD_LIBRARY_PATH ':' "$mesa/lib $gcc/lib" \ 15 --add-flags "+set fs_basepath $out +set r_allowSoftwareGL 1"
+5
pkgs/lib/lists.nix
··· 167 if list == [] || count == 0 then [] 168 else [ (head list) ] ++ take (builtins.sub count 1) (tail list); 169 170 }
··· 167 if list == [] || count == 0 then [] 168 else [ (head list) ] ++ take (builtins.sub count 1) (tail list); 169 170 + last = list: 171 + assert list != []; 172 + let loop = l: if tail l == [] then head l else loop (tail l); in 173 + loop list; 174 + 175 }
+1
pkgs/lib/maintainers.nix
··· 5 alphabetically sorted. */ 6 7 andres = "Andres Loeh <andres@cs.uu.nl>"; 8 eelco = "Eelco Dolstra <e.dolstra@tudelft.nl>"; 9 ludo = "Ludovic Courtès <ludo@gnu.org>"; 10 marcweber = "Marc Weber <marco-oweber@gmx.de>";
··· 5 alphabetically sorted. */ 6 7 andres = "Andres Loeh <andres@cs.uu.nl>"; 8 + astsmtl = "Alexander Tsamutali <astsmtl@yandex.ru>"; 9 eelco = "Eelco Dolstra <e.dolstra@tudelft.nl>"; 10 ludo = "Ludovic Courtès <ludo@gnu.org>"; 11 marcweber = "Marc Weber <marco-oweber@gmx.de>";
+6 -5
pkgs/lib/modules.nix
··· 51 getImportedSets = m: filter (x: !isPath x) (getImports m); 52 53 getConfig = m: 54 - removeAttrs (delayProperties m) ["require"]; 55 in 56 if isModule m then 57 { key = "<unknown location>"; } // m ··· 81 moduleClosure = initModules: args: 82 let 83 moduleImport = m: 84 - (unifyModuleSyntax (applyIfFunction (importIfPath m) args)) // { 85 # used by generic closure to avoid duplicated imports. 86 - key = if isPath m then m else "<unknown location>"; 87 }; 88 89 getImports = m: attrByPath ["imports"] [] m; 90 91 in 92 (lazyGenericClosure { 93 - startSet = map moduleImport (filter isPath initModules); 94 operator = m: map moduleImport (getImports m); 95 - }) ++ (map moduleImport (filter (m: ! isPath m) initModules)); 96 97 selectDeclsAndDefs = modules: 98 lib.concatMap (m:
··· 51 getImportedSets = m: filter (x: !isPath x) (getImports m); 52 53 getConfig = m: 54 + removeAttrs (delayProperties m) ["require" "key"]; 55 in 56 if isModule m then 57 { key = "<unknown location>"; } // m ··· 81 moduleClosure = initModules: args: 82 let 83 moduleImport = m: 84 + let m' = applyIfFunction (importIfPath m) args; 85 + in (unifyModuleSyntax m') // { 86 # used by generic closure to avoid duplicated imports. 87 + key = if isPath m then m else if m' ? key then m'.key else "<unknown location>"; 88 }; 89 90 getImports = m: attrByPath ["imports"] [] m; 91 92 in 93 (lazyGenericClosure { 94 + startSet = map moduleImport initModules; 95 operator = m: map moduleImport (getImports m); 96 + }); 97 98 selectDeclsAndDefs = modules: 99 lib.concatMap (m:
+2
pkgs/lib/strings.nix
··· 141 else 142 s; 143 144 }
··· 141 else 142 s; 143 144 + basename = s: lib.last (splitString "/" s); 145 + 146 }
+2
pkgs/misc/emulators/wine/default.nix
··· 45 homepage = "http://www.winehq.org/"; 46 license = "LGPL"; 47 description = "An Open Source implementation of the Windows API on top of X, OpenGL, and Unix"; 48 }; 49 }
··· 45 homepage = "http://www.winehq.org/"; 46 license = "LGPL"; 47 description = "An Open Source implementation of the Windows API on top of X, OpenGL, and Unix"; 48 + maintainers = [ stdenv.lib.maintainers.raskin ]; 49 + platforms = [ "i686-linux" ]; 50 }; 51 }
+4 -4
pkgs/misc/emulators/wine/src-for-default.nix
··· 1 rec { 2 - version="1.1.34"; 3 - name="wine-1.1.34"; 4 - hash="1llsm6h0s765n0s5nvr852iyml2ckdd7vq96dhqjlck5vr4nxsns"; 5 url="http://prdownloads.sourceforge.net/wine/wine-${version}.tar.bz2"; 6 - advertisedUrl="http://prdownloads.sourceforge.net/wine/wine-1.1.34.tar.bz2"; 7 8 9 }
··· 1 rec { 2 + version="1.1.36"; 3 + name="wine-1.1.36"; 4 + hash="0b22w68w7z4in21xy286yddix6sf4jna919z2lw2p9hxsgzvhlwk"; 5 url="http://prdownloads.sourceforge.net/wine/wine-${version}.tar.bz2"; 6 + advertisedUrl="http://prdownloads.sourceforge.net/wine/wine-1.1.36.tar.bz2"; 7 8 9 }
+1 -1
pkgs/os-specific/linux/cryptsetup/default.nix
··· 10 configureFlags = [ "--enable-libdevmapper" ]; 11 12 patchPhase = '' 13 - sed -i -e 's@/sbin/udevsettle@${udev}/sbin/udevsettle@' lib/libdevmapper.c 14 ''; 15 16 buildInputs = [ libuuid popt devicemapper ];
··· 10 configureFlags = [ "--enable-libdevmapper" ]; 11 12 patchPhase = '' 13 + sed -i -e 's@/sbin/udevsettle@${udev}/sbin/udevadm settle@' lib/libdevmapper.c 14 ''; 15 16 buildInputs = [ libuuid popt devicemapper ];
-17
pkgs/os-specific/linux/device-mapper/default.nix
··· 1 - {stdenv, fetchurl, enableStatic ? true}: 2 - 3 - stdenv.mkDerivation { 4 - name = "device-mapper-1.02.27"; 5 - 6 - src = fetchurl { 7 - url = ftp://sources.redhat.com/pub/dm/device-mapper.1.02.27.tgz; 8 - sha256 = "1z4dldjjxfinwvg39x4m2cm5rcsbxs833g3phm34f5a2lwh7i6v6"; 9 - }; 10 - 11 - inherit enableStatic; 12 - 13 - configureFlags = if enableStatic then "--enable-static_link" else ""; 14 - 15 - # To prevent make install from failing. 16 - installFlags = "OWNER= GROUP="; 17 - }
···
+257
pkgs/os-specific/linux/kernel/config-blocks.nix
···
··· 1 + rec { 2 + generalOptions = '' 3 + # Don't include any debug features. 4 + DEBUG_KERNEL n 5 + 6 + # Support drivers that need external firmware. 7 + STANDALONE n 8 + 9 + # Make /proc/config.gz available. 10 + IKCONFIG_PROC y 11 + 12 + # Optimize with -O2, not -Os. 13 + CC_OPTIMIZE_FOR_SIZE n 14 + 15 + # Enable the kernel's built-in memory tester. 16 + MEMTEST y 17 + 18 + KALLSYMS_EXTRA_PASS n 19 + ''; 20 + 21 + virtualisation = '' 22 + # Virtualisation (KVM, Xen...). 23 + PARAVIRT_GUEST y 24 + KVM_CLOCK y 25 + KVM_GUEST y 26 + XEN y 27 + KSM y 28 + 29 + # We need 64 GB (PAE) support for Xen guest support. 30 + HIGHMEM64G? y 31 + ''; 32 + 33 + noPAE = '' 34 + HIGHMEM64G? n 35 + PAE n 36 + ''; 37 + 38 + usefulSubsystems = '' 39 + # Enable various subsystems. 40 + ACCESSIBILITY y # Accessibility support 41 + AUXDISPLAY y # Auxiliary Display support 42 + DONGLE y # Serial dongle support 43 + HIPPI y 44 + MTD_COMPLEX_MAPPINGS y # needed for many devices 45 + NET_POCKET y # enable pocket and portable adapters 46 + SCSI_LOWLEVEL y # enable lots of SCSI devices 47 + SCSI_LOWLEVEL_PCMCIA y 48 + SPI y # needed for many devices 49 + SPI_MASTER y 50 + WAN y 51 + ''; 52 + 53 + cfq = '' 54 + # Include the CFQ I/O scheduler in the kernel, rather than as a 55 + # module, so that the initrd gets a good I/O scheduler. 56 + IOSCHED_CFQ y 57 + ''; 58 + 59 + noDebug = '' 60 + # Disable some expensive (?) features. 61 + FTRACE n 62 + KPROBES n 63 + PM_TRACE_RTC n 64 + 65 + AIC79XX_DEBUG_ENABLE n 66 + AIC7XXX_DEBUG_ENABLE n 67 + AIC94XX_DEBUG n 68 + USB_DEBUG n 69 + CPU_FREQ_DEBUG n 70 + ''; 71 + 72 + noNUMA = '' 73 + NUMA? n 74 + ''; 75 + 76 + networking = '' 77 + # Networking options. 78 + IP_PNP n 79 + IPV6_PRIVACY y 80 + NETFILTER_ADVANCED y 81 + IP_VS_PROTO_TCP y 82 + IP_VS_PROTO_UDP y 83 + IP_VS_PROTO_ESP y 84 + IP_VS_PROTO_AH y 85 + IP_DCCP_CCID3 n # experimental 86 + CLS_U32_PERF y 87 + CLS_U32_MARK y 88 + ''; 89 + 90 + wireless = '' 91 + # Wireless networking. 92 + IPW2100_MONITOR y # support promiscuous mode 93 + IPW2200_MONITOR y # support promiscuous mode 94 + IWLWIFI_LEDS? y 95 + IWLWIFI_SPECTRUM_MEASUREMENT y 96 + IWL3945_SPECTRUM_MEASUREMENT y 97 + IWL4965 y # Intel Wireless WiFi 4965AGN 98 + IWL5000 y # Intel Wireless WiFi 5000AGN 99 + HOSTAP_FIRMWARE y # Support downloading firmware images with Host AP driver 100 + HOSTAP_FIRMWARE_NVRAM y 101 + ''; 102 + 103 + fb = '' 104 + # Enable various FB devices. 105 + FB y 106 + FB_EFI y 107 + FB_NVIDIA_I2C y # Enable DDC Support 108 + FB_RIVA_I2C y 109 + FB_ATY_CT y # Mach64 CT/VT/GT/LT (incl. 3D RAGE) support 110 + FB_ATY_GX y # Mach64 GX support 111 + FB_SAVAGE_I2C y 112 + FB_SAVAGE_ACCEL y 113 + FB_SIS_300 y 114 + FB_SIS_315 y 115 + FB_3DFX_ACCEL y 116 + FB_GEODE y 117 + ''; 118 + 119 + fbNoTileBlit = '' 120 + # Disable tileblitting 121 + FB_TILEBLITTING n 122 + FB_S3 n 123 + FB_VT8623 n 124 + FB_ARK n 125 + ''; 126 + 127 + fbConDecor = '' 128 + ${fb} 129 + ${fbNoTileBlit} 130 + FRAMEBUFFER_CONSOLE y 131 + FB_VESA y 132 + FB_CON_DECOR y 133 + ''; 134 + 135 + sound = '' 136 + # Sound. 137 + SND_AC97_POWER_SAVE y # AC97 Power-Saving Mode 138 + SND_HDA_INPUT_BEEP y # Support digital beep via input layer 139 + SND_USB_CAIAQ_INPUT y 140 + PSS_MIXER y # Enable PSS mixer (Beethoven ADSP-16 and other compatible) 141 + ''; 142 + 143 + usbserial = '' 144 + # USB serial devices. 145 + USB_SERIAL_GENERIC y # USB Generic Serial Driver 146 + USB_SERIAL_KEYSPAN_MPR y # include firmware for various USB serial devices 147 + USB_SERIAL_KEYSPAN_USA28 y 148 + USB_SERIAL_KEYSPAN_USA28X y 149 + USB_SERIAL_KEYSPAN_USA28XA y 150 + USB_SERIAL_KEYSPAN_USA28XB y 151 + USB_SERIAL_KEYSPAN_USA19 y 152 + USB_SERIAL_KEYSPAN_USA18X y 153 + USB_SERIAL_KEYSPAN_USA19W y 154 + USB_SERIAL_KEYSPAN_USA19QW y 155 + USB_SERIAL_KEYSPAN_USA19QI y 156 + USB_SERIAL_KEYSPAN_USA49W y 157 + USB_SERIAL_KEYSPAN_USA49WLC y 158 + ''; 159 + 160 + fsXattr = '' 161 + # Filesystem options - in particular, enable extended attributes and 162 + # ACLs for all filesystems that support them. 163 + EXT2_FS_XATTR y # Ext2 extended attributes 164 + EXT2_FS_POSIX_ACL y # Ext2 POSIX Access Control Lists 165 + EXT2_FS_SECURITY y # Ext2 Security Labels 166 + EXT2_FS_XIP y # Ext2 execute in place support 167 + EXT4_FS_POSIX_ACL y 168 + EXT4_FS_SECURITY y 169 + REISERFS_FS_XATTR y 170 + REISERFS_FS_POSIX_ACL y 171 + REISERFS_FS_SECURITY y 172 + JFS_POSIX_ACL y 173 + JFS_SECURITY y 174 + XFS_QUOTA y 175 + XFS_POSIX_ACL y 176 + XFS_RT y # XFS Realtime subvolume support 177 + OCFS2_DEBUG_MASKLOG n 178 + OCFS2_FS_POSIX_ACL y 179 + BTRFS_FS_POSIX_ACL y 180 + UBIFS_FS_XATTR y 181 + UBIFS_FS_ADVANCED_COMPR y 182 + NFSD_V2_ACL y 183 + NFSD_V3 y 184 + NFSD_V3_ACL y 185 + NFSD_V4 y 186 + CIFS_XATTR y 187 + CIFS_POSIX y 188 + ''; 189 + 190 + security = '' 191 + # Security related features. 192 + STRICT_DEVMEM y # Filter access to /dev/mem 193 + SECURITY_SELINUX_BOOTPARAM_VALUE 0 # disable SELinux by default 194 + ''; 195 + 196 + blockDevices = '' 197 + BLK_DEV_BSG n 198 + BLK_DEV_CMD640_ENHANCED y # CMD640 enhanced support 199 + BLK_DEV_IDEACPI y # IDE ACPI support 200 + BLK_DEV_INTEGRITY y 201 + ''; 202 + 203 + bluetooth = '' 204 + BT_HCIUART_BCSP y 205 + BT_HCIUART_H4 y # UART (H4) protocol support 206 + BT_HCIUART_LL y 207 + BT_RFCOMM_TTY y # RFCOMM TTY support 208 + ''; 209 + 210 + misc = '' 211 + # Misc. options. 212 + 8139TOO_8129 y 213 + 8139TOO_PIO n # PIO is slower 214 + B43_PCMCIA y 215 + BSD_PROCESS_ACCT_V3 y 216 + CRASH_DUMP n 217 + DMAR? n # experimental 218 + DVB_DYNAMIC_MINORS y # we use udev 219 + FUSION y # Fusion MPT device support 220 + IDE_GD_ATAPI y # ATAPI floppy support 221 + IRDA_ULTRA y # Ultra (connectionless) protocol 222 + JOYSTICK_IFORCE_232 y # I-Force Serial joysticks and wheels 223 + JOYSTICK_IFORCE_USB y # I-Force USB joysticks and wheels 224 + JOYSTICK_XPAD_FF y # X-Box gamepad rumble support 225 + JOYSTICK_XPAD_LEDS y # LED Support for Xbox360 controller 'BigX' LED 226 + LDM_PARTITION y # Windows Logical Disk Manager (Dynamic Disk) support 227 + LEDS_TRIGGER_IDE_DISK y # LED IDE Disk Trigger 228 + LOGIRUMBLEPAD2_FF y # Logitech Rumblepad 2 force feedback 229 + LOGO n # not needed 230 + MEDIA_ATTACH y 231 + MEGARAID_NEWGEN y 232 + MICROCODE_AMD y 233 + MODVERSIONS y 234 + MOUSE_PS2_ELANTECH y # Elantech PS/2 protocol extension 235 + MTRR_SANITIZER y 236 + NET_FC y # Fibre Channel driver support 237 + PCI_LEGACY y 238 + PPP_MULTILINK y # PPP multilink support 239 + REGULATOR y # Voltage and Current Regulator Support 240 + SCSI_LOGGING y # SCSI logging facility 241 + SERIAL_8250 y # 8250/16550 and compatible serial support 242 + SLIP_COMPRESSED y # CSLIP compressed headers 243 + SLIP_SMART y 244 + THERMAL_HWMON y # Hardware monitoring support 245 + USB_EHCI_ROOT_HUB_TT y # Root Hub Transaction Translators 246 + X86_CHECK_BIOS_CORRUPTION y 247 + X86_MCE y 248 + ''; 249 + 250 + bfsched = '' 251 + SCHED_BFS y 252 + NO_HZ n 253 + HZ_1000 n 254 + HZ_300 y 255 + HZ 300 256 + ''; 257 + }
+3
pkgs/os-specific/linux/kernel/generic.nix
··· 100 " (with patches: " 101 + lib.concatStrings (lib.intersperse ", " (map (x: x.name) kernelPatches)) 102 + ")"); 103 } // extraMeta; 104 }
··· 100 " (with patches: " 101 + lib.concatStrings (lib.intersperse ", " (map (x: x.name) kernelPatches)) 102 + ")"); 103 + license = "GPLv2"; 104 + homepage = http://www.kernel.org/; 105 + maintainers = [ lib.maintainers.eelco ]; 106 } // extraMeta; 107 }
+2 -2
pkgs/os-specific/linux/kernel/linux-2.6.27.nix
··· 3 import ./generic.nix ( 4 5 rec { 6 - version = "2.6.27.42"; 7 8 src = fetchurl { 9 url = "mirror://kernel/linux/kernel/v2.6/linux-${version}.tar.bz2"; 10 - sha256 = "0nsjhikswqrag44wablsr02kl03p8jwd0j50brg6gpjwb3485zaz"; 11 }; 12 13 features.iwlwifi = true;
··· 3 import ./generic.nix ( 4 5 rec { 6 + version = "2.6.27.43"; 7 8 src = fetchurl { 9 url = "mirror://kernel/linux/kernel/v2.6/linux-${version}.tar.bz2"; 10 + sha256 = "0y2fpc6maazzg75ixrzc7h0v0k48jaflbjjcsh6c69f0mq3l8zay"; 11 }; 12 13 features.iwlwifi = true;
+3 -3
pkgs/os-specific/linux/kernel/linux-2.6.32.nix
··· 4 import ./generic.nix ( 5 6 rec { 7 - version = "2.6.32.2"; 8 9 src = fetchurl { 10 url = "mirror://kernel/linux/kernel/v2.6/linux-${version}.tar.bz2"; 11 - sha256 = "16fyfcj6cgd5b1n0qnf2lgx5v806xycr3w1nhyys1qc0ffy2iccj"; 12 }; 13 14 features.iwlwifi = true; ··· 203 ''; 204 } 205 206 - // args 207 )
··· 4 import ./generic.nix ( 5 6 rec { 7 + version = "2.6.32.3"; 8 9 src = fetchurl { 10 url = "mirror://kernel/linux/kernel/v2.6/linux-${version}.tar.bz2"; 11 + sha256 = "09zg9xk67vjpfrrb3m4rzql4nd7bz64i9sng5sbdpfgs7d4pi1cp"; 12 }; 13 14 features.iwlwifi = true; ··· 203 ''; 204 } 205 206 + // removeAttrs args ["extraConfig"] 207 )
+15
pkgs/os-specific/linux/kernel/patches.nix
··· 89 }; 90 }; 91 92 }
··· 89 }; 90 }; 91 92 + gcov_2_6_28 = 93 + { name = "gcov"; 94 + patch = fetchurl { 95 + url = http://buildfarm.st.ewi.tudelft.nl/~eelco/dist/linux-2.6.28-gcov.patch; 96 + sha256 = "0ck9misa3pgh3vzyb7714ibf7ix7piyg5dvfa9r42v15scjqiyny"; 97 + }; 98 + extraConfig = 99 + '' 100 + GCOV_PROFILE y 101 + GCOV_ALL y 102 + GCOV_PROC m 103 + GCOV_HAMMER n 104 + ''; 105 + }; 106 + 107 }
+10 -11
pkgs/os-specific/linux/lvm2/default.nix
··· 1 - {stdenv, fetchurl, devicemapper, enableStatic ? true}: 2 - 3 - assert enableStatic -> devicemapper.enableStatic; 4 5 stdenv.mkDerivation { 6 - name = "lvm2-2.02.39"; 7 8 src = fetchurl { 9 - url = ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.39.tgz; 10 - sha256 = "18nfy7lj9fjjqjjd9dmb4v8away7cpi51ss1k8gd0yrh77dbsyyh"; 11 }; 12 13 - buildInputs = [devicemapper]; 14 - 15 - inherit enableStatic; 16 - 17 - configureFlags = "--disable-readline ${if enableStatic then "--enable-static_link" else ""}"; 18 19 # To prevent make install from failing. 20 preInstall = "installFlags=\"OWNER= GROUP= confdir=$out/etc\""; 21 }
··· 1 + { stdenv, fetchurl }: 2 3 stdenv.mkDerivation { 4 + name = "lvm2-2.02.56"; 5 6 src = fetchurl { 7 + url = ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.56.tgz; 8 + sha256 = "0hrgca93jnc3k05cgc3rc5klvc03anxmqydgljv6qq59nhnfz5lw"; 9 }; 10 11 + configureFlags = "--disable-readline --enable-udev_rules --enable-udev_sync"; 12 13 # To prevent make install from failing. 14 preInstall = "installFlags=\"OWNER= GROUP= confdir=$out/etc\""; 15 + 16 + meta = { 17 + homepage = http://sourceware.org/lvm2/; 18 + descriptions = "Tools to support Logical Volume Management (LVM) on Linux"; 19 + }; 20 }
+48
pkgs/os-specific/linux/pam_usb/default.nix
···
··· 1 + {stdenv, fetchurl, makeWrapper, useSetUID, dbus, libxml2, pam, hal, pkgconfig, pmount, python, pythonDBus}: 2 + 3 + let 4 + pmountBin = useSetUID pmount "/bin/pmount"; 5 + pumountBin = useSetUID pmount "/bin/pumount"; 6 + in 7 + 8 + stdenv.mkDerivation { 9 + name = "pam_usb-0.4.2"; 10 + 11 + src = fetchurl { 12 + url = mirror://sourceforge/pamusb/files/pam_usb/pam_usb-0.4.2/pam_usb-0.4.2.tar.gz; 13 + sha256 = "736afced7482c7c5d47127285f7defe0a304a6136a0090588fa8698d385ba202"; 14 + }; 15 + 16 + buildInputs = [ 17 + makeWrapper 18 + # pam_usb dependencies 19 + dbus libxml2 pam hal pmount pkgconfig 20 + # pam_usb's tools dependencies 21 + python 22 + # cElementTree is included with python 2.5 and later. 23 + ]; 24 + 25 + preBuild = '' 26 + makeFlagsArray=(DESTDIR=$out) 27 + substituteInPlace ./src/volume.c \ 28 + --replace 'pmount' '${pmountBin}' \ 29 + --replace 'pumount' '${pumountBin}' 30 + ''; 31 + 32 + # pmount is append to the PATH because pmounts binaries should have a set uid bit. 33 + postInstall = '' 34 + mv $out/usr/* $out/. # fix color */ 35 + rm -rf $out/usr 36 + for prog in $out/bin/pamusb-conf $out/bin/pamusb-agent; do 37 + substituteInPlace $prog --replace '/usr/bin/env python' '/bin/python' 38 + wrapProgram $prog \ 39 + --prefix PYTHONPATH : "$(toPythonPath ${pythonDBus})" 40 + done 41 + ''; 42 + 43 + meta = { 44 + homepage = http://pamusb.org/; 45 + description = "Authentication using USB Flash Drives"; 46 + license = "GPLv2"; 47 + }; 48 + }
+42
pkgs/os-specific/linux/pmount/default.nix
···
··· 1 + {stdenv, fetchurl, cryptsetup, dbus, dbus_glib, hal, intltool, ntfs3g, utillinuxng 2 + , mediaDir ? "/media/" 3 + , lockDir ? "/var/lock/pmount" 4 + , whiteList ? "/etc/pmount.allow" 5 + }: 6 + 7 + # constraint mention in the configure.ac 8 + assert stdenv.lib.hasSuffix "/" mediaDir; 9 + 10 + stdenv.mkDerivation { 11 + name = "pmount-0.9.20"; 12 + 13 + src = fetchurl { 14 + url = https://alioth.debian.org/frs/download.php/3127/pmount-0.9.20.tar.gz; 15 + sha256 = "0574d2e805610c179904f5c676b2b93e088906b91bcb76980daa4a8da1d23e8c"; 16 + }; 17 + 18 + buildInputs = [ hal intltool utillinuxng ]; 19 + 20 + configureFlags = "" 21 + + " --with-media-dir=${mediaDir}" 22 + + " --with-lock-dir=${lockDir}" 23 + + " --with-whitelist=${whiteList}" 24 + + " --with-mount-prog=${utillinuxng}/bin/mount" 25 + + " --with-umount-prog=${utillinuxng}/bin/umount" 26 + + " --with-cryptsetup=${cryptsetup}/sbin/cryptsetup" 27 + + " --with-mount-ntfs3g=${ntfs3g}/sbin/mount.ntfs-3g" 28 + + " --enable-hal"; 29 + 30 + postConfigure = '' 31 + # etc/Mafile.am is hardcoded and it does not respect the --prefix option. 32 + substituteInPlace ./etc/Makefile --replace DESTDIR prefix 33 + # Do not change ownership & Do not add the set user ID bit 34 + substituteInPlace ./src/Makefile --replace '-o root -g root -m 4755 ' '-m 755 ' 35 + ''; 36 + 37 + meta = { 38 + homepage = http://pmount.alioth.debian.org/; 39 + description = "Mount removable devices as normal user"; 40 + license = "GPLv2"; 41 + }; 42 + }
+2 -2
pkgs/os-specific/linux/qemu-kvm/default.nix
··· 3 assert stdenv.isLinux; 4 5 stdenv.mkDerivation rec { 6 - name = "qemu-kvm-0.11.1"; 7 8 src = fetchurl { 9 url = "mirror://sourceforge/kvm/${name}.tar.gz"; 10 - sha256 = "12s5v35krd7m7s4blf75ml4lwmw19kiygg3al0shy7xvza4vbxbx"; 11 }; 12 13 patches = [ ./unix-domain.patch ];
··· 3 assert stdenv.isLinux; 4 5 stdenv.mkDerivation rec { 6 + name = "qemu-kvm-0.12.1.2"; 7 8 src = fetchurl { 9 url = "mirror://sourceforge/kvm/${name}.tar.gz"; 10 + sha256 = "1k5xx9rn0n311bgvl6g9c8h1bxj2nhjpjpzbngy0sf9hdjidnba7"; 11 }; 12 13 patches = [ ./unix-domain.patch ];
+36 -36
pkgs/os-specific/linux/qemu-kvm/unix-domain.patch
··· 1 - diff -rc --exclude '*~' qemu-kvm-0.11.0-rc1-orig/slirp/socket.c qemu-kvm-0.11.0-rc1/slirp/socket.c 2 - *** qemu-kvm-0.11.0-rc1-orig/slirp/socket.c 2009-08-02 15:38:42.000000000 +0200 3 - --- qemu-kvm-0.11.0-rc1/slirp/socket.c 2009-08-21 17:11:21.000000000 +0200 4 *************** 5 - *** 587,592 **** 6 - --- 587,593 ---- 7 u_int lport, int flags) 8 { 9 struct sockaddr_in addr; ··· 12 int s, opt = 1; 13 socklen_t addrlen = sizeof(addr); 14 *************** 15 - *** 621,633 **** 16 so->so_lport = lport; /* Kept in network format */ 17 so->so_laddr.s_addr = laddr; /* Ditto */ 18 ··· 20 ! addr.sin_addr.s_addr = haddr; 21 ! addr.sin_port = hport; 22 23 - ! if (((s = socket(AF_INET,SOCK_STREAM,0)) < 0) || 24 (setsockopt(s,SOL_SOCKET,SO_REUSEADDR,(char *)&opt,sizeof(int)) < 0) || 25 ! (bind(s,(struct sockaddr *)&addr, sizeof(addr)) < 0) || 26 (listen(s,1) < 0)) { 27 int tmperrno = errno; /* Don't clobber the real reason we failed */ 28 29 - --- 622,643 ---- 30 so->so_lport = lport; /* Kept in network format */ 31 so->so_laddr.s_addr = laddr; /* Ditto */ 32 33 - ! so->so_uds = ntohs(hport) >= 0xff00; 34 35 - ! if (so->so_uds) { 36 - ! addr_un.sun_family = AF_UNIX; 37 - ! sprintf(addr_un.sun_path, "./%d.socket", ntohs(hport)); 38 - ! unlink(addr_un.sun_path); 39 - ! } else { 40 - ! addr.sin_family = AF_INET; 41 - ! addr.sin_addr.s_addr = haddr; 42 - ! addr.sin_port = hport; 43 - ! } 44 - ! 45 - ! if (((s = socket(so->so_uds ? PF_UNIX : AF_INET, SOCK_STREAM, 0)) < 0) || 46 (setsockopt(s,SOL_SOCKET,SO_REUSEADDR,(char *)&opt,sizeof(int)) < 0) || 47 - ! (bind(s, so->so_uds ? (struct sockaddr *) &addr_un : (struct sockaddr *) &addr, 48 - ! so->so_uds ? sizeof(addr_un) : sizeof(addr)) < 0) || 49 (listen(s,1) < 0)) { 50 int tmperrno = errno; /* Don't clobber the real reason we failed */ 51 52 *************** 53 - *** 643,654 **** 54 } 55 setsockopt(s,SOL_SOCKET,SO_OOBINLINE,(char *)&opt,sizeof(int)); 56 ··· 63 64 so->s = s; 65 return so; 66 - --- 653,669 ---- 67 } 68 setsockopt(s,SOL_SOCKET,SO_OOBINLINE,(char *)&opt,sizeof(int)); 69 ··· 81 82 so->s = s; 83 return so; 84 - diff -rc --exclude '*~' qemu-kvm-0.11.0-rc1-orig/slirp/socket.h qemu-kvm-0.11.0-rc1/slirp/socket.h 85 - *** qemu-kvm-0.11.0-rc1-orig/slirp/socket.h 2009-08-02 15:38:42.000000000 +0200 86 - --- qemu-kvm-0.11.0-rc1/slirp/socket.h 2009-08-21 17:02:36.000000000 +0200 87 *************** 88 *** 33,39 **** 89 struct in_addr so_laddr; /* local host table entry */ ··· 102 u_int8_t so_iptos; /* Type of service */ 103 u_int8_t so_emu; /* Is the socket emulated? */ 104 105 - diff -rc --exclude '*~' qemu-kvm-0.11.0-rc1-orig/slirp/tcp_subr.c qemu-kvm-0.11.0-rc1/slirp/tcp_subr.c 106 - *** qemu-kvm-0.11.0-rc1-orig/slirp/tcp_subr.c 2009-08-02 15:38:42.000000000 +0200 107 - --- qemu-kvm-0.11.0-rc1/slirp/tcp_subr.c 2009-08-21 17:21:37.000000000 +0200 108 *************** 109 - *** 382,388 **** 110 Slirp *slirp = inso->slirp; 111 struct socket *so; 112 struct sockaddr_in addr; ··· 114 struct tcpcb *tp; 115 int s, opt; 116 117 - --- 382,389 ---- 118 Slirp *slirp = inso->slirp; 119 struct socket *so; 120 struct sockaddr_in addr; ··· 124 int s, opt; 125 126 *************** 127 - *** 412,418 **** 128 129 (void) tcp_mss(sototcpcb(so), 0); 130 ··· 132 tcp_close(sototcpcb(so)); /* This will sofree() as well */ 133 return; 134 } 135 - --- 413,422 ---- 136 137 (void) tcp_mss(sototcpcb(so), 0); 138 ··· 144 return; 145 } 146 *************** 147 - *** 424,434 **** 148 opt = 1; 149 setsockopt(s,IPPROTO_TCP,TCP_NODELAY,(char *)&opt,sizeof(int)); 150 ··· 156 157 /* Close the accept() socket, set right state */ 158 if (inso->so_state & SS_FACCEPTONCE) { 159 - --- 428,443 ---- 160 opt = 1; 161 setsockopt(s,IPPROTO_TCP,TCP_NODELAY,(char *)&opt,sizeof(int)); 162
··· 1 + diff -rc --exclude '*~' qemu-kvm-0.12.1.2-orig/slirp/socket.c qemu-kvm-0.12.1.2/slirp/socket.c 2 + *** qemu-kvm-0.12.1.2-orig/slirp/socket.c 2009-12-29 21:46:34.000000000 +0100 3 + --- qemu-kvm-0.12.1.2/slirp/socket.c 2010-01-03 20:24:11.000000000 +0100 4 *************** 5 + *** 588,593 **** 6 + --- 588,594 ---- 7 u_int lport, int flags) 8 { 9 struct sockaddr_in addr; ··· 12 int s, opt = 1; 13 socklen_t addrlen = sizeof(addr); 14 *************** 15 + *** 622,634 **** 16 so->so_lport = lport; /* Kept in network format */ 17 so->so_laddr.s_addr = laddr; /* Ditto */ 18 ··· 20 ! addr.sin_addr.s_addr = haddr; 21 ! addr.sin_port = hport; 22 23 + ! if (((s = qemu_socket(AF_INET,SOCK_STREAM,0)) < 0) || 24 (setsockopt(s,SOL_SOCKET,SO_REUSEADDR,(char *)&opt,sizeof(int)) < 0) || 25 ! (bind(s,(struct sockaddr *)&addr, sizeof(addr)) < 0) || 26 (listen(s,1) < 0)) { 27 int tmperrno = errno; /* Don't clobber the real reason we failed */ 28 29 + --- 623,644 ---- 30 so->so_lport = lport; /* Kept in network format */ 31 so->so_laddr.s_addr = laddr; /* Ditto */ 32 33 + ! so->so_uds = ntohs(hport) >= 0xff00; 34 + ! 35 + ! if (so->so_uds) { 36 + ! addr_un.sun_family = AF_UNIX; 37 + ! sprintf(addr_un.sun_path, "./%d.socket", ntohs(hport)); 38 + ! unlink(addr_un.sun_path); 39 + ! } else { 40 + ! addr.sin_family = AF_INET; 41 + ! addr.sin_addr.s_addr = haddr; 42 + ! addr.sin_port = hport; 43 + ! } 44 45 + ! if (((s = qemu_socket(so->so_uds ? PF_UNIX : AF_INET, SOCK_STREAM, 0)) < 0) || 46 (setsockopt(s,SOL_SOCKET,SO_REUSEADDR,(char *)&opt,sizeof(int)) < 0) || 47 + ! (bind(s, so->so_uds ? (struct sockaddr *) &addr_un : (struct sockaddr *) &addr, 48 + ! so->so_uds ? sizeof(addr_un) : sizeof(addr)) < 0) || 49 (listen(s,1) < 0)) { 50 int tmperrno = errno; /* Don't clobber the real reason we failed */ 51 52 *************** 53 + *** 644,655 **** 54 } 55 setsockopt(s,SOL_SOCKET,SO_OOBINLINE,(char *)&opt,sizeof(int)); 56 ··· 63 64 so->s = s; 65 return so; 66 + --- 654,670 ---- 67 } 68 setsockopt(s,SOL_SOCKET,SO_OOBINLINE,(char *)&opt,sizeof(int)); 69 ··· 81 82 so->s = s; 83 return so; 84 + diff -rc --exclude '*~' qemu-kvm-0.12.1.2-orig/slirp/socket.h qemu-kvm-0.12.1.2/slirp/socket.h 85 + *** qemu-kvm-0.12.1.2-orig/slirp/socket.h 2009-12-29 21:46:34.000000000 +0100 86 + --- qemu-kvm-0.12.1.2/slirp/socket.h 2010-01-03 20:20:50.000000000 +0100 87 *************** 88 *** 33,39 **** 89 struct in_addr so_laddr; /* local host table entry */ ··· 102 u_int8_t so_iptos; /* Type of service */ 103 u_int8_t so_emu; /* Is the socket emulated? */ 104 105 + diff -rc --exclude '*~' qemu-kvm-0.12.1.2-orig/slirp/tcp_subr.c qemu-kvm-0.12.1.2/slirp/tcp_subr.c 106 + *** qemu-kvm-0.12.1.2-orig/slirp/tcp_subr.c 2009-12-29 21:46:34.000000000 +0100 107 + --- qemu-kvm-0.12.1.2/slirp/tcp_subr.c 2010-01-03 20:20:50.000000000 +0100 108 *************** 109 + *** 383,389 **** 110 Slirp *slirp = inso->slirp; 111 struct socket *so; 112 struct sockaddr_in addr; ··· 114 struct tcpcb *tp; 115 int s, opt; 116 117 + --- 383,390 ---- 118 Slirp *slirp = inso->slirp; 119 struct socket *so; 120 struct sockaddr_in addr; ··· 124 int s, opt; 125 126 *************** 127 + *** 413,419 **** 128 129 (void) tcp_mss(sototcpcb(so), 0); 130 ··· 132 tcp_close(sototcpcb(so)); /* This will sofree() as well */ 133 return; 134 } 135 + --- 414,423 ---- 136 137 (void) tcp_mss(sototcpcb(so), 0); 138 ··· 144 return; 145 } 146 *************** 147 + *** 425,435 **** 148 opt = 1; 149 setsockopt(s,IPPROTO_TCP,TCP_NODELAY,(char *)&opt,sizeof(int)); 150 ··· 156 157 /* Close the accept() socket, set right state */ 158 if (inso->so_state & SS_FACCEPTONCE) { 159 + --- 429,444 ---- 160 opt = 1; 161 setsockopt(s,IPPROTO_TCP,TCP_NODELAY,(char *)&opt,sizeof(int)); 162
-205
pkgs/os-specific/linux/zen-kernel/2.6.31-zen5.nix
··· 1 - a : 2 - let 3 - s = import ./src-for-2.6.31-zen5.nix; 4 - in 5 - (import ../kernel/generic.nix) (rec { 6 - inherit (a) stdenv fetchurl perl mktemp module_init_tools platform; 7 - 8 - uboot = if (platform.name == "sheevaplug") then 9 - platform.uboot else null; 10 - 11 - src = a.builderDefs.fetchGitFromSrcInfo s; 12 - version = "2.6.31-zen5"; 13 - config = "./kernel-config"; 14 - features = { 15 - iwlwifi = true; 16 - zen = true; 17 - fbConDecor = if (platform.name == "pc") then true else false; 18 - aufs = true; 19 - }; 20 - 21 - extraMeta = { 22 - maintainers = [ 23 - a.lib.maintainers.raskin 24 - ]; 25 - platforms = with a.lib.platforms; 26 - linux; 27 - }; 28 - 29 - configFunctions = '' 30 - killOption () { 31 - sed -re 's/^('"$1"')=.*/# \1 is not set/' -i .config 32 - } 33 - setOptionVal () { 34 - sed -re 's/^('"$1"')=.*/\1='"$2"'/' -i .config 35 - sed -re 's/^# ('"$1"') is not set/\1='"$2"'/' -i .config 36 - sed -re "1i$1=$2" -i .config 37 - } 38 - setOptionMod () { 39 - setOptionVal "$1" m 40 - } 41 - setOptionYes () { 42 - setOptionVal "$1" y 43 - } 44 - ''; 45 - 46 - 47 - configurePC = '' 48 - make allmodconfig 49 - 50 - killOption CONFIG_CMDLINE_OVERRIDE 51 - 52 - killOption 'CONFIG_.*_DEBUG.*' 53 - killOption 'CONFIG_DEBUG.*' 54 - killOption CONFIG_AUDIT_ARCH 55 - killOption CONFIG_PERF_COUNTERS 56 - killOption 'CONFIG_GCOV.*' 57 - killOption 'CONFIG_KGDB.*' 58 - killOption 'CONFIG_.*_TEST' 59 - killOption CONFIG_TASKSTATS 60 - 61 - killOption CONFIG_SLQB 62 - killOption CONFIG_SLQB_ALLOCATOR 63 - setOptionYes CONFIG_SLUB_ALLOCATOR 64 - setOptionYes CONFIG_SLUB 65 - killOption CONFIG_ACPI_CUSTOM_DSDT_INITRD 66 - killOption CONFIG_DEVTMPFS 67 - killOption CONFIG_DEVTMPFS_MOUNT 68 - 69 - killOption CONFIG_IMA 70 - '' + 71 - '' 72 - killOption CONFIG_USB_OTG_BLACKLIST_HUB 73 - ''+ 74 - '' 75 - killOption CONFIG_KERNEL_BZIP2 76 - killOption CONFIG_KERNEL_LZMA 77 - setOptionYes CONFIG_KERNEL_GZIP 78 - ''+ 79 - '' 80 - killOption CONFIG_FB_TILEBLITTING 81 - killOption CONFIG_FB_S3 82 - killOption CONFIG_FB_VT8623 83 - killOption CONFIG_FB_ARK 84 - setOptionYes CONFIG_FRAMEBUFFER_CONSOLE 85 - setOptionYes CONFIG_FB 86 - make oldconfig 87 - setOptionYes CONFIG_FB_CON_DECOR 88 - setOptionYes CONFIG_FB_VESA 89 - ''+ 90 - '' 91 - killOption CONFIG_PREEMPT_NONE 92 - setOptionYes CONFIG_PREEMPT_VOLUNTARY 93 - ''+ 94 - '' 95 - killOption CONFIG_PRAMFS 96 - ''+ 97 - (if a.lib.attrByPath ["ckSched"] false a then '' 98 - killOption CONFIG_CPU_CFS 99 - setOptionYes CONFIG_CPU_BFS 100 - killOption CONFIG_NO_HZ 101 - killOption CONFIG_HZ_1000 102 - setOptionYes CONFIG_HZ_250 103 - setOptionVal CONFIG_HZ 250 104 - ''else "") + 105 - '' 106 - cp .config ${config} 107 - ''; 108 - 109 - configureBaseSheevaplug = '' 110 - ARCH=arm make kirkwood_defconfig 111 - ''; 112 - 113 - configureBaseVersatileARM = '' 114 - ARCH=arm make versatile_defconfig 115 - 116 - setOptionYes CONFIG_IP_PNP_DHCP 117 - setOptionYes CONFIG_TUN 118 - # This versatile arm is for the sheevaplug compatibility, so, EABI 119 - setOptionYes CONFIG_AEABI 120 - setOptionYes CONFIG_TMPFS 121 - # For the qemu block device 'hda' to work 122 - setOptionYes CONFIG_PCI 123 - setOptionYes CONFIG_SCSI 124 - setOptionYes CONFIG_BLK_DEV_SD 125 - setOptionYes CONFIG_SCSI_SYM53C8XX_2 126 - ''; 127 - 128 - configureARM = '' 129 - killOption CONFIG_CMDLINE_OVERRIDE 130 - 131 - killOption 'CONFIG_.*_DEBUG.*' 132 - killOption 'CONFIG_DEBUG.*' 133 - killOption CONFIG_AUDIT_ARCH 134 - killOption CONFIG_PERF_COUNTERS 135 - killOption 'CONFIG_GCOV.*' 136 - killOption 'CONFIG_KGDB.*' 137 - killOption 'CONFIG_.*_TEST' 138 - killOption CONFIG_TASKSTATS 139 - 140 - killOption CONFIG_SLQB 141 - killOption CONFIG_SLQB_ALLOCATOR 142 - setOptionYes CONFIG_SLUB_ALLOCATOR 143 - setOptionYes CONFIG_SLUB 144 - killOption CONFIG_ACPI_CUSTOM_DSDT_INITRD 145 - killOption CONFIG_DEVTMPFS 146 - killOption CONFIG_DEVTMPFS_MOUNT 147 - 148 - killOption CONFIG_IMA 149 - '' + 150 - '' 151 - killOption CONFIG_USB_OTG_BLACKLIST_HUB 152 - ''+ 153 - '' 154 - killOption CONFIG_KERNEL_BZIP2 155 - killOption CONFIG_KERNEL_LZMA 156 - setOptionYes CONFIG_KERNEL_GZIP 157 - ''+ 158 - '' 159 - killOption CONFIG_FB_TILEBLITTING 160 - killOption CONFIG_FB_S3 161 - killOption CONFIG_FB_VT8623 162 - killOption CONFIG_FB_ARK 163 - killOption CONFIG_FRAMEBUFFER_CONSOLE 164 - killOption CONFIG_FB 165 - make oldconfig 166 - killOption CONFIG_FB_CON_DECOR 167 - killOption CONFIG_FB_VESA 168 - ''+ 169 - '' 170 - killOption CONFIG_PREEMPT_NONE 171 - setOptionYes CONFIG_PREEMPT_VOLUNTARY 172 - ''+ 173 - '' 174 - killOption CONFIG_PRAMFS 175 - ''+ 176 - '' 177 - setOptionYes CONFIG_MTD_UBI 178 - setOptionYes CONFIG_REISERFS_FS 179 - setOptionYes CONFIG_FUSE_FS 180 - setOptionYes CONFIG_ISO9660_FS 181 - setOptionMod CONFIG_IPV6 182 - ''+ 183 - (if a.lib.attrByPath ["ckSched"] false a then '' 184 - killOption CONFIG_CPU_CFS 185 - setOptionYes CONFIG_CPU_BFS 186 - killOption CONFIG_NO_HZ 187 - killOption CONFIG_HZ_1000 188 - setOptionYes CONFIG_HZ_250 189 - setOptionVal CONFIG_HZ 250 190 - ''else "") + 191 - '' 192 - cp .config ${config} 193 - ''; 194 - 195 - 196 - preConfigure = configFunctions + 197 - (if (platform.name == "pc") then 198 - (configureBaseSheevaplug + configureARM) 199 - else if (platform.name == "sheevaplug") then 200 - (configureBaseSheevaplug + configureARM) 201 - else if (platform.name == "versatileARM") then 202 - (configureBaseVersatileARM + configureARM) 203 - else throw "platform not supported" 204 - ); 205 - })
···
+74
pkgs/os-specific/linux/zen-kernel/2.6.32-zen4.nix
···
··· 1 + args @ {stdenv, fetchurl, xz, runCommand, userModeLinux ? false, extraConfig ? "", 2 + kernelPatches ? [], extraMeta ? {}, 3 + features ? {}, preConfigure ? "", 4 + ...}: 5 + 6 + let 7 + conf = import ../kernel/config-blocks.nix; 8 + 9 + in 10 + 11 + import ../kernel/generic.nix ( 12 + rec { 13 + version = "2.6.32-zen4"; 14 + 15 + src = fetchurl { 16 + url = "mirror://kernel/linux/kernel/v2.6/linux-2.6.32.tar.bz2"; 17 + sha256 = "0kjhnkf2ldivagczs16q49zm2lr3khh01pqrlsc7sh5qh1npi6ah"; 18 + }; 19 + 20 + kernelPatches = [ 21 + { 22 + patch = runCommand "2.6.32-zen4.patch" {} "${xz}/bin/lzma -d < ${ fetchurl { 23 + name = "2.6.32-zen4"; 24 + url = "http://downloads.zen-kernel.org/2.6.32/2.6.32-zen4.patch.lzma"; 25 + sha256 = "1dyp9sfigqjfqw1c94010c521bhcy1xnzp91kkhg3dwgzfpsp2k2"; 26 + } } > $out"; 27 + } 28 + ] 29 + ++ 30 + stdenv.lib.attrByPath ["kernelPatches"] [] args; 31 + 32 + features = { 33 + iwlwifi = true; 34 + zen = true; 35 + fbConDecor = true; 36 + aufs = true; 37 + } // (stdenv.lib.attrByPath ["features"] {} args); 38 + 39 + config = with conf; 40 + '' 41 + ${generalOptions} 42 + ${noDebug} 43 + ${virtualisation} 44 + ${if stdenv.lib.attrByPath ["features" "oldI686"] false args then noPAE else ""} 45 + ${usefulSubsystems} 46 + ${cfq} 47 + ${noNUMA} 48 + ${networking} 49 + ${wireless} 50 + ${fb} 51 + ${fbConDecor} 52 + ${sound} 53 + ${usbserial} 54 + ${fsXattr} 55 + ${security} 56 + ${blockDevices} 57 + ${bluetooth} 58 + ${misc} 59 + ${if stdenv.lib.attrByPath ["features" "ckSched"] false args then bfsched else ""} 60 + ''; 61 + 62 + preConfigure = '' 63 + mv README.zen README-zen 64 + '' + stdenv.lib.attrByPath ["preConfigure"] "" args; 65 + 66 + extraMeta = { 67 + maintainers = [stdenv.lib.maintainers.raskin]; 68 + platforms = with stdenv.lib.platforms; 69 + linux; 70 + } // stdenv.lib.attrByPath ["extraMeta"] {} args; 71 + } 72 + // removeAttrs args ["extraConfig" "extraMeta" "features" "kernelPatches" 73 + "xz" "runCommand" "preConfigure"] 74 + )
-7
pkgs/os-specific/linux/zen-kernel/src-for-2.6.31-zen5.nix
··· 1 - rec { 2 - version="cd9caea74b8f90e8dded45a93a173f0f5c5aef25"; 3 - name="zen-linux-cd9caea74b8f90e8dded45a93a173f0f5c5aef25"; 4 - hash="86e254d1aab17a66d7f5a83d93430b11dbeb95be1ee06f1d6a4c36219e4dfaf4"; 5 - rev="cd9caea74b8f90e8dded45a93a173f0f5c5aef25"; 6 - url="git://zen-kernel.org/kernel/zen-stable.git"; 7 - }
···
-7
pkgs/os-specific/linux/zen-kernel/src-for-zen-stable.nix
··· 1 - rec { 2 - version="66a44aa93959818bdb8153fea27b0992197ebc54"; 3 - name="zen-linux-66a44aa93959818bdb8153fea27b0992197ebc54"; 4 - hash="f5c86214424c8a7202c2dd9bbbd800561940af00800edb8afab080a73c185bca"; 5 - rev="66a44aa93959818bdb8153fea27b0992197ebc54"; 6 - url="git://zen-kernel.org/kernel/zen-stable.git"; 7 - }
···
-6
pkgs/os-specific/linux/zen-kernel/src-info-for-default.nix
··· 1 - { 2 - repoUrl = "http://git.zen-sources.org/zen.git"; 3 - rev = "origin/master"; 4 - baseName = "zen-linux"; 5 - method = "fetchgit"; 6 - }
···
-6
pkgs/os-specific/linux/zen-kernel/src-info-for-zen-stable.nix
··· 1 - { 2 - repoUrl = "git://zen-kernel.org/kernel/zen-stable.git"; 3 - rev = "origin/master"; 4 - baseName = "zen-linux"; 5 - method = "fetchgit"; 6 - }
···
-102
pkgs/os-specific/linux/zen-kernel/zen-stable.nix
··· 1 - a : 2 - let 3 - s = import ./src-for-zen-stable.nix; 4 - in 5 - (import ../kernel/generic.nix) (rec { 6 - inherit (a) stdenv fetchurl perl mktemp module_init_tools; 7 - 8 - src = a.builderDefs.fetchGitFromSrcInfo s; 9 - version = "2.6.31-zen7"; 10 - config = "./kernel-config"; 11 - features = { 12 - iwlwifi = true; 13 - zen = true; 14 - fbConDecor = true; 15 - aufs = true; 16 - }; 17 - 18 - extraMeta = { 19 - maintainers = [ 20 - a.lib.maintainers.raskin 21 - ]; 22 - platforms = with a.lib.platforms; 23 - linux; 24 - }; 25 - 26 - preConfigure = '' 27 - killOption () { 28 - sed -re 's/^('"$1"')=.*/# \1 is not set/' -i .config 29 - } 30 - setOptionVal () { 31 - sed -re 's/^('"$1"')=.*/\1='"$2"'/' -i .config 32 - sed -re 's/^# ('"$1"') is not set/\1='"$2"'/' -i .config 33 - sed -re "1i$1=$2" -i .config 34 - } 35 - setOptionMod () { 36 - setOptionVal "$1" m 37 - } 38 - setOptionYes () { 39 - setOptionVal "$1" y 40 - } 41 - 42 - make allmodconfig 43 - 44 - killOption CONFIG_CMDLINE_OVERRIDE 45 - 46 - killOption 'CONFIG_.*_DEBUG.*' 47 - killOption 'CONFIG_DEBUG.*' 48 - killOption CONFIG_AUDIT_ARCH 49 - killOption CONFIG_PERF_COUNTERS 50 - killOption 'CONFIG_GCOV.*' 51 - killOption 'CONFIG_KGDB.*' 52 - killOption 'CONFIG_.*_TEST' 53 - killOption CONFIG_TASKSTATS 54 - 55 - killOption CONFIG_SLQB 56 - killOption CONFIG_SLQB_ALLOCATOR 57 - setOptionYes CONFIG_SLUB_ALLOCATOR 58 - setOptionYes CONFIG_SLUB 59 - killOption CONFIG_ACPI_CUSTOM_DSDT_INITRD 60 - killOption CONFIG_DEVTMPFS 61 - killOption CONFIG_DEVTMPFS_MOUNT 62 - 63 - killOption CONFIG_IMA 64 - '' + 65 - '' 66 - killOption CONFIG_USB_OTG_BLACKLIST_HUB 67 - ''+ 68 - '' 69 - killOption CONFIG_KERNEL_BZIP2 70 - killOption CONFIG_KERNEL_LZMA 71 - setOptionYes CONFIG_KERNEL_GZIP 72 - ''+ 73 - '' 74 - killOption CONFIG_FB_TILEBLITTING 75 - killOption CONFIG_FB_S3 76 - killOption CONFIG_FB_VT8623 77 - killOption CONFIG_FB_ARK 78 - setOptionYes CONFIG_FRAMEBUFFER_CONSOLE 79 - setOptionYes CONFIG_FB 80 - make oldconfig 81 - setOptionYes CONFIG_FB_CON_DECOR 82 - setOptionYes CONFIG_FB_VESA 83 - ''+ 84 - '' 85 - killOption CONFIG_PREEMPT_NONE 86 - setOptionYes CONFIG_PREEMPT_VOLUNTARY 87 - ''+ 88 - '' 89 - killOption CONFIG_PRAMFS 90 - ''+ 91 - (if a.lib.attrByPath ["ckSched"] false a then '' 92 - killOption CONFIG_CPU_CFS 93 - setOptionYes CONFIG_CPU_BFS 94 - killOption CONFIG_NO_HZ 95 - killOption CONFIG_HZ_1000 96 - setOptionYes CONFIG_HZ_250 97 - setOptionVal CONFIG_HZ 250 98 - ''else "") + 99 - '' 100 - cp .config ${config} 101 - ''; 102 - })
···
+40 -30
pkgs/servers/x11/xorg/default.nix
··· 68 })) // {inherit ;}; 69 70 dri2proto = (stdenv.mkDerivation ((if overrides ? dri2proto then overrides.dri2proto else x: x) { 71 - name = "dri2proto-2.1"; 72 builder = ./builder.sh; 73 src = fetchurl { 74 - url = mirror://xorg/X11R7.5/src/everything/dri2proto-2.1.tar.bz2; 75 - sha256 = "0b8jjlw2dk5nx4jgvwvwsysswar625vp3wmaqc2g1f4gcp3zfcrb"; 76 }; 77 buildInputs = [pkgconfig ]; 78 })) // {inherit ;}; ··· 478 })) // {inherit ;}; 479 480 glproto = (stdenv.mkDerivation ((if overrides ? glproto then overrides.glproto else x: x) { 481 - name = "glproto-1.4.10"; 482 builder = ./builder.sh; 483 src = fetchurl { 484 - url = mirror://xorg/X11R7.5/src/everything/glproto-1.4.10.tar.bz2; 485 - sha256 = "1kvgf662xdapcbxlnmxjmzhswks1zvq4ig48r9pgbm14mql3mf3z"; 486 }; 487 buildInputs = [pkgconfig ]; 488 })) // {inherit ;}; ··· 868 })) // {inherit xproto zlib ;}; 869 870 libpciaccess = (stdenv.mkDerivation ((if overrides ? libpciaccess then overrides.libpciaccess else x: x) { 871 - name = "libpciaccess-0.10.9"; 872 builder = ./builder.sh; 873 src = fetchurl { 874 - url = mirror://xorg/X11R7.5/src/everything/libpciaccess-0.10.9.tar.bz2; 875 - sha256 = "1bgy2f17k0iflx5fb9fysgh1i46f3ip01gxlxbyfsxmyp21rdjsw"; 876 }; 877 buildInputs = [pkgconfig zlib ]; 878 })) // {inherit zlib ;}; ··· 958 })) // {inherit libfontenc freetype xproto zlib ;}; 959 960 pixman = (stdenv.mkDerivation ((if overrides ? pixman then overrides.pixman else x: x) { 961 - name = "pixman-0.16.2"; 962 builder = ./builder.sh; 963 src = fetchurl { 964 - url = mirror://xorg/individual/lib/pixman-0.16.2.tar.bz2; 965 - sha256 = "0q3754f9fjxmzjh2fv47dfhdvwy0gj19zyail9z2az79j8rzmcl0"; 966 }; 967 buildInputs = [pkgconfig perl ]; 968 })) // {inherit perl ;}; ··· 1248 })) // {inherit ;}; 1249 1250 xeyes = (stdenv.mkDerivation ((if overrides ? xeyes then overrides.xeyes else x: x) { 1251 - name = "xeyes-1.0.991"; 1252 builder = ./builder.sh; 1253 src = fetchurl { 1254 - url = mirror://xorg/individual/app/xeyes-1.0.991.tar.bz2; 1255 - sha256 = "05giiqnd90kxb3bmz5xpc2m8agf6lpgq99d908hm02mj9c8j8hsr"; 1256 }; 1257 buildInputs = [pkgconfig libX11 libXext libXmu libXrender libXt ]; 1258 })) // {inherit libX11 libXext libXmu libXrender libXt ;}; ··· 1308 })) // {inherit inputproto randrproto xorgserver xproto ;}; 1309 1310 xf86inputevdev = (stdenv.mkDerivation ((if overrides ? xf86inputevdev then overrides.xf86inputevdev else x: x) { 1311 - name = "xf86-input-evdev-2.3.1"; 1312 builder = ./builder.sh; 1313 src = fetchurl { 1314 - url = mirror://xorg/individual/driver/xf86-input-evdev-2.3.1.tar.bz2; 1315 - sha256 = "13qxa5ah10d3m4501n7wpj2vzp04rlva4r57kzh8g6iqzpi2lbs6"; 1316 }; 1317 buildInputs = [pkgconfig xorgserver xproto ]; 1318 })) // {inherit xorgserver xproto ;}; ··· 1518 })) // {inherit fontsproto libpciaccess randrproto renderproto videoproto xextproto xorgserver xproto ;}; 1519 1520 xf86videointel = (stdenv.mkDerivation ((if overrides ? xf86videointel then overrides.xf86videointel else x: x) { 1521 - name = "xf86-video-intel-2.9.1"; 1522 builder = ./builder.sh; 1523 src = fetchurl { 1524 - url = mirror://xorg/X11R7.5/src/everything/xf86-video-intel-2.9.1.tar.bz2; 1525 - sha256 = "0xlxipmpfa49hpqj01d2h6qpzlmqs6nxzg5kgb042aschn47qd4m"; 1526 }; 1527 buildInputs = [pkgconfig dri2proto fontsproto glproto libdrm libpciaccess randrproto renderproto libX11 libXext xextproto xf86driproto libXfixes xineramaproto xorgserver xproto libXvMC ]; 1528 })) // {inherit dri2proto fontsproto glproto libdrm libpciaccess randrproto renderproto libX11 libXext xextproto xf86driproto libXfixes xineramaproto xorgserver xproto libXvMC ;}; ··· 1778 })) // {inherit randrproto videoproto xorgserver xproto ;}; 1779 1780 xf86videovesa = (stdenv.mkDerivation ((if overrides ? xf86videovesa then overrides.xf86videovesa else x: x) { 1781 - name = "xf86-video-vesa-2.2.1"; 1782 builder = ./builder.sh; 1783 src = fetchurl { 1784 - url = mirror://xorg/X11R7.5/src/everything/xf86-video-vesa-2.2.1.tar.bz2; 1785 - sha256 = "100hljpkml6dfk4rw2gpb78z8gkdv3nqlyjiwyrpv71f4dqpjrd3"; 1786 }; 1787 buildInputs = [pkgconfig fontsproto libpciaccess randrproto renderproto xextproto xorgserver xproto ]; 1788 })) // {inherit fontsproto libpciaccess randrproto renderproto xextproto xorgserver xproto ;}; 1789 1790 xf86videovmware = (stdenv.mkDerivation ((if overrides ? xf86videovmware then overrides.xf86videovmware else x: x) { 1791 - name = "xf86-video-vmware-10.16.8"; 1792 builder = ./builder.sh; 1793 src = fetchurl { 1794 - url = mirror://xorg/X11R7.5/src/everything/xf86-video-vmware-10.16.8.tar.bz2; 1795 - sha256 = "01yslyg4d16baw11zdnq453bm7ydya7wpn2n02dlbxwlina46r4m"; 1796 }; 1797 buildInputs = [pkgconfig fontsproto libpciaccess randrproto renderproto videoproto xextproto xineramaproto xorgserver xproto ]; 1798 })) // {inherit fontsproto libpciaccess randrproto renderproto videoproto xextproto xineramaproto xorgserver xproto ;}; ··· 1886 }; 1887 buildInputs = [pkgconfig ]; 1888 })) // {inherit ;}; 1889 1890 xinput = (stdenv.mkDerivation ((if overrides ? xinput then overrides.xinput else x: x) { 1891 name = "xinput-1.5.0"; ··· 1998 })) // {inherit ;}; 1999 2000 xorgserver = (stdenv.mkDerivation ((if overrides ? xorgserver then overrides.xorgserver else x: x) { 2001 - name = "xorg-server-1.7.3"; 2002 builder = ./builder.sh; 2003 src = fetchurl { 2004 - url = mirror://xorg/individual/xserver/xorg-server-1.7.3.tar.bz2; 2005 - sha256 = "1d1dkidb8bpnws8akihy8wfxqqz055jpng602mvcf3q3rl9l2r2b"; 2006 }; 2007 buildInputs = [pkgconfig bigreqsproto damageproto dbus fixesproto fontsproto hal inputproto kbproto libdrm openssl libpciaccess perl pixman randrproto renderproto libX11 libXau libXaw xcmiscproto libXdmcp xextproto libXfixes libXfont libxkbfile libXmu libXpm xproto libXrender libXres libXt xtrans libXv ]; 2008 })) // {inherit bigreqsproto damageproto dbus fixesproto fontsproto hal inputproto kbproto libdrm openssl libpciaccess perl pixman randrproto renderproto libX11 libXau libXaw xcmiscproto libXdmcp xextproto libXfixes libXfont libxkbfile libXmu libXpm xproto libXrender libXres libXt xtrans libXv ;};
··· 68 })) // {inherit ;}; 69 70 dri2proto = (stdenv.mkDerivation ((if overrides ? dri2proto then overrides.dri2proto else x: x) { 71 + name = "dri2proto-2.2"; 72 builder = ./builder.sh; 73 src = fetchurl { 74 + url = mirror://xorg/individual/proto/dri2proto-2.2.tar.bz2; 75 + sha256 = "18djh2vy6z67hl1v63wc1kw7q35s92ixj5p2lffpshz4zq7ralpk"; 76 }; 77 buildInputs = [pkgconfig ]; 78 })) // {inherit ;}; ··· 478 })) // {inherit ;}; 479 480 glproto = (stdenv.mkDerivation ((if overrides ? glproto then overrides.glproto else x: x) { 481 + name = "glproto-1.4.11"; 482 builder = ./builder.sh; 483 src = fetchurl { 484 + url = mirror://xorg/individual/proto/glproto-1.4.11.tar.bz2; 485 + sha256 = "0lclh6fnz6k5xqbqarsvzx6sg7gjkprg27k7797xn0agsy4isj7y"; 486 }; 487 buildInputs = [pkgconfig ]; 488 })) // {inherit ;}; ··· 868 })) // {inherit xproto zlib ;}; 869 870 libpciaccess = (stdenv.mkDerivation ((if overrides ? libpciaccess then overrides.libpciaccess else x: x) { 871 + name = "libpciaccess-0.11.0"; 872 builder = ./builder.sh; 873 src = fetchurl { 874 + url = mirror://xorg/individual/lib/libpciaccess-0.11.0.tar.bz2; 875 + sha256 = "1avx3kn44lk3xs49q8bqh8hqi08x0inab2zxlrk3rj2nnq9bwf3f"; 876 }; 877 buildInputs = [pkgconfig zlib ]; 878 })) // {inherit zlib ;}; ··· 958 })) // {inherit libfontenc freetype xproto zlib ;}; 959 960 pixman = (stdenv.mkDerivation ((if overrides ? pixman then overrides.pixman else x: x) { 961 + name = "pixman-0.16.4"; 962 builder = ./builder.sh; 963 src = fetchurl { 964 + url = mirror://xorg/individual/lib/pixman-0.16.4.tar.bz2; 965 + sha256 = "07ndvwxmkrc4zyxpi8ndjmyj509cm411ajrc6qj6clr5y5c96vi9"; 966 }; 967 buildInputs = [pkgconfig perl ]; 968 })) // {inherit perl ;}; ··· 1248 })) // {inherit ;}; 1249 1250 xeyes = (stdenv.mkDerivation ((if overrides ? xeyes then overrides.xeyes else x: x) { 1251 + name = "xeyes-1.1.0"; 1252 builder = ./builder.sh; 1253 src = fetchurl { 1254 + url = mirror://xorg/individual/app/xeyes-1.1.0.tar.bz2; 1255 + sha256 = "01ymjkdhz0jrra47l1cqc4vkklaw3frmzgwwvq6jyvm0zr0rcswr"; 1256 }; 1257 buildInputs = [pkgconfig libX11 libXext libXmu libXrender libXt ]; 1258 })) // {inherit libX11 libXext libXmu libXrender libXt ;}; ··· 1308 })) // {inherit inputproto randrproto xorgserver xproto ;}; 1309 1310 xf86inputevdev = (stdenv.mkDerivation ((if overrides ? xf86inputevdev then overrides.xf86inputevdev else x: x) { 1311 + name = "xf86-input-evdev-2.3.2"; 1312 builder = ./builder.sh; 1313 src = fetchurl { 1314 + url = mirror://xorg/individual/driver/xf86-input-evdev-2.3.2.tar.bz2; 1315 + sha256 = "0a2y26fq3h1j5c16r8lhparvkr2rbah9f4jc70zcqfq1pmlz96q2"; 1316 }; 1317 buildInputs = [pkgconfig xorgserver xproto ]; 1318 })) // {inherit xorgserver xproto ;}; ··· 1518 })) // {inherit fontsproto libpciaccess randrproto renderproto videoproto xextproto xorgserver xproto ;}; 1519 1520 xf86videointel = (stdenv.mkDerivation ((if overrides ? xf86videointel then overrides.xf86videointel else x: x) { 1521 + name = "xf86-video-intel-2.10.0"; 1522 builder = ./builder.sh; 1523 src = fetchurl { 1524 + url = mirror://xorg/individual/driver/xf86-video-intel-2.10.0.tar.bz2; 1525 + sha256 = "1as8zk6b74q9d3ynq0i89z9vzx79lzz88azjypb7rnwkvj8xcvg4"; 1526 }; 1527 buildInputs = [pkgconfig dri2proto fontsproto glproto libdrm libpciaccess randrproto renderproto libX11 libXext xextproto xf86driproto libXfixes xineramaproto xorgserver xproto libXvMC ]; 1528 })) // {inherit dri2proto fontsproto glproto libdrm libpciaccess randrproto renderproto libX11 libXext xextproto xf86driproto libXfixes xineramaproto xorgserver xproto libXvMC ;}; ··· 1778 })) // {inherit randrproto videoproto xorgserver xproto ;}; 1779 1780 xf86videovesa = (stdenv.mkDerivation ((if overrides ? xf86videovesa then overrides.xf86videovesa else x: x) { 1781 + name = "xf86-video-vesa-2.3.0"; 1782 builder = ./builder.sh; 1783 src = fetchurl { 1784 + url = mirror://xorg/individual/driver/xf86-video-vesa-2.3.0.tar.bz2; 1785 + sha256 = "0yhdj39d8rfv2n4i52dg7cg1rsrclagn7rjs3pc3jdajjh75mn4f"; 1786 }; 1787 buildInputs = [pkgconfig fontsproto libpciaccess randrproto renderproto xextproto xorgserver xproto ]; 1788 })) // {inherit fontsproto libpciaccess randrproto renderproto xextproto xorgserver xproto ;}; 1789 1790 xf86videovmware = (stdenv.mkDerivation ((if overrides ? xf86videovmware then overrides.xf86videovmware else x: x) { 1791 + name = "xf86-video-vmware-10.16.9"; 1792 builder = ./builder.sh; 1793 src = fetchurl { 1794 + url = mirror://xorg/individual/driver/xf86-video-vmware-10.16.9.tar.bz2; 1795 + sha256 = "1hcbgqb7lfcfwrvdscg9jzh1g5vhvc4vsj1sjsywnds8nm2mwnl3"; 1796 }; 1797 buildInputs = [pkgconfig fontsproto libpciaccess randrproto renderproto videoproto xextproto xineramaproto xorgserver xproto ]; 1798 })) // {inherit fontsproto libpciaccess randrproto renderproto videoproto xextproto xineramaproto xorgserver xproto ;}; ··· 1886 }; 1887 buildInputs = [pkgconfig ]; 1888 })) // {inherit ;}; 1889 + 1890 + xinit = (stdenv.mkDerivation ((if overrides ? xinit then overrides.xinit else x: x) { 1891 + name = "xinit-1.2.0"; 1892 + builder = ./builder.sh; 1893 + src = fetchurl { 1894 + url = mirror://xorg/individual/app/xinit-1.2.0.tar.bz2; 1895 + sha256 = "0zq8cpxm1ws81xj39d0wfv29f1nj7s3pmjdashr32x918hx6cqdb"; 1896 + }; 1897 + buildInputs = [pkgconfig libX11 ]; 1898 + })) // {inherit libX11 ;}; 1899 1900 xinput = (stdenv.mkDerivation ((if overrides ? xinput then overrides.xinput else x: x) { 1901 name = "xinput-1.5.0"; ··· 2008 })) // {inherit ;}; 2009 2010 xorgserver = (stdenv.mkDerivation ((if overrides ? xorgserver then overrides.xorgserver else x: x) { 2011 + name = "xorg-server-1.7.4"; 2012 builder = ./builder.sh; 2013 src = fetchurl { 2014 + url = mirror://xorg/individual/xserver/xorg-server-1.7.4.tar.bz2; 2015 + sha256 = "1y1k7qjyl1bjjkfmhgci7vd7zqm65dkh966dx0hlry66yari3v5q"; 2016 }; 2017 buildInputs = [pkgconfig bigreqsproto damageproto dbus fixesproto fontsproto hal inputproto kbproto libdrm openssl libpciaccess perl pixman randrproto renderproto libX11 libXau libXaw xcmiscproto libXdmcp xextproto libXfixes libXfont libxkbfile libXmu libXpm xproto libXrender libXres libXt xtrans libXv ]; 2018 })) // {inherit bigreqsproto damageproto dbus fixesproto fontsproto hal inputproto kbproto libdrm openssl libpciaccess perl pixman randrproto renderproto libX11 libXau libXaw xcmiscproto libXdmcp xextproto libXfixes libXfont libxkbfile libXmu libXpm xproto libXrender libXres libXt xtrans libXv ;};
+1 -1
pkgs/servers/x11/xorg/extra.list
··· 2 http://xcb.freedesktop.org/dist/xcb-util-0.3.6.tar.bz2 3 http://xcb.freedesktop.org/dist/libxcb-1.4.tar.bz2 4 http://xcb.freedesktop.org/dist/libpthread-stubs-0.3.tar.bz2 5 - mirror://xorg/individual/lib/pixman-0.16.2.tar.bz2
··· 2 http://xcb.freedesktop.org/dist/xcb-util-0.3.6.tar.bz2 3 http://xcb.freedesktop.org/dist/libxcb-1.4.tar.bz2 4 http://xcb.freedesktop.org/dist/libpthread-stubs-0.3.tar.bz2 5 + mirror://xorg/individual/lib/pixman-0.16.4.tar.bz2
+2 -1
pkgs/servers/x11/xorg/old.list
··· 1 mirror://xorg/individual/app/twm-1.0.4.tar.bz2 2 mirror://xorg/individual/app/xclock-1.0.4.tar.bz2 3 - mirror://xorg/individual/app/xeyes-1.0.991.tar.bz2 4 mirror://xorg/individual/app/xfs-1.1.0.tar.bz2 5 mirror://xorg/individual/app/xmessage-1.0.2.tar.bz2 6 mirror://xorg/individual/lib/libXp-1.0.0.tar.bz2 7 mirror://xorg/individual/lib/libXxf86misc-1.0.2.tar.bz2
··· 1 mirror://xorg/individual/app/twm-1.0.4.tar.bz2 2 mirror://xorg/individual/app/xclock-1.0.4.tar.bz2 3 + mirror://xorg/individual/app/xeyes-1.1.0.tar.bz2 4 mirror://xorg/individual/app/xfs-1.1.0.tar.bz2 5 + mirror://xorg/individual/app/xinit-1.2.0.tar.bz2 6 mirror://xorg/individual/app/xmessage-1.0.2.tar.bz2 7 mirror://xorg/individual/lib/libXp-1.0.0.tar.bz2 8 mirror://xorg/individual/lib/libXxf86misc-1.0.2.tar.bz2
+8 -9
pkgs/servers/x11/xorg/tarballs-7.5.list
··· 4 mirror://xorg/X11R7.5/src/everything/compositeproto-0.4.1.tar.bz2 5 mirror://xorg/X11R7.5/src/everything/damageproto-1.2.0.tar.bz2 6 mirror://xorg/X11R7.5/src/everything/dmxproto-2.3.tar.bz2 7 - mirror://xorg/X11R7.5/src/everything/dri2proto-2.1.tar.bz2 8 mirror://xorg/X11R7.5/src/everything/encodings-1.0.3.tar.bz2 9 mirror://xorg/X11R7.5/src/everything/fixesproto-4.1.1.tar.bz2 10 mirror://xorg/X11R7.5/src/everything/font-adobe-100dpi-1.0.1.tar.bz2 ··· 44 mirror://xorg/X11R7.5/src/everything/font-util-1.1.1.tar.bz2 45 mirror://xorg/X11R7.5/src/everything/font-winitzki-cyrillic-1.0.1.tar.bz2 46 mirror://xorg/X11R7.5/src/everything/font-xfree86-type1-1.0.2.tar.bz2 47 - mirror://xorg/X11R7.5/src/everything/glproto-1.4.10.tar.bz2 48 mirror://xorg/X11R7.5/src/everything/iceauth-1.0.3.tar.bz2 49 mirror://xorg/X11R7.5/src/everything/inputproto-2.0.tar.bz2 50 mirror://xorg/X11R7.5/src/everything/kbproto-1.0.4.tar.bz2 ··· 53 mirror://xorg/X11R7.5/src/everything/libfontenc-1.0.5.tar.bz2 54 mirror://xorg/X11R7.5/src/everything/libFS-1.0.2.tar.bz2 55 mirror://xorg/X11R7.5/src/everything/libICE-1.0.6.tar.bz2 56 - mirror://xorg/X11R7.5/src/everything/libpciaccess-0.10.9.tar.bz2 57 mirror://xorg/X11R7.5/src/everything/libSM-1.1.1.tar.bz2 58 mirror://xorg/X11R7.5/src/everything/libWindowsWM-1.0.1.tar.bz2 59 mirror://xorg/X11R7.5/src/everything/libX11-1.3.2.tar.bz2 ··· 114 mirror://xorg/X11R7.5/src/everything/xf86driproto-2.1.0.tar.bz2 115 mirror://xorg/X11R7.5/src/everything/xf86-input-acecad-1.4.0.tar.bz2 116 mirror://xorg/X11R7.5/src/everything/xf86-input-aiptek-1.3.0.tar.bz2 117 - mirror://xorg/individual/driver/xf86-input-evdev-2.3.1.tar.bz2 118 - mirror://xorg/X11R7.5/src/everything/xf86-input-evdev-2.3.0.tar.bz2 119 mirror://xorg/X11R7.5/src/everything/xf86-input-joystick-1.4.99.2.tar.bz2 120 mirror://xorg/X11R7.5/src/everything/xf86-input-keyboard-1.4.0.tar.bz2 121 mirror://xorg/X11R7.5/src/everything/xf86-input-mouse-1.5.0.tar.bz2 ··· 135 mirror://xorg/X11R7.5/src/everything/xf86-video-glint-1.2.4.tar.bz2 136 mirror://xorg/X11R7.5/src/everything/xf86-video-i128-1.3.3.tar.bz2 137 mirror://xorg/X11R7.5/src/everything/xf86-video-i740-1.3.2.tar.bz2 138 - mirror://xorg/X11R7.5/src/everything/xf86-video-intel-2.9.1.tar.bz2 139 mirror://xorg/X11R7.5/src/everything/xf86-video-mach64-6.8.2.tar.bz2 140 mirror://xorg/X11R7.5/src/everything/xf86-video-mga-1.4.11.tar.bz2 141 mirror://xorg/X11R7.5/src/everything/xf86-video-neomagic-1.2.4.tar.bz2 ··· 161 mirror://xorg/X11R7.5/src/everything/xf86-video-trident-1.3.3.tar.bz2 162 mirror://xorg/X11R7.5/src/everything/xf86-video-tseng-1.2.3.tar.bz2 163 mirror://xorg/X11R7.5/src/everything/xf86-video-v4l-0.2.0.tar.bz2 164 - mirror://xorg/X11R7.5/src/everything/xf86-video-vesa-2.2.1.tar.bz2 165 - mirror://xorg/X11R7.5/src/everything/xf86-video-vmware-10.16.8.tar.bz2 166 mirror://xorg/X11R7.5/src/everything/xf86-video-voodoo-1.2.3.tar.bz2 167 mirror://xorg/X11R7.5/src/everything/xf86-video-wsfb-0.3.0.tar.bz2 168 mirror://xorg/X11R7.5/src/everything/xf86-video-xgi-1.5.1.tar.bz2 ··· 180 mirror://xorg/X11R7.5/src/everything/xlsclients-1.0.2.tar.bz2 181 mirror://xorg/X11R7.5/src/everything/xmodmap-1.0.4.tar.bz2 182 mirror://xorg/X11R7.5/src/everything/xorg-docs-1.5.tar.bz2 183 - mirror://xorg/individual/xserver/xorg-server-1.7.3.tar.bz2 184 mirror://xorg/X11R7.5/src/everything/xorg-sgml-doctools-1.3.tar.bz2 185 mirror://xorg/X11R7.5/src/everything/xpr-1.0.3.tar.bz2 186 mirror://xorg/X11R7.5/src/everything/xprop-1.1.0.tar.bz2
··· 4 mirror://xorg/X11R7.5/src/everything/compositeproto-0.4.1.tar.bz2 5 mirror://xorg/X11R7.5/src/everything/damageproto-1.2.0.tar.bz2 6 mirror://xorg/X11R7.5/src/everything/dmxproto-2.3.tar.bz2 7 + mirror://xorg/individual/proto/dri2proto-2.2.tar.bz2 8 mirror://xorg/X11R7.5/src/everything/encodings-1.0.3.tar.bz2 9 mirror://xorg/X11R7.5/src/everything/fixesproto-4.1.1.tar.bz2 10 mirror://xorg/X11R7.5/src/everything/font-adobe-100dpi-1.0.1.tar.bz2 ··· 44 mirror://xorg/X11R7.5/src/everything/font-util-1.1.1.tar.bz2 45 mirror://xorg/X11R7.5/src/everything/font-winitzki-cyrillic-1.0.1.tar.bz2 46 mirror://xorg/X11R7.5/src/everything/font-xfree86-type1-1.0.2.tar.bz2 47 + mirror://xorg/individual/proto/glproto-1.4.11.tar.bz2 48 mirror://xorg/X11R7.5/src/everything/iceauth-1.0.3.tar.bz2 49 mirror://xorg/X11R7.5/src/everything/inputproto-2.0.tar.bz2 50 mirror://xorg/X11R7.5/src/everything/kbproto-1.0.4.tar.bz2 ··· 53 mirror://xorg/X11R7.5/src/everything/libfontenc-1.0.5.tar.bz2 54 mirror://xorg/X11R7.5/src/everything/libFS-1.0.2.tar.bz2 55 mirror://xorg/X11R7.5/src/everything/libICE-1.0.6.tar.bz2 56 + mirror://xorg/individual/lib/libpciaccess-0.11.0.tar.bz2 57 mirror://xorg/X11R7.5/src/everything/libSM-1.1.1.tar.bz2 58 mirror://xorg/X11R7.5/src/everything/libWindowsWM-1.0.1.tar.bz2 59 mirror://xorg/X11R7.5/src/everything/libX11-1.3.2.tar.bz2 ··· 114 mirror://xorg/X11R7.5/src/everything/xf86driproto-2.1.0.tar.bz2 115 mirror://xorg/X11R7.5/src/everything/xf86-input-acecad-1.4.0.tar.bz2 116 mirror://xorg/X11R7.5/src/everything/xf86-input-aiptek-1.3.0.tar.bz2 117 + mirror://xorg/individual/driver/xf86-input-evdev-2.3.2.tar.bz2 118 mirror://xorg/X11R7.5/src/everything/xf86-input-joystick-1.4.99.2.tar.bz2 119 mirror://xorg/X11R7.5/src/everything/xf86-input-keyboard-1.4.0.tar.bz2 120 mirror://xorg/X11R7.5/src/everything/xf86-input-mouse-1.5.0.tar.bz2 ··· 134 mirror://xorg/X11R7.5/src/everything/xf86-video-glint-1.2.4.tar.bz2 135 mirror://xorg/X11R7.5/src/everything/xf86-video-i128-1.3.3.tar.bz2 136 mirror://xorg/X11R7.5/src/everything/xf86-video-i740-1.3.2.tar.bz2 137 + mirror://xorg/individual/driver/xf86-video-intel-2.10.0.tar.bz2 138 mirror://xorg/X11R7.5/src/everything/xf86-video-mach64-6.8.2.tar.bz2 139 mirror://xorg/X11R7.5/src/everything/xf86-video-mga-1.4.11.tar.bz2 140 mirror://xorg/X11R7.5/src/everything/xf86-video-neomagic-1.2.4.tar.bz2 ··· 160 mirror://xorg/X11R7.5/src/everything/xf86-video-trident-1.3.3.tar.bz2 161 mirror://xorg/X11R7.5/src/everything/xf86-video-tseng-1.2.3.tar.bz2 162 mirror://xorg/X11R7.5/src/everything/xf86-video-v4l-0.2.0.tar.bz2 163 + mirror://xorg/individual/driver/xf86-video-vesa-2.3.0.tar.bz2 164 + mirror://xorg/individual/driver/xf86-video-vmware-10.16.9.tar.bz2 165 mirror://xorg/X11R7.5/src/everything/xf86-video-voodoo-1.2.3.tar.bz2 166 mirror://xorg/X11R7.5/src/everything/xf86-video-wsfb-0.3.0.tar.bz2 167 mirror://xorg/X11R7.5/src/everything/xf86-video-xgi-1.5.1.tar.bz2 ··· 179 mirror://xorg/X11R7.5/src/everything/xlsclients-1.0.2.tar.bz2 180 mirror://xorg/X11R7.5/src/everything/xmodmap-1.0.4.tar.bz2 181 mirror://xorg/X11R7.5/src/everything/xorg-docs-1.5.tar.bz2 182 + mirror://xorg/individual/xserver/xorg-server-1.7.4.tar.bz2 183 mirror://xorg/X11R7.5/src/everything/xorg-sgml-doctools-1.3.tar.bz2 184 mirror://xorg/X11R7.5/src/everything/xpr-1.0.3.tar.bz2 185 mirror://xorg/X11R7.5/src/everything/xprop-1.1.0.tar.bz2
+6 -1
pkgs/stdenv/adapters.nix
··· 200 # Get rid of everything that isn't a gcno file or a C source 201 # file. This also includes the gcda files; we're not 202 # interested in coverage resulting from the package's own test 203 - # suite. 204 cleanupBuildDir = 205 '' 206 find $out/.build/ -type f -a ! \ 207 \( -name "*.c" -o -name "*.h" -o -name "*.gcno" \) \ 208 | xargs rm -f -- 209 ''; 210 } stdenv; 211
··· 200 # Get rid of everything that isn't a gcno file or a C source 201 # file. This also includes the gcda files; we're not 202 # interested in coverage resulting from the package's own test 203 + # suite. Also strip the `.tmp_' prefix from gcno files. (The 204 + # Linux kernel creates these.) 205 cleanupBuildDir = 206 '' 207 find $out/.build/ -type f -a ! \ 208 \( -name "*.c" -o -name "*.h" -o -name "*.gcno" \) \ 209 | xargs rm -f -- 210 + 211 + for i in $(find $out/.build/ -name ".tmp_*.gcno"); do 212 + mv "$i" "$(echo $i | sed s/.tmp_//)" 213 + done 214 ''; 215 } stdenv; 216
+18 -5
pkgs/tools/archivers/unrar/default.nix
··· 1 {stdenv, fetchurl}: 2 stdenv.mkDerivation { 3 - name = "unrar-3.7.6"; 4 5 src = fetchurl { 6 - url = http://www.rarlab.com/rar/unrarsrc-3.7.6.tar.gz; 7 - sha256 = "0inzy0jlwqm18i6lq17aq4n2baqqlbjyr6incw4s9cxrvmjq51ls"; 8 }; 9 10 - makeFlags = "-f makefile.unix"; 11 12 - installPhase = "mkdir -p \${out}/bin/ ; cp unrar \${out}/bin/;"; 13 14 buildInputs = []; 15 }
··· 1 {stdenv, fetchurl}: 2 stdenv.mkDerivation { 3 + name = "unrar-3.9.7"; 4 5 src = fetchurl { 6 + url = http://www.rarlab.com/rar/unrarsrc-3.9.7.tar.gz; 7 + sha256 = "101w7fgfr5biyic8gj0km5aqi4xj8dikh4aa0rx0qvg8bjp19wb4"; 8 }; 9 10 + # Add a missing objects to the library 11 + #patchPhase = '' 12 + # sed -i 's/^\(LIB_OBJ=.*\)/\1 recvol.o rs.o/' makefile.unix 13 + #''; 14 + 15 + buildPhase = '' 16 + make -f makefile.unix unrar 17 + rm *.o 18 + make -f makefile.unix lib CXXFLAGS="-fPIC -O2 -DSILENT"; 19 + ''; 20 21 + installPhase = '' 22 + mkdir -p $out/bin $out/lib 23 + cp unrar $out/bin 24 + cp libunrar.so $out/lib 25 + ''; 26 27 buildInputs = []; 28 }
+14
pkgs/tools/compression/ncompress/builder.sh
···
··· 1 + source $stdenv/setup 2 + installFlags="PREFIX=$out" 3 + 4 + preBuild() { 5 + cp Makefile.def Makefile 6 + } 7 + 8 + postInstall() { 9 + rm $out/bin/uncompress* $out/bin/zcat* 10 + ln -s compress $out/bin/uncompress 11 + ln -s compress $out/bin/zcat 12 + } 13 + 14 + genericBuild
+18
pkgs/tools/compression/ncompress/default.nix
···
··· 1 + {stdenv, fetchurl}: 2 + 3 + stdenv.mkDerivation { 4 + name = "ncompress-4.2.4"; 5 + 6 + builder = ./builder.sh; 7 + 8 + patches = [ ./makefile.patch ]; 9 + 10 + src = fetchurl { 11 + url = mirror://sourceforge/project/ncompress/ncompress%20%28bugfixes%29/ncompress-4.2.4.2/ncompress-4.2.4.2.tar.gz; 12 + sha256 = "38158c792b769fe23c74f8d3ea0e27569a9b1d21b53a4faf8acbb1ac03743221"; 13 + }; 14 + 15 + meta = { 16 + homepage = http://sourceforge.net/projects/ncompress/files/ncompress%20%28bugfixes%29/ncompress-4.2.4.2/ncompress-4.2.4.2.tar.gz/download; 17 + }; 18 + }
+31
pkgs/tools/compression/ncompress/makefile.patch
···
··· 1 + diff -Naur ncompress-4.2.4.2.orig/Makefile.def ncompress-4.2.4.2/Makefile.def 2 + --- ncompress-4.2.4.2.orig/Makefile.def 2007-09-06 22:28:42.000000000 -0500 3 + +++ ncompress-4.2.4.2/Makefile.def 2009-08-18 12:30:53.000000000 -0500 4 + @@ -3,14 +3,16 @@ 5 + # C complier 6 + #CC=cc 7 + 8 + +PREFIX=/usr/local 9 + + 10 + # Install prefix 11 + DESTDIR= 12 + 13 + # Install directory for binarys 14 + -BINDIR=/usr/local/bin 15 + +BINDIR=$(PREFIX)/bin 16 + 17 + # Install directory for manual 18 + -MANDIR=/usr/local/man/man1 19 + +MANDIR=$(PREFIX)/man/man1 20 + 21 + # compiler options: 22 + # options is a collection of: 23 + @@ -31,7 +33,7 @@ 24 + # -DDEF_ERRNO=1 Define error (not defined in errno.h). 25 + # -DMAXSEG_64K=1 -BITS=16 Support segment processsor like 80286. 26 + # 27 + -options= $(CFLAGS) $(CPPFLAGS) -DDIRENT=1 -DUSERMEM=800000 -DREGISTERS=3 28 + +options= $(CFLAGS) $(CPPFLAGS) -DDIRENT=1 -DUSERMEM=800000 -DREGISTERS=3 -DNOFUNCDEF=1 29 + 30 + # libary options 31 + LBOPT= $(LDFLAGS)
+17 -2
pkgs/tools/graphics/netpbm/default.nix
··· 1 - {stdenv, fetchsvn, libjpeg, libpng, flex, zlib, perl, libxml2 }: 2 3 stdenv.mkDerivation { 4 name = "netpbm-advanced-844"; ··· 9 sha256 = "8729e63bb5cc9fd500a68d5aed91fa4b973ebc068e3014b47390ba7b4d85968e"; 10 }; 11 12 NIX_CFLAGS_COMPILE = if stdenv.system == "x86_64-linux" then "-fPIC" else ""; 13 14 - buildInputs = [ flex zlib perl libpng libjpeg libxml2 ]; 15 16 configurePhase = "cp config.mk.in config.mk"; 17 18 installPhase = '' 19 make package pkgdir=$PWD/netpbmpkg 20 # Pass answers to the script questions ··· 31 $out/man 32 N 33 EOF 34 ''; 35 36 meta = {
··· 1 + {stdenv, fetchsvn, libjpeg, libpng, flex, zlib, perl, libxml2, makeWrapper }: 2 3 stdenv.mkDerivation { 4 name = "netpbm-advanced-844"; ··· 9 sha256 = "8729e63bb5cc9fd500a68d5aed91fa4b973ebc068e3014b47390ba7b4d85968e"; 10 }; 11 12 + patches = [ ./rgbpaths.patch ]; 13 + 14 NIX_CFLAGS_COMPILE = if stdenv.system == "x86_64-linux" then "-fPIC" else ""; 15 16 + buildInputs = [ flex zlib perl libpng libjpeg libxml2 makeWrapper ]; 17 18 configurePhase = "cp config.mk.in config.mk"; 19 20 + preBuild = '' 21 + export LDFLAGS=-lz 22 + substituteInPlace "pm_config.in.h" \ 23 + --subst-var-by "rgbPath1" "$out/lib/rgb.txt" \ 24 + --subst-var-by "rgbPath2" "/var/empty/rgb.txt" \ 25 + --subst-var-by "rgbPath3" "/var/empty/rgb.txt" 26 + ''; 27 + 28 installPhase = '' 29 make package pkgdir=$PWD/netpbmpkg 30 # Pass answers to the script questions ··· 41 $out/man 42 N 43 EOF 44 + 45 + # wrap any scripts that expect other programs in the package to be in their PATH 46 + for prog in ppmquant; do 47 + wrapProgram "$out/bin/$prog" --prefix PATH : "$out/bin" 48 + done 49 ''; 50 51 meta = {
+11 -1
pkgs/tools/misc/grub/1.9x.nix
··· 16 17 buildInputs = [ bison ncurses libusb freetype ]; 18 19 - patchPhase = 20 '' gunzip < "${unifont_bdf}" > "unifont.bdf" 21 sed -i "configure" \ 22 -e "s|/usr/src/unifont.bdf|$PWD/unifont.bdf|g"
··· 16 17 buildInputs = [ bison ncurses libusb freetype ]; 18 19 + patches = 20 + [ # The udev rules for LVM create symlinks in /dev/mapper rathe 21 + # than device nodes, causing GRUB to fail to recognize LVM 22 + # volumes. See 23 + # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550704 24 + # This ugly workaround makes `find_root_device' use stat() on 25 + # files in /dev/mapper instead of lstat(). 26 + ./device-mapper-symlinks.patch 27 + ]; 28 + 29 + postPatch = 30 '' gunzip < "${unifont_bdf}" > "unifont.bdf" 31 sed -i "configure" \ 32 -e "s|/usr/src/unifont.bdf|$PWD/unifont.bdf|g"
+28
pkgs/tools/misc/grub/device-mapper-symlinks.patch
···
··· 1 + Only in grub-1.97.1-orig/: grub-1.97.1 2 + diff -rc -x '*~' grub-1.97.1-orig/util/getroot.c grub-1.97.1/util/getroot.c 3 + *** grub-1.97.1-orig/util/getroot.c 2009-11-09 16:48:16.000000000 +0100 4 + --- grub-1.97.1/util/getroot.c 2010-01-08 00:26:12.000000000 +0100 5 + *************** 6 + *** 217,224 **** 7 + continue; 8 + 9 + if (S_ISLNK (st.st_mode)) 10 + ! /* Don't follow symbolic links. */ 11 + ! continue; 12 + 13 + if (S_ISDIR (st.st_mode)) 14 + { 15 + --- 217,229 ---- 16 + continue; 17 + 18 + if (S_ISLNK (st.st_mode)) 19 + ! { 20 + ! if (strcmp(dir, "mapper") != 0) 21 + ! /* Don't follow symbolic links. */ 22 + ! continue; 23 + ! if (stat (ent->d_name, &st) < 0) 24 + ! continue; 25 + ! } 26 + 27 + if (S_ISDIR (st.st_mode)) 28 + {
+5 -4
pkgs/tools/misc/parted/default.nix
··· 1 - { stdenv, fetchurl, devicemapper, libuuid, gettext, readline }: 2 3 stdenv.mkDerivation rec { 4 - name = "parted-1.9.0"; 5 6 src = fetchurl { 7 url = "mirror://gnu/parted/${name}.tar.gz"; 8 - sha256 = "02amqpzl8lgk247cjsbaz1nsiz9i1pbj0adx0z109h94p90i48sk"; 9 }; 10 11 buildInputs = [ libuuid gettext readline libuuid devicemapper ]; ··· 21 22 doCheck = true; 23 24 - patches = [ ./t7000-scripting.patch ]; 25 26 meta = { 27 description = "GNU Parted, a tool to create, destroy, resize, check, and copy partitions";
··· 1 + { stdenv, fetchurl, devicemapper, libuuid, gettext, readline, utillinuxng }: 2 3 stdenv.mkDerivation rec { 4 + name = "parted-2.1"; 5 6 src = fetchurl { 7 url = "mirror://gnu/parted/${name}.tar.gz"; 8 + sha256 = "1jc49lv0mglqdvrrh06vfqqmpa0cxczzmd2by6mlpxpblpgrb22a"; 9 }; 10 11 buildInputs = [ libuuid gettext readline libuuid devicemapper ]; ··· 21 22 doCheck = true; 23 24 + # The `t0400-loop-clobber-infloop.sh' test wants `mkswap'. 25 + preCheck = "export PATH=\"${utillinuxng}/sbin:$PATH\""; 26 27 meta = { 28 description = "GNU Parted, a tool to create, destroy, resize, check, and copy partitions";
-15
pkgs/tools/misc/parted/t7000-scripting.patch
··· 1 - This patch fixes the `t7000-scripting' test. See 2 - http://lists.alioth.debian.org/pipermail/parted-devel/2009-June/thread.html#2887 3 - for details. 4 - 5 - --- parted-1.9.0/tests/t7000-scripting.sh 2009-07-23 19:52:08.000000000 +0200 6 - +++ parted-1.9.0/tests/t7000-scripting.sh 2009-07-26 14:20:28.000000000 +0200 7 - @@ -28,7 +28,7 @@ EOF 8 - 9 - { emit_superuser_warning 10 - sed s/Error/Warning/ errS 11 - - printf 'Is this still acceptable to you?\nYes/No?'; } >> errI || fail=1 12 - + printf 'Is this still acceptable to you?\nYes/No? n\n'; } >> errI || fail=1 13 - 14 - for mkpart in mkpart mkpartfs; do 15 -
···
+1 -1
pkgs/tools/networking/inetutils/default.nix
··· 17 postInstall = '' 18 # XXX: These programs are normally installed setuid but since it 19 # fails, they end up being non-executable, hence this hack. 20 - chmod +x $out/bin/{ping,ping6,rcp,rlogin,rsh} 21 ''; 22 23 meta = {
··· 17 postInstall = '' 18 # XXX: These programs are normally installed setuid but since it 19 # fails, they end up being non-executable, hence this hack. 20 + chmod +x $out/bin/{ping,ping6,rcp,rlogin,rsh,traceroute} 21 ''; 22 23 meta = {
+2 -2
pkgs/tools/networking/socat/default.nix
··· 1 { stdenv, fetchurl, openssl }: 2 3 stdenv.mkDerivation rec { 4 - name = "socat-1.6.0.1"; 5 6 src = fetchurl { 7 url = "http://www.dest-unreach.org/socat/download/${name}.tar.bz2"; 8 - sha256 = "1cl7kf0rnbvjxz8vdkmdh1crd069qmz1jjw40r8bydgpn0nsh6qd"; 9 }; 10 11 buildInputs = [openssl];
··· 1 { stdenv, fetchurl, openssl }: 2 3 stdenv.mkDerivation rec { 4 + name = "socat-1.7.1.1"; 5 6 src = fetchurl { 7 url = "http://www.dest-unreach.org/socat/download/${name}.tar.bz2"; 8 + sha256 = "055a57lv2rgr6jvb76444ywhfbg9bzc9hainyk5d4cbpb4ws3pxv"; 9 }; 10 11 buildInputs = [openssl];
+79
pkgs/tools/networking/wicd/default.nix
···
··· 1 + {stdenv, fetchurl, python, pygobject, pycairo, pyGtkGlade, pythonDBus, 2 + wpa_supplicant, dhcp, wirelesstools, nettools, iproute, 3 + locale ? "C" }: 4 + 5 + # Wicd has a ncurses interface that we do not build because it depends 6 + # on urwid which has not been packaged at this time (2009-12-27). 7 + 8 + stdenv.mkDerivation rec { 9 + name = "wicd-1.6.2.2"; 10 + 11 + src = fetchurl { 12 + url = "mirror://sourceforge/wicd/files/wicd-stable/${name}/${name}.tar.bz2"; 13 + sha256 = "1gpjrlanz7rrzkchnpm1dgik333rz1fsg4c4046c5pwdfpp1crxr"; 14 + }; 15 + 16 + buildInputs = [ python ]; 17 + 18 + patches = [ ./no-var-install.patch ./pygtk.patch ./mkdir-networks.patch ]; 19 + 20 + # Should I be using pygtk's propogated build inputs? 21 + postPatch = '' 22 + sed -i "2iexport PATH=\$PATH\$\{PATH:+:\}${python}/bin:${wpa_supplicant}/sbin:${dhcp}/sbin:${wirelesstools}/sbin:${nettools}/sbin:${iproute}/sbin" in/scripts=wicd.in 23 + sed -i "3iexport PYTHONPATH=\$PYTHONPATH\$\{PYTHONPATH:+:\}$(toPythonPath $out):$(toPythonPath ${pygobject})/gtk-2.0:$(toPythonPath ${pythonDBus})" in/scripts=wicd.in 24 + sed -i "4iexport LC_ALL=\\\"${locale}\\\"" in/scripts=wicd.in 25 + sed -i "2iexport PATH=\$PATH\$\{PATH:+:\}${python}/bin" in/scripts=wicd-client.in 26 + sed -i "3iexport PYTHONPATH=\$PYTHONPATH\$\{PYTHONPATH:+:\}$(toPythonPath $out):$(toPythonPath ${pyGtkGlade})/gtk-2.0:$(toPythonPath ${pygobject})/gtk-2.0:$(toPythonPath ${pycairo}):$(toPythonPath ${pythonDBus})" in/scripts=wicd-client.in 27 + ''; 28 + 29 + configurePhase = '' 30 + python setup.py configure \ 31 + --lib=$out/lib/ \ 32 + --etc=/var/lib/wicd/ \ 33 + --share=$out/share/ \ 34 + --scripts=$out/etc/scripts/ \ 35 + --images=$out/share/pixmaps/ \ 36 + --encryption=$out/etc/encryption/templates/ \ 37 + --bin=$out/bin/ \ 38 + --sbin=$out/sbin/ \ 39 + --backends=$out/lib/backends/ \ 40 + --networks=/var/lib/wicd/configurations/ \ 41 + --resume=$out/etc/acpi/resume.d/ \ 42 + --suspend=$out/etc/acpi/suspend.d/ \ 43 + --pmutils=$out/lib/pm-utils/sleep.d/ \ 44 + --dbus=$out/etc/dbus-1/system.d/ \ 45 + --desktop=$out/share/applications/ \ 46 + --icons=$out/share/icons/hicolour/ \ 47 + --translations=$out/share/locale/ \ 48 + --autostart=$out/etc/xdg/autostart/ \ 49 + --varlib=$out/share/ \ 50 + --docdir=$out/share/doc/ \ 51 + --mandir=$out/share/man/ \ 52 + --kdedir=$out/share/autostart/ \ 53 + --python=${python}/bin/python \ 54 + --distro=nix \ 55 + --wicdgroup=users \ 56 + --no-install-init \ 57 + --no-install-kde \ 58 + --no-install-acpi \ 59 + --no-install-pmutils \ 60 + --no-install-ncurses \ 61 + ''; 62 + 63 + installPhase = ''python setup.py install --prefix=$out''; 64 + 65 + meta = { 66 + homepage = http://wicd.net/; 67 + description = "A wiredless and wired network manager"; 68 + longDescription='' 69 + A complete network connection manager 70 + Wicd supports wired and wireless networks, and capable of 71 + creating and tracking profiles for both. It has a 72 + template-based wireless encryption system, which allows the user 73 + to easily add encryption methods used. It ships with some common 74 + encryption types, such as WPA and WEP. Wicd will automatically 75 + connect at startup to any preferred network within range. 76 + ''; 77 + license="GPLv2"; 78 + }; 79 + }
+11
pkgs/tools/networking/wicd/mkdir-networks.patch
···
··· 1 + wicd normally makes the NETWORKS directory at install time, but we cannot do that, 2 + so we make it at runtime instead. 3 + 4 + --- wicd-1.6.2.2/in/scripts=wicd.in 2009-09-01 11:05:31.000000000 -0400 5 + +++ wicd-1.6.2.2/in/scripts=wicd.in 2010-01-04 18:01:57.000000000 -0500 6 + @@ -1,3 +1,5 @@ 7 + #!/bin/bash 8 + 9 + +mkdir -p %NETWORKS% 10 + + 11 + exec python -O %LIB%wicd-daemon.py $@
+21
pkgs/tools/networking/wicd/no-var-install.patch
···
··· 1 + The install tries to create files in /var. This patch removes those steps. 2 + 3 + --- wicd-1.6.2.2/setup.py 2009-09-01 11:05:31.000000000 -0400 4 + +++ wicd-1.6.2.2/setup.py 2009-12-27 21:27:57.000000000 -0500 5 + @@ -464,8 +464,6 @@ 6 + data = [ 7 + (wpath.dbus, ['other/wicd.conf']), 8 + (wpath.desktop, ['other/wicd.desktop']), 9 + - (wpath.log, []), 10 + - (wpath.etc, []), 11 + (wpath.icons + 'scalable/apps/', ['icons/scalable/wicd-client.svg']), 12 + (wpath.icons + '192x192/apps/', ['icons/192px/wicd-client.png']), 13 + (wpath.icons + '128x128/apps/', ['icons/128px/wicd-client.png']), 14 + @@ -481,7 +479,6 @@ 15 + (wpath.images, [('images/' + b) for b in os.listdir('images') if not b.startswith('.')]), 16 + (wpath.encryption, [('encryption/templates/' + b) for b in 17 + os.listdir('encryption/templates') if not b.startswith('.')]), 18 + - (wpath.networks, []), 19 + (wpath.bin, ['scripts/wicd-client', ]), 20 + (wpath.sbin, ['scripts/wicd', ]), 21 + (wpath.share, ['data/wicd.glade', ]),
+15
pkgs/tools/networking/wicd/pygtk.patch
···
··· 1 + For some reason nix's pygtk doesn't have a pygtk module so we remove the version check. 2 + If this ever changes we could remove this patch. 3 + 4 + --- wicd-1.6.2.2/wicd/wicd-client.py 2009-09-01 11:05:31.000000000 -0400 5 + +++ wicd-1.6.2.2/wicd/wicd-client.py 2009-12-28 00:22:57.000000000 -0500 6 + @@ -43,9 +43,6 @@ 7 + import atexit 8 + from dbus import DBusException 9 + 10 + -import pygtk 11 + -pygtk.require('2.0') 12 + - 13 + HAS_NOTIFY = True 14 + try: 15 + import pynotify
+26
pkgs/tools/security/ccid/default.nix
···
··· 1 + {stdenv, fetchurl, pcsclite, pkgconfig, libusb, perl}: 2 + stdenv.mkDerivation { 3 + name = "ccid-1.3.11"; 4 + 5 + src = fetchurl { 6 + url = https://alioth.debian.org/frs/download.php/3080/ccid-1.3.11.tar.bz2; 7 + sha256 = "01l9956wids087d38bprr8jqcl05j48cdp25k9q7vzran215mgzp"; 8 + }; 9 + 10 + patchPhase = '' 11 + sed -i 's,/usr/bin/env perl,${perl}/bin/perl,' src/*.pl 12 + ''; 13 + preConfigure = '' 14 + configureFlags="$configureFlags --enable-usbdropdir=$out/pcsc/drivers" 15 + ''; 16 + 17 + buildInputs = [ pcsclite pkgconfig libusb ]; 18 + 19 + meta = { 20 + description = "ccid drivers for pcsclite"; 21 + homepage = http://pcsclite.alioth.debian.org/; 22 + license = "GPLv2+"; 23 + maintainers = with stdenv.lib.maintainers; [viric]; 24 + platforms = with stdenv.lib.platforms; linux; 25 + }; 26 + }
+30
pkgs/tools/security/muscleframework/default.nix
···
··· 1 + # The tarball has different plugins in it, and as I don't need all of them, 2 + # I only build one of those in this derivation 3 + # This is an arbitrary decision, and this simplicity fit my needs. 4 + # Anyone can extend the extension to build all the plugins, or to make 5 + # different derivations for each plugin. 6 + 7 + {stdenv, fetchurl, libmusclecard, pkgconfig, pcsclite}: 8 + stdenv.mkDerivation { 9 + name = "muscleframework-mcardplugin-1.1.7"; 10 + 11 + src = fetchurl { 12 + url = https://alioth.debian.org/frs/download.php/3056/muscleframework-1.1.7.tar.gz; 13 + sha256 = "081sq25fa3k1gz0asq2995krx7pzxbfq5vx1ahsd5sbmwnplv94v"; 14 + }; 15 + 16 + preConfigure = '' 17 + cd MCardPlugin 18 + configureFlags="$configureFlags --enable-muscledropdir=$out/pcsc/services" 19 + ''; 20 + 21 + buildInputs = [ libmusclecard pkgconfig pcsclite]; 22 + 23 + meta = { 24 + description = "MUSCLE smart card framework - mcard plugin"; 25 + homepage = http://muscleplugins.alioth.debian.org/; 26 + license = "BSD"; 27 + maintainers = with stdenv.lib.maintainers; [viric]; 28 + platforms = with stdenv.lib.platforms; linux; 29 + }; 30 + }
+19
pkgs/tools/security/muscletool/default.nix
···
··· 1 + {stdenv, fetchurl, libmusclecard, pcsclite, pkgconfig }: 2 + stdenv.mkDerivation { 3 + name = "muscletool-2.1.1"; 4 + 5 + src = fetchurl { 6 + url = https://alioth.debian.org/frs/download.php/3180/muscletool-2.1.1.tar.bz2; 7 + sha256 = "11d812ijvhsaxwkr05hzxfl0n6ji9hwl5j1kv56f9gv8kyy3b9kw"; 8 + }; 9 + 10 + buildInputs = [ libmusclecard pcsclite pkgconfig ]; 11 + 12 + meta = { 13 + description = "Smart card applications for use with MUSCLE plugins"; 14 + homepage = http://muscleapps.alioth.debian.org/; 15 + license = "BSD"; 16 + maintainers = with stdenv.lib.maintainers; [viric]; 17 + platforms = with stdenv.lib.platforms; linux; 18 + }; 19 + }
+26
pkgs/tools/security/opensc/0.11.7.nix
···
··· 1 + {stdenv, fetchurl, libtool, readline, zlib, openssl, libiconv, pcsclite, libassuan, pkgconfig, 2 + libXt}: 3 + 4 + stdenv.mkDerivation rec { 5 + name = "opensc-0.11.7"; 6 + 7 + src = fetchurl { 8 + url = "http://www.opensc-project.org/files/opensc/${name}.tar.gz"; 9 + sha256 = "0781qi0bsm01wdhkb1vd3ra9wkwgyjcm2w87jb2r53msply2gavd"; 10 + }; 11 + 12 + configureFlags = [ "--enable-pcsc" "--enable-nsplugin" 13 + "--with-pcsc-provider=${pcsclite}/lib/libpcsclite.so.1" ]; 14 + 15 + buildInputs = [ libtool readline zlib openssl pcsclite libassuan pkgconfig 16 + libXt ] ++ 17 + stdenv.lib.optional (! stdenv.isLinux) libiconv; 18 + 19 + meta = { 20 + description = "Set of libraries and utilities to access smart cards"; 21 + homepage = http://www.opensc-project.org/opensc/; 22 + license = "LGPL"; 23 + maintainers = with stdenv.lib.maintainers; [viric]; 24 + platforms = with stdenv.lib.platforms; linux; 25 + }; 26 + }
+25
pkgs/tools/security/pcsclite/default.nix
···
··· 1 + {stdenv, fetchurl, hal, pkgconfig, dbus}: 2 + stdenv.mkDerivation { 3 + name = "pcsclite-1.5.5"; 4 + 5 + src = fetchurl { 6 + url = https://alioth.debian.org/frs/download.php/3082/pcsc-lite-1.5.5.tar.bz2; 7 + sha256 = "09pdf4dbzjh235zp6x7aiby266i7kmmmz6bjdyf9mzyyq7ryc785"; 8 + }; 9 + 10 + # The OS should care on preparing the drivers into this location 11 + configureFlags = [ "--enable-usbdropdir=/var/lib/pcsc/drivers" ]; 12 + 13 + preConfigure = '' 14 + configureFlags="$configureFlags --enable-confdir=$out/etc" 15 + ''; 16 + buildInputs = [ hal pkgconfig dbus ]; 17 + 18 + meta = { 19 + description = "Middleware to access a smart card using SCard API (PC/SC)"; 20 + homepage = http://pcsclite.alioth.debian.org/; 21 + license = "BSD"; 22 + maintainers = with stdenv.lib.maintainers; [viric]; 23 + platforms = with stdenv.lib.platforms; linux; 24 + }; 25 + }
+2 -2
pkgs/tools/system/fdisk/default.nix
··· 1 { fetchurl, stdenv, parted, libuuid, gettext }: 2 3 stdenv.mkDerivation rec { 4 - name = "fdisk-1.2.3"; 5 6 src = fetchurl { 7 url = "mirror://gnu/fdisk/${name}.tar.bz2"; 8 - sha256 = "04nsa0xf1m5zy45wqv88ksk3xxc86r9n8f4mj3r6gm7rz0sfiqil"; 9 }; 10 11 buildInputs = [ parted libuuid gettext ];
··· 1 { fetchurl, stdenv, parted, libuuid, gettext }: 2 3 stdenv.mkDerivation rec { 4 + name = "fdisk-1.2.4"; 5 6 src = fetchurl { 7 url = "mirror://gnu/fdisk/${name}.tar.bz2"; 8 + sha256 = "17xl8xa1cwaxcdw49m1kqwralhac2y2z8nbx7mwlf28dpplvd9p0"; 9 }; 10 11 buildInputs = [ parted libuuid gettext ];
+41
pkgs/tools/text/dos2unix/default.nix
···
··· 1 + {stdenv, fetchurl}: 2 + 3 + stdenv.mkDerivation { 4 + name = "dos2unix-2.2"; 5 + 6 + src = fetchurl { 7 + url = http://cvs.fedoraproject.org/repo/pkgs/dos2unix/dos2unix-3.1.tar.bz2/f90026a397cf787083ec2e4892c6dcdd/dos2unix-3.1.tar.bz2; 8 + md5 = "f90026a397cf787083ec2e4892c6dcdd"; 9 + }; 10 + 11 + patches = [ 12 + ./dos2unix-3.1.patch 13 + ./dos2unix-3.1-segfault.patch 14 + ./dos2unix-3.1-safeconv.patch 15 + ./dos2unix-3.1-manpage-update-57507.patch 16 + ./dos2unix-3.1-preserve-file-modes.patch 17 + ./dos2unix-3.1-tmppath.patch 18 + ./dos2unix-c-missing-arg.patch 19 + ./dos2unix-missing-proto.patch 20 + ./dos2unix-manpage.patch 21 + ./dos2unix-preserve-file-modes.patch 22 + ]; 23 + 24 + installPhase = '' 25 + ensureDir $out/bin 26 + ensureDir $out/share/man/man1 27 + install -p -m755 dos2unix $out/bin 28 + install -p -m644 dos2unix.1 $out/share/man/man1 29 + ln -s dos2unix $out/bin/mac2unix 30 + ''; 31 + 32 + buildPhase = '' 33 + rm -f dos2unix 34 + make dos2unix 35 + ''; 36 + 37 + meta = { 38 + homepage = http://unknown/; 39 + description = "dos2unix tool"; 40 + }; 41 + }
+238
pkgs/tools/text/dos2unix/dos2unix-3.1-manpage-update-57507.patch
···
··· 1 + Patch by Bill Anderson, to fix bug: 2 + https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=57507 3 + 4 + 5 + 6 + Description of Problem: 7 + 8 + The dos2unix man page examples are confusing. 9 + For instance, one piece of text mentions "c.txt", but that file 10 + isn't used in the following example. 11 + 12 + 13 + 14 + --- dos2unix-3.1/dos2unix.1 2004-09-28 03:17:29.000000000 -0600 15 + +++ dos2unix-3.1/dos2unix.1-new 2004-09-28 03:16:32.000000000 -0600 16 + @@ -1,123 +1,126 @@ 17 + .\" $$Id: dos2unix.1 2.2 1995/03/31 01:50:45 blin Exp blin $$ 18 + -.TH dos2unix 1 "dos2unix v3.0" "1995.03.31" 19 + - 20 + -.SH NAME 21 + - 22 + +.\" 23 + +.TH "dos2unix" "1" "dos2unix v3.0" "1995.03.31" "" 24 + +.SH "NAME" 25 + dos2unix \- DOS/MAC to UNIX text file format converter 26 + 27 + -.SH SYNOPSYS 28 + - 29 + -dos2unix [options] [-c convmode] [-o file ...] [-n infile outfile ...] 30 + -.PP 31 + +.SH "SYNOPSYS" 32 + +dos2unix [options] [\-c convmode] [\-o file ...] [\-n infile outfile ...] 33 + +.PP 34 + Options: 35 + -.PP 36 + -[-hkqV] [--help] [--keepdate] [--quiet] [--version] 37 + - 38 + -.SH DESCRIPTION 39 + +.PP 40 + +[\-hkqV] [\-\-help] [\-\-keepdate] [\-\-quiet] [\-\-version] 41 + 42 + -.PP 43 + +.SH "DESCRIPTION" 44 + +.PP 45 + This manual page documents dos2unix, the program that converts plain text 46 + files in DOS/MAC format to UNIX format. 47 + 48 + -.SH OPTIONS 49 + - 50 + +.SH "OPTIONS" 51 + The following options are available: 52 + -.TP 53 + -.B \-h --help 54 + +.TP 55 + +.B \-h \-\-help 56 + Print online help. 57 + 58 + -.TP 59 + -.B \-k --keepdate 60 + +.TP 61 + +.B \-k \-\-keepdate 62 + Keep the date stamp of output file same as input file. 63 + 64 + -.TP 65 + -.B \-q --quiet 66 + +.TP 67 + +.B \-q \-\-quiet 68 + Quiet mode. Suppress all warning and messages. 69 + 70 + -.TP 71 + -.B \-V --version 72 + +.TP 73 + +.B \-V \-\-version 74 + Prints version information. 75 + 76 + -.TP 77 + -.B \-c --convmode convmode 78 + -Sets conversion mode. Simulates dos2unix under SunOS. 79 + +.TP 80 + +.B \-c \-\-convmode convmode 81 + +Sets conversion mode. Where convmode is one of: 82 + +.B ASCII, 7bit, ISO, Mac 83 + +with ASCII being the default. 84 + +Simulates dos2unix under SunOS. 85 + + 86 + + 87 + 88 + -.TP 89 + -.B \-o --oldfile file ... 90 + +.TP 91 + +.B \-o \-\-oldfile file ... 92 + Old file mode. Convert the file and write output to it. The program 93 + default to run in this mode. Wildcard names may be used. 94 + 95 + -.TP 96 + -.B \-n --newfile infile outfile ... 97 + +.TP 98 + +.B \-n \-\-newfile infile outfile ... 99 + New file mode. Convert the infile and write output to outfile. File names 100 + must be given in pairs and wildcard names should NOT be used or you WILL 101 + lost your files. 102 + 103 + -.SH EXAMPLES 104 + - 105 + -.LP 106 + +.SH "EXAMPLES" 107 + +.LP 108 + Get input from stdin and write output to stdout. 109 + -.IP 110 + +.IP 111 + .B dos2unix 112 + 113 + -.LP 114 + +.LP 115 + Convert and replace a.txt. Convert and replace b.txt. 116 + -.IP 117 + +.IP 118 + .B dos2unix a.txt b.txt 119 + -.IP 120 + -.B dos2unix -o a.txt b.txt 121 + +.IP 122 + +.B dos2unix \-o a.txt b.txt 123 + 124 + -.LP 125 + +.LP 126 + Convert and replace a.txt in ASCII conversion mode. 127 + +.IP 128 + +.B dos2unix a.txt \-c iso b.txt 129 + + 130 + +.LP 131 + Convert and replace b.txt in ISO conversion mode. 132 + +.IP 133 + +.B dos2unix \-c ascii a.txt \-c iso b.txt 134 + + 135 + +.LP 136 + Convert c.txt from Mac to Unix ascii format. 137 + -.IP 138 + -.B dos2unix a.txt -c iso b.txt 139 + -.IP 140 + -.B dos2unix -c ascii a.txt -c iso b.txt 141 + -.IP 142 + -.B dos2unix -c mac a.txt b.txt 143 + 144 + -.LP 145 + +.IP 146 + +.B dos2unix \-c mac c.txt b.txt 147 + + 148 + +.LP 149 + Convert and replace a.txt while keeping original date stamp. 150 + -.IP 151 + -.B dos2unix -k a.txt 152 + -.IP 153 + -.B dos2unix -k -o a.txt 154 + +.IP 155 + +.B dos2unix \-k a.txt 156 + +.IP 157 + +.B dos2unix \-k \-o a.txt 158 + 159 + -.LP 160 + +.LP 161 + Convert a.txt and write to e.txt. 162 + -.IP 163 + -.B dos2unix -n a.txt e.txt 164 + +.IP 165 + +.B dos2unix \-n a.txt e.txt 166 + 167 + -.LP 168 + +.LP 169 + Convert a.txt and write to e.txt, keep date stamp of e.txt same as a.txt. 170 + -.IP 171 + -.B dos2unix -k -n a.txt e.txt 172 + +.IP 173 + +.B dos2unix \-k \-n a.txt e.txt 174 + 175 + -.LP 176 + +.LP 177 + Convert and replace a.txt. Convert b.txt and write to e.txt. 178 + -.IP 179 + -.B dos2unix a.txt -n b.txt e.txt 180 + -.IP 181 + -.B dos2unix -o a.txt -n b.txt e.txt 182 + +.IP 183 + +.B dos2unix a.txt \-n b.txt e.txt 184 + +.IP 185 + +.B dos2unix \-o a.txt \-n b.txt e.txt 186 + 187 + -.LP 188 + +.LP 189 + Convert c.txt and write to e.txt. Convert and replace a.txt. 190 + Convert and replace b.txt. Convert d.txt and write to f.txt. 191 + -.IP 192 + -.B dos2unix -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt 193 + +.IP 194 + +.B dos2unix \-n c.txt e.txt \-o a.txt b.txt \-n d.txt f.txt 195 + 196 + -.SH DIAGNOSTICS 197 + - 198 + -.SH BUGS 199 + +.SH "DIAGNOSTICS" 200 + 201 + +.SH "BUGS" 202 + The program does not work properly under MSDOS in stdio processing mode. 203 + If you know why is that so, please tell me. 204 + 205 + -.SH AUTHORS 206 + - 207 + -Benjamin Lin - 208 + +.SH "AUTHORS" 209 + +Benjamin Lin \- 210 + .B <blin@socs.uts.edu.au> 211 + 212 + 213 + @@ -125,18 +128,17 @@ 214 + .B <wuebben@kde.org> 215 + 216 + 217 + -.SH MISCELLANY 218 + - 219 + +.SH "MISCELLANY" 220 + Tested environment: 221 + -.IP 222 + +.IP 223 + Linux 1.2.0 with GNU C 2.5.8 224 + -.IP 225 + +.IP 226 + SunOS 4.1.3 with GNU C 2.6.3 227 + -.IP 228 + -MS-DOS 6.20 with Borland C++ 4.02 229 + -.PP 230 + +.IP 231 + +MS\-DOS 6.20 with Borland C++ 4.02 232 + +.PP 233 + Suggestions and bug reports are welcome. 234 + 235 + -.SH SEE ALSO 236 + +.SH "SEE ALSO" 237 + unix2dos(1) mac2unix(1) 238 +
+28
pkgs/tools/text/dos2unix/dos2unix-3.1-preserve-file-modes.patch
···
··· 1 + --- dos2unix-3.1/dos2unix.c.mode 2003-05-21 08:09:08.000000000 -0700 2 + +++ dos2unix-3.1/dos2unix.c 2003-05-21 08:09:56.000000000 -0700 3 + @@ -345,11 +345,14 @@ int ConvertDosToUnixOldFile(char* ipInFN 4 + char TempPath[16]; 5 + struct stat StatBuf; 6 + struct utimbuf UTimeBuf; 7 + + mode_t mode = S_IRUSR | S_IWUSR; 8 + int fd; 9 + 10 + /* retrieve ipInFN file date stamp */ 11 + - if ((ipFlag->KeepDate) && stat(ipInFN, &StatBuf)) 12 + + if (stat(ipInFN, &StatBuf)) 13 + RetVal = -1; 14 + + else 15 + + mode = StatBuf.st_mode; 16 + 17 + strcpy (TempPath, "./u2dtmpXXXXXX"); 18 + if((fd=mkstemp (TempPath))<0) { 19 + @@ -357,6 +360,9 @@ int ConvertDosToUnixOldFile(char* ipInFN 20 + RetVal = -1; 21 + } 22 + 23 + + if (!RetVal && fchmod (fd, mode) && fchmod (fd, S_IRUSR | S_IWUSR)) 24 + + RetVal = -1; 25 + + 26 + #ifdef DEBUG 27 + fprintf(stderr, "dos2unix: using %s as temp file\n", TempPath); 28 + #endif DEBUG
+88
pkgs/tools/text/dos2unix/dos2unix-3.1-safeconv.patch
···
··· 1 + * Fix http://bugzilla.redhat.com/57508 (make dos2unix not modify Mac 2 + files unless in mac2unix mode) 3 + * Make mac2unix mode not create duplicate Unix line delimiters when 4 + run on a DOS file. (mschwendt@users.sf.net) 5 + 6 + diff -Nur dos2unix-3.1-orig/dos2unix.c dos2unix-3.1/dos2unix.c 7 + --- dos2unix-3.1-orig/dos2unix.c 1998-11-19 13:19:25.000000000 +0100 8 + +++ dos2unix-3.1/dos2unix.c 2004-09-26 20:57:41.606587616 +0200 9 + @@ -153,6 +153,24 @@ 10 + } 11 + 12 + 13 + +void StripDelimiter(FILE* ipInF, FILE* ipOutF, CFlag *ipFlag, int CurChar) 14 + +{ 15 + + int TempNextChar; 16 + + /* Don't modify Mac files when in dos2unix mode. */ 17 + + if ( (TempNextChar = getc(ipInF)) != EOF) { 18 + + ungetc( TempNextChar, ipInF ); /* put back peek char */ 19 + + if ( TempNextChar != '\x0a' ) { 20 + + putc( CurChar, ipOutF ); /* Mac line, put back CR */ 21 + + } 22 + + } 23 + + else if ( CurChar == '\x0d' ) { /* EOF: last Mac line delimiter (CR)? */ 24 + + putc( CurChar, ipOutF ); 25 + + } 26 + + if (ipFlag->NewLine) { /* add additional LF? */ 27 + + putc('\n', ipOutF); 28 + + } 29 + +} 30 + + 31 + /* converts stream ipInF to UNIX format text and write to stream ipOutF 32 + * RetVal: 0 if success 33 + * -1 otherwise 34 + @@ -161,6 +179,7 @@ 35 + { 36 + int RetVal = 0; 37 + int TempChar; 38 + + int TempNextChar; 39 + 40 + if ( macmode ) 41 + ipFlag->ConvMode = 3; 42 + @@ -177,9 +196,7 @@ 43 + break; 44 + } 45 + } else { 46 + - if (ipFlag->NewLine) { 47 + - putc('\n', ipOutF); 48 + - } 49 + + StripDelimiter( ipInF, ipOutF, ipFlag, TempChar ); 50 + } 51 + } 52 + break; 53 + @@ -193,9 +210,7 @@ 54 + break; 55 + } 56 + } else { 57 + - if (ipFlag->NewLine) { 58 + - putc('\n', ipOutF); 59 + - } 60 + + StripDelimiter( ipInF, ipOutF, ipFlag, TempChar ); 61 + } 62 + } 63 + break; 64 + @@ -209,9 +224,7 @@ 65 + break; 66 + } 67 + } else { 68 + - if (ipFlag->NewLine) { 69 + - putc('\n', ipOutF); 70 + - } 71 + + StripDelimiter( ipInF, ipOutF, ipFlag, TempChar ); 72 + } 73 + } 74 + break; 75 + @@ -227,6 +240,13 @@ 76 + } 77 + } 78 + else{ 79 + + if ( (TempNextChar = getc(ipInF)) != EOF) { 80 + + ungetc( TempNextChar, ipInF ); /* put back peek char */ 81 + + /* Don't touch this delimiter if it's a CR,LF pair. */ 82 + + if ( TempNextChar == '\x0a' ) { 83 + + continue; 84 + + } 85 + + } 86 + if (putc('\x0a', ipOutF) == EOF) 87 + { 88 + RetVal = -1;
+93
pkgs/tools/text/dos2unix/dos2unix-3.1-segfault.patch
···
··· 1 + --- dos2unix-3.1/dos2unix.c.segf Thu Jan 17 17:27:42 2002 2 + +++ dos2unix-3.1/dos2unix.c Thu Jan 17 17:28:07 2002 3 + @@ -147,9 +147,9 @@ 4 + * RetVal: NULL if failure 5 + * file stream otherwise 6 + */ 7 + -FILE* OpenOutFile(char *ipFN) 8 + +FILE* OpenOutFile(int fd) 9 + { 10 + - return (fopen(ipFN, W_CNTRL)); 11 + + return (fdopen(fd, W_CNTRL)); 12 + } 13 + 14 + 15 + @@ -260,14 +260,17 @@ 16 + char TempPath[16]; 17 + struct stat StatBuf; 18 + struct utimbuf UTimeBuf; 19 + + int fd; 20 + 21 + /* retrieve ipInFN file date stamp */ 22 + if ((ipFlag->KeepDate) && stat(ipInFN, &StatBuf)) 23 + RetVal = -1; 24 + 25 + - strcpy (TempPath, "./d2utmp"); 26 + - strcat (TempPath, "XXXXXX"); 27 + - mkstemp (TempPath); 28 + + strcpy (TempPath, "./d2utmpXXXXXX"); 29 + + if((fd=mkstemp (TempPath))<0) { 30 + + perror("Failed to open output temp file"); 31 + + RetVal = -1; 32 + + } 33 + 34 + #ifdef DEBUG 35 + fprintf(stderr, "dos2unix: using %s as temp file\n", TempPath); 36 + @@ -278,7 +281,7 @@ 37 + RetVal = -1; 38 + 39 + /* can open out file? */ 40 + - if ((!RetVal) && (InF) && ((TempF=OpenOutFile(TempPath)) == NULL)) 41 + + if ((!RetVal) && (InF) && ((TempF=OpenOutFile(fd)) == NULL)) 42 + { 43 + fclose (InF); 44 + RetVal = -1; 45 + @@ -295,6 +298,8 @@ 46 + /* can close out file? */ 47 + if ((TempF) && (fclose(TempF) == EOF)) 48 + RetVal = -1; 49 + + if(fd>=0) 50 + + close(fd); 51 + 52 + if ((!RetVal) && (ipFlag->KeepDate)) 53 + { 54 + @@ -340,14 +345,17 @@ 55 + char TempPath[16]; 56 + struct stat StatBuf; 57 + struct utimbuf UTimeBuf; 58 + + int fd; 59 + 60 + /* retrieve ipInFN file date stamp */ 61 + if ((ipFlag->KeepDate) && stat(ipInFN, &StatBuf)) 62 + RetVal = -1; 63 + 64 + - strcpy (TempPath, "./u2dtmp"); 65 + - strcat (TempPath, "XXXXXX"); 66 + - mkstemp (TempPath); 67 + + strcpy (TempPath, "./u2dtmpXXXXXX"); 68 + + if((fd=mkstemp (TempPath))<0) { 69 + + perror("Failed to open output temp file"); 70 + + RetVal = -1; 71 + + } 72 + 73 + #ifdef DEBUG 74 + fprintf(stderr, "dos2unix: using %s as temp file\n", TempPath); 75 + @@ -358,7 +366,7 @@ 76 + RetVal = -1; 77 + 78 + /* can open out file? */ 79 + - if ((!RetVal) && (InF) && ((TempF=OpenOutFile(TempPath)) == NULL)) 80 + + if ((!RetVal) && (InF) && ((TempF=OpenOutFile(fd)) == NULL)) 81 + { 82 + fclose (InF); 83 + RetVal = -1; 84 + @@ -376,6 +384,9 @@ 85 + if ((TempF) && (fclose(TempF) == EOF)) 86 + RetVal = -1; 87 + 88 + + if(fd>=0) 89 + + close(fd); 90 + + 91 + if ((!RetVal) && (ipFlag->KeepDate)) 92 + { 93 + UTimeBuf.actime = StatBuf.st_atime;
+141
pkgs/tools/text/dos2unix/dos2unix-3.1-tmppath.patch
···
··· 1 + --- dos2unix-3.1/dos2unix.c.tmppath 2004-10-20 16:00:00.342561008 +0200 2 + +++ dos2unix-3.1/dos2unix.c 2004-10-20 16:01:42.210074792 +0200 3 + @@ -69,6 +69,7 @@ 4 + #ifdef __MSDOS__ 5 + # include <dir.h> 6 + #endif __MSDOS__ 7 + +#include <libgen.h> 8 + #include <stdio.h> 9 + #include <stdlib.h> 10 + #include <string.h> 11 + @@ -267,6 +268,39 @@ 12 + return RetVal; 13 + } 14 + 15 + +static int MakeTempFileFrom(const char *OutFN, char **fname_ret) 16 + +{ 17 + + char *cpy = strdup(OutFN); 18 + + char *dir = NULL; 19 + + size_t fname_len = 0; 20 + + char *fname_str = NULL; 21 + + int fd = -1; 22 + + 23 + + *fname_ret = NULL; 24 + + 25 + + if (!cpy) 26 + + goto make_failed; 27 + + 28 + + dir = dirname(cpy); 29 + + 30 + + fname_len = strlen(dir) + strlen("/d2utmpXXXXXX") + sizeof (char); 31 + + if (!(fname_str = malloc(fname_len))) 32 + + goto make_failed; 33 + + sprintf(fname_str, "%s%s", dir, "/d2utmpXXXXXX"); 34 + + *fname_ret = fname_str; 35 + + 36 + + free(cpy); 37 + + 38 + + if ((fd = mkstemp(fname_str)) == -1) 39 + + goto make_failed; 40 + + 41 + + return (fd); 42 + + 43 + + make_failed: 44 + + free(*fname_ret); 45 + + *fname_ret = NULL; 46 + + return (-1); 47 + +} 48 + 49 + /* convert file ipInFN to UNIX format text and write to file ipOutFN 50 + * RetVal: 0 if success 51 + @@ -277,7 +311,7 @@ 52 + int RetVal = 0; 53 + FILE *InF = NULL; 54 + FILE *TempF = NULL; 55 + - char TempPath[16]; 56 + + char *TempPath; 57 + struct stat StatBuf; 58 + struct utimbuf UTimeBuf; 59 + int fd; 60 + @@ -286,8 +320,7 @@ 61 + if ((ipFlag->KeepDate) && stat(ipInFN, &StatBuf)) 62 + RetVal = -1; 63 + 64 + - strcpy (TempPath, "./d2utmpXXXXXX"); 65 + - if((fd=mkstemp (TempPath))<0) { 66 + + if((fd = MakeTempFileFrom(ipOutFN, &TempPath))<0) { 67 + perror("Failed to open output temp file"); 68 + RetVal = -1; 69 + } 70 + @@ -304,6 +337,7 @@ 71 + if ((!RetVal) && (InF) && ((TempF=OpenOutFile(fd)) == NULL)) 72 + { 73 + fclose (InF); 74 + + InF = NULL; 75 + RetVal = -1; 76 + } 77 + 78 + @@ -337,9 +371,6 @@ 79 + /* can rename temp file to out file? */ 80 + if (!RetVal) 81 + { 82 + - if (stat(ipOutFN, &StatBuf) == 0) 83 + - unlink(ipOutFN); 84 + - 85 + if ((rename(TempPath, ipOutFN) == -1) && (!ipFlag->Quiet)) 86 + { 87 + fprintf(stderr, "dos2unix: problems renaming '%s' to '%s'\n", TempPath, ipOutFN); 88 + @@ -347,6 +378,7 @@ 89 + RetVal = -1; 90 + } 91 + } 92 + + free(TempPath); 93 + return RetVal; 94 + } 95 + 96 + @@ -362,7 +394,7 @@ 97 + int RetVal = 0; 98 + FILE *InF = NULL; 99 + FILE *TempF = NULL; 100 + - char TempPath[16]; 101 + + char *TempPath; 102 + struct stat StatBuf; 103 + struct utimbuf UTimeBuf; 104 + mode_t mode = S_IRUSR | S_IWUSR; 105 + @@ -374,8 +406,7 @@ 106 + else 107 + mode = StatBuf.st_mode; 108 + 109 + - strcpy (TempPath, "./u2dtmpXXXXXX"); 110 + - if((fd=mkstemp (TempPath))<0) { 111 + + if((fd = MakeTempFileFrom(ipInFN, &TempPath))<0) { 112 + perror("Failed to open output temp file"); 113 + RetVal = -1; 114 + } 115 + @@ -395,6 +426,7 @@ 116 + if ((!RetVal) && (InF) && ((TempF=OpenOutFile(fd)) == NULL)) 117 + { 118 + fclose (InF); 119 + + InF = NULL; 120 + RetVal = -1; 121 + } 122 + 123 + @@ -422,10 +454,6 @@ 124 + RetVal = -1; 125 + } 126 + 127 + - /* can delete in file? */ 128 + - if ((!RetVal) && (unlink(ipInFN) == -1)) 129 + - RetVal = -1; 130 + - 131 + /* any error? */ 132 + if ((RetVal) && (unlink(TempPath))) 133 + RetVal = -1; 134 + @@ -440,6 +468,7 @@ 135 + } 136 + RetVal = -1; 137 + } 138 + + free(TempPath); 139 + return RetVal; 140 + } 141 +
+49
pkgs/tools/text/dos2unix/dos2unix-3.1.patch
···
··· 1 + --- dos2unix-3.1/Makefile.orig Thu Nov 19 07:09:38 1998 2 + +++ dos2unix-3.1/Makefile Fri Nov 17 13:25:35 2000 3 + @@ -1,10 +1,12 @@ 4 + +CFLAGS= 5 + + 6 + default: dos2unix 7 + 8 + all: dos2unix link install 9 + 10 + 11 + dos2unix: 12 + - gcc -O dos2unix.c -o dos2unix 13 + + gcc $(CFLAGS) dos2unix.c -o dos2unix 14 + 15 + 16 + link: 17 + @@ -12,11 +14,10 @@ 18 + ln -s dos2unix.1 mac2unix.1 19 + 20 + clean: 21 + - rm dos2unix 22 + + rm -f dos2unix mac2unix mac2unix.1 *~ *.orig core 23 + 24 + install: 25 + install -m 755 dos2unix /usr/local/bin 26 + install -m 644 dos2unix.1 /usr/local/man/man1 27 + install -m 755 mac2unix /usr/local/bin 28 + install -m 644 mac2unix.1 /usr/local/man/man1 29 + - 30 + --- dos2unix-3.1/dos2unix.c.orig Thu Nov 19 07:19:25 1998 31 + +++ dos2unix-3.1/dos2unix.c Fri Nov 17 13:25:25 2000 32 + @@ -267,7 +267,7 @@ 33 + 34 + strcpy (TempPath, "./d2utmp"); 35 + strcat (TempPath, "XXXXXX"); 36 + - mktemp (TempPath); 37 + + mkstemp (TempPath); 38 + 39 + #ifdef DEBUG 40 + fprintf(stderr, "dos2unix: using %s as temp file\n", TempPath); 41 + @@ -347,7 +347,7 @@ 42 + 43 + strcpy (TempPath, "./u2dtmp"); 44 + strcat (TempPath, "XXXXXX"); 45 + - mktemp (TempPath); 46 + + mkstemp (TempPath); 47 + 48 + #ifdef DEBUG 49 + fprintf(stderr, "dos2unix: using %s as temp file\n", TempPath);
+42
pkgs/tools/text/dos2unix/dos2unix-c-missing-arg.patch
···
··· 1 + diff -up dos2unix-3.1/dos2unix.c.c-missing-arg dos2unix-3.1/dos2unix.c 2 + --- dos2unix-3.1/dos2unix.c.c-missing-arg 2008-01-18 09:24:21.000000000 +0000 3 + +++ dos2unix-3.1/dos2unix.c 2008-01-18 09:25:43.000000000 +0000 4 + @@ -533,19 +533,28 @@ int main (int argc, char *argv[]) 5 + 6 + if ((strcmp(argv[ArgIdx],"-c") == 0) || (strcmp(argv[ArgIdx],"--convmode") == 0)) 7 + { 8 + - ArgIdx++; 9 + - if (strcmpi(argv[ArgIdx],"ASCII") == 0) 10 + - pFlag->ConvMode = 0; 11 + - else if (strcmpi(argv[ArgIdx], "7Bit") == 0) 12 + - pFlag->ConvMode = 1; 13 + - else if (strcmpi(argv[ArgIdx], "ISO") == 0) 14 + - pFlag->ConvMode = 2; 15 + - else if (strcmpi(argv[ArgIdx], "Mac") == 0) 16 + - pFlag->ConvMode = 3; 17 + + if (++ArgIdx < argc) 18 + + { 19 + + if (strcmpi(argv[ArgIdx],"ASCII") == 0) 20 + + pFlag->ConvMode = 0; 21 + + else if (strcmpi(argv[ArgIdx], "7Bit") == 0) 22 + + pFlag->ConvMode = 1; 23 + + else if (strcmpi(argv[ArgIdx], "ISO") == 0) 24 + + pFlag->ConvMode = 2; 25 + + else if (strcmpi(argv[ArgIdx], "Mac") == 0) 26 + + pFlag->ConvMode = 3; 27 + + else 28 + + { 29 + + if (!pFlag->Quiet) 30 + + fprintf(stderr, "dos2unix: invalid %s conversion mode specified\n",argv[ArgIdx]); 31 + + ShouldExit = 1; 32 + + } 33 + + } 34 + else 35 + { 36 + + ArgIdx--; 37 + if (!pFlag->Quiet) 38 + - fprintf(stderr, "dos2unix: invalid %s conversion mode specified\n",argv[ArgIdx]); 39 + + fprintf(stderr,"dos2unix: option `%s' requires an argument\n",argv[ArgIdx]); 40 + ShouldExit = 1; 41 + } 42 + }
+12
pkgs/tools/text/dos2unix/dos2unix-manpage.patch
···
··· 1 + diff -up dos2unix-3.1/dos2unix.1.manpage dos2unix-3.1/dos2unix.1 2 + --- dos2unix-3.1/dos2unix.1.manpage 2008-09-08 09:58:46.000000000 +0100 3 + +++ dos2unix-3.1/dos2unix.1 2008-09-08 09:58:56.000000000 +0100 4 + @@ -52,7 +52,7 @@ default to run in this mode. Wildcard na 5 + .B \-n \-\-newfile infile outfile ... 6 + New file mode. Convert the infile and write output to outfile. File names 7 + must be given in pairs and wildcard names should NOT be used or you WILL 8 + -lost your files. 9 + +lose your files. 10 + 11 + .SH "EXAMPLES" 12 + .LP
+15
pkgs/tools/text/dos2unix/dos2unix-missing-proto.patch
···
··· 1 + diff -up dos2unix-3.1/dos2unix.c.missing-proto dos2unix-3.1/dos2unix.c 2 + --- dos2unix-3.1/dos2unix.c.missing-proto 2008-04-14 17:11:58.000000000 +0100 3 + +++ dos2unix-3.1/dos2unix.c 2008-04-14 17:12:42.000000000 +0100 4 + @@ -75,6 +75,11 @@ static int macmode = 0; 5 + #include <string.h> 6 + #include <utime.h> 7 + #include <sys/stat.h> 8 + +#if defined(__MSDOS__) || defined(__WIN32__) || defined(_WIN32) 9 + +# include <io.h> 10 + +#else 11 + +# include <unistd.h> 12 + +#endif 13 + #include "dos2unix.h" 14 + 15 +
+28
pkgs/tools/text/dos2unix/dos2unix-preserve-file-modes.patch
···
··· 1 + diff -up dos2unix-3.1/dos2unix.c.preserve-file-modes dos2unix-3.1/dos2unix.c 2 + --- dos2unix-3.1/dos2unix.c.preserve-file-modes 2008-09-08 09:58:05.000000000 +0100 3 + +++ dos2unix-3.1/dos2unix.c 2008-09-08 10:16:04.000000000 +0100 4 + @@ -320,9 +320,10 @@ int ConvertDosToUnixNewFile(char *ipInFN 5 + struct stat StatBuf; 6 + struct utimbuf UTimeBuf; 7 + int fd; 8 + + mode_t mask; 9 + 10 + /* retrieve ipInFN file date stamp */ 11 + - if ((ipFlag->KeepDate) && stat(ipInFN, &StatBuf)) 12 + + if (stat(ipInFN, &StatBuf)) 13 + RetVal = -1; 14 + 15 + if((fd = MakeTempFileFrom(ipOutFN, &TempPath))<0) { 16 + @@ -346,6 +347,12 @@ int ConvertDosToUnixNewFile(char *ipInFN 17 + RetVal = -1; 18 + } 19 + 20 + + /* preserve original mode as modified by umask */ 21 + + mask = umask(0); 22 + + umask(mask); 23 + + if (!RetVal && fchmod(fd, StatBuf.st_mode & ~mask)) 24 + + RetVal = -1; 25 + + 26 + /* conversion sucessful? */ 27 + if ((!RetVal) && (ConvertDosToUnix(InF, TempF, ipFlag))) 28 + RetVal = -1;
+37
pkgs/tools/text/unix2dos/default.nix
···
··· 1 + {stdenv, fetchurl}: 2 + 3 + stdenv.mkDerivation { 4 + name = "unix2dos-2.2"; 5 + 6 + src = fetchurl { 7 + url = http://cvs.fedoraproject.org/repo/pkgs/unix2dos/unix2dos-2.2.src.tar.gz/e4488c241fa9067a48a7534a21d4babb/unix2dos-2.2.src.tar.gz; 8 + md5 = "e4488c241fa9067a48a7534a21d4babb"; 9 + }; 10 + 11 + patches = [ 12 + ./unix2dos-mkstemp.patch 13 + ./unix2dos-2.2-segfault.patch 14 + ./unix2dos-2.2-manpage.patch 15 + ./unix2dos-2.2-mode.patch 16 + ./unix2dos-2.2-tmppath.patch 17 + ./unix2dos-preserve-file-modes.patch 18 + ]; 19 + 20 + sourceRoot = "."; 21 + 22 + buildPhase = '' 23 + cc -o unix2dos unix2dos.c 24 + ''; 25 + 26 + installPhase = '' 27 + ensureDir $out/bin 28 + ensureDir $out/share/man 29 + install -p -m755 unix2dos $out/bin 30 + install -p -m444 unix2dos.1 $out/share/man 31 + ''; 32 + 33 + meta = { 34 + homepage = http://unknown/; 35 + description = "unix2dos tool"; 36 + }; 37 + }
+42
pkgs/tools/text/unix2dos/unix2dos-2.2-manpage.patch
···
··· 1 + diff -up unix2dos-2.2/unix2dos.1.man unix2dos-2.2/unix2dos.1 2 + --- unix2dos-2.2/unix2dos.1.man 1995-03-30 17:03:22.000000000 +0100 3 + +++ unix2dos-2.2/unix2dos.1 2008-09-08 09:49:19.000000000 +0100 4 + @@ -16,7 +16,7 @@ Options: 5 + .SH DESCRIPTION 6 + 7 + .PP 8 + -This manual page documents dos2unix, the program that converts text 9 + +This manual page documents unix2dos, the program that converts text 10 + files in UNIX format to DOS format. 11 + 12 + .SH OPTIONS 13 + @@ -40,7 +40,7 @@ Prints version information. 14 + 15 + .TP 16 + .B \-c --convmode convmode 17 + -Sets conversion mode. Simulates dos2unix under SunOS. 18 + +Sets conversion mode. Simulates unix2dos under SunOS. 19 + 20 + .TP 21 + .B \-o --oldfile file ... 22 + @@ -51,7 +51,7 @@ default to run in this mode. Wildcard na 23 + .B \-n --newfile infile outfile ... 24 + New file mode. Convert the infile and write output to outfile. File names 25 + must be given in pairs and wildcard names should NOT be used or you WILL 26 + -lost your files. 27 + +lose your files. 28 + 29 + .SH EXAMPLES 30 + 31 + @@ -71,9 +71,9 @@ Convert and replace a.txt. Convert and r 32 + Convert and replace a.txt in ASCII conversion mode. 33 + Convert and replace b.txt in ISO conversion mode. 34 + .IP 35 + -.B dos2unix a.txt -c iso b.txt 36 + +.B unix2dos a.txt -c iso b.txt 37 + .IP 38 + -.B dos2unix -c ascii a.txt -c iso b.txt 39 + +.B unix2dos -c ascii a.txt -c iso b.txt 40 + 41 + .LP 42 + Convert and replace a.txt while keeping original date stamp.
+29
pkgs/tools/text/unix2dos/unix2dos-2.2-mode.patch
···
··· 1 + diff -up unix2dos-2.2/unix2dos.c.mode unix2dos-2.2/unix2dos.c 2 + --- unix2dos-2.2/unix2dos.c.mode 2008-09-08 10:13:39.000000000 +0100 3 + +++ unix2dos-2.2/unix2dos.c 2008-09-08 10:13:39.000000000 +0100 4 + @@ -292,11 +292,14 @@ int ConvertUnixToDosOldFile(char* ipInFN 5 + char TempPath[16]; 6 + struct stat StatBuf; 7 + struct utimbuf UTimeBuf; 8 + + mode_t mode = S_IRUSR | S_IWUSR; 9 + int fd; 10 + 11 + /* retrieve ipInFN file date stamp */ 12 + - if ((ipFlag->KeepDate) && stat(ipInFN, &StatBuf)) 13 + + if (stat(ipInFN, &StatBuf)) 14 + RetVal = -1; 15 + + else 16 + + mode = StatBuf.st_mode; 17 + 18 + strcpy (TempPath, "./u2dtmpXXXXXX"); 19 + if((fd=mkstemp (TempPath)) < 0) { 20 + @@ -304,6 +307,9 @@ int ConvertUnixToDosOldFile(char* ipInFN 21 + RetVal = -1; 22 + } 23 + 24 + + if (!RetVal && fchmod (fd, mode) && fchmod (fd, S_IRUSR | S_IWUSR)) 25 + + RetVal = -1; 26 + + 27 + #ifdef DEBUG 28 + fprintf(stderr, "unix2dos: using %s as temp file\n", TempPath); 29 + #endif DEBUG
+94
pkgs/tools/text/unix2dos/unix2dos-2.2-segfault.patch
···
··· 1 + --- unix2dos-2.2/unix2dos.c.segf Thu Jan 17 17:09:49 2002 2 + +++ unix2dos-2.2/unix2dos.c Thu Jan 17 17:12:47 2002 3 + @@ -131,9 +131,9 @@ 4 + * RetVal: NULL if failure 5 + * file stream otherwise 6 + */ 7 + -FILE* OpenOutFile(char *ipFN) 8 + +FILE* OpenOutFile(int fd) 9 + { 10 + - return (fopen(ipFN, W_CNTRL)); 11 + + return (fdopen(fd, W_CNTRL)); 12 + } 13 + 14 + 15 + @@ -207,14 +207,17 @@ 16 + char TempPath[16]; 17 + struct stat StatBuf; 18 + struct utimbuf UTimeBuf; 19 + + int fd; 20 + 21 + /* retrieve ipInFN file date stamp */ 22 + if ((ipFlag->KeepDate) && stat(ipInFN, &StatBuf)) 23 + RetVal = -1; 24 + 25 + - strcpy (TempPath, "./u2dtmp"); 26 + - strcat (TempPath, "XXXXXX"); 27 + - mkstemp (TempPath); 28 + + strcpy (TempPath, "./u2dtmpXXXXXX"); 29 + + if((fd=mkstemp (TempPath)) < 0) { 30 + + perror("Can't open output temp file"); 31 + + RetVal = -1; 32 + + } 33 + 34 + #ifdef DEBUG 35 + fprintf(stderr, "unix2dos: using %s as temp file\n", TempPath); 36 + @@ -225,7 +228,7 @@ 37 + RetVal = -1; 38 + 39 + /* can open out file? */ 40 + - if ((!RetVal) && (InF) && ((TempF=OpenOutFile(TempPath)) == NULL)) 41 + + if ((!RetVal) && (InF) && ((TempF=OpenOutFile(fd)) == NULL)) 42 + { 43 + fclose (InF); 44 + RetVal = -1; 45 + @@ -243,6 +246,9 @@ 46 + if ((TempF) && (fclose(TempF) == EOF)) 47 + RetVal = -1; 48 + 49 + + if(fd>=0) 50 + + close(fd); 51 + + 52 + if ((!RetVal) && (ipFlag->KeepDate)) 53 + { 54 + UTimeBuf.actime = StatBuf.st_atime; 55 + @@ -286,14 +292,17 @@ 56 + char TempPath[16]; 57 + struct stat StatBuf; 58 + struct utimbuf UTimeBuf; 59 + + int fd; 60 + 61 + /* retrieve ipInFN file date stamp */ 62 + if ((ipFlag->KeepDate) && stat(ipInFN, &StatBuf)) 63 + RetVal = -1; 64 + 65 + - strcpy (TempPath, "./u2dtmp"); 66 + - strcat (TempPath, "XXXXXX"); 67 + - mkstemp (TempPath); 68 + + strcpy (TempPath, "./u2dtmpXXXXXX"); 69 + + if((fd=mkstemp (TempPath)) < 0) { 70 + + perror("Can't open output temp file"); 71 + + RetVal = -1; 72 + + } 73 + 74 + #ifdef DEBUG 75 + fprintf(stderr, "unix2dos: using %s as temp file\n", TempPath); 76 + @@ -304,7 +313,7 @@ 77 + RetVal = -1; 78 + 79 + /* can open out file? */ 80 + - if ((!RetVal) && (InF) && ((TempF=OpenOutFile(TempPath)) == NULL)) 81 + + if ((!RetVal) && (InF) && ((TempF=OpenOutFile(fd)) == NULL)) 82 + { 83 + fclose (InF); 84 + RetVal = -1; 85 + @@ -322,6 +331,9 @@ 86 + if ((TempF) && (fclose(TempF) == EOF)) 87 + RetVal = -1; 88 + 89 + + if(fd>=0) 90 + + close(fd); 91 + + 92 + if ((!RetVal) && (ipFlag->KeepDate)) 93 + { 94 + UTimeBuf.actime = StatBuf.st_atime;
+146
pkgs/tools/text/unix2dos/unix2dos-2.2-tmppath.patch
···
··· 1 + diff -up unix2dos-2.2/unix2dos.c.tmppath unix2dos-2.2/unix2dos.c 2 + --- unix2dos-2.2/unix2dos.c.tmppath 2008-09-08 10:14:30.000000000 +0100 3 + +++ unix2dos-2.2/unix2dos.c 2008-09-08 10:14:30.000000000 +0100 4 + @@ -57,7 +57,10 @@ 5 + 6 + #ifdef __MSDOS__ 7 + # include <dir.h> 8 + +#else 9 + +# include <unistd.h> 10 + #endif __MSDOS 11 + +#include <libgen.h> 12 + #include <stdio.h> 13 + #include <stdlib.h> 14 + #include <string.h> 15 + @@ -195,6 +198,40 @@ int ConvertUnixToDos(FILE* ipInF, FILE* 16 + } 17 + 18 + 19 + +static int MakeTempFileFrom(const char *OutFN, char **fname_ret) 20 + +{ 21 + + char *cpy = strdup(OutFN); 22 + + char *dir = NULL; 23 + + size_t fname_len = 0; 24 + + char *fname_str = NULL; 25 + + int fd = -1; 26 + + 27 + + *fname_ret = NULL; 28 + + 29 + + if (!cpy) 30 + + goto make_failed; 31 + + 32 + + dir = dirname(cpy); 33 + + 34 + + fname_len = strlen(dir) + strlen("/u2dtmpXXXXXX") + sizeof (char); 35 + + if (!(fname_str = malloc(fname_len))) 36 + + goto make_failed; 37 + + sprintf(fname_str, "%s%s", dir, "/u2dtmpXXXXXX"); 38 + + *fname_ret = fname_str; 39 + + 40 + + free(cpy); 41 + + 42 + + if ((fd = mkstemp(fname_str)) == -1) 43 + + goto make_failed; 44 + + 45 + + return (fd); 46 + + 47 + + make_failed: 48 + + free(*fname_ret); 49 + + *fname_ret = NULL; 50 + + return (-1); 51 + +} 52 + + 53 + /* convert file ipInFN to DOS format text and write to file ipOutFN 54 + * RetVal: 0 if success 55 + * -1 otherwise 56 + @@ -204,7 +241,7 @@ int ConvertUnixToDosNewFile(char *ipInFN 57 + int RetVal = 0; 58 + FILE *InF = NULL; 59 + FILE *TempF = NULL; 60 + - char TempPath[16]; 61 + + char *TempPath; 62 + struct stat StatBuf; 63 + struct utimbuf UTimeBuf; 64 + int fd; 65 + @@ -213,8 +250,7 @@ int ConvertUnixToDosNewFile(char *ipInFN 66 + if ((ipFlag->KeepDate) && stat(ipInFN, &StatBuf)) 67 + RetVal = -1; 68 + 69 + - strcpy (TempPath, "./u2dtmpXXXXXX"); 70 + - if((fd=mkstemp (TempPath)) < 0) { 71 + + if((fd = MakeTempFileFrom (ipOutFN, &TempPath)) < 0) { 72 + perror("Can't open output temp file"); 73 + RetVal = -1; 74 + } 75 + @@ -231,6 +267,7 @@ int ConvertUnixToDosNewFile(char *ipInFN 76 + if ((!RetVal) && (InF) && ((TempF=OpenOutFile(fd)) == NULL)) 77 + { 78 + fclose (InF); 79 + + InF = NULL; 80 + RetVal = -1; 81 + } 82 + 83 + @@ -265,9 +302,6 @@ int ConvertUnixToDosNewFile(char *ipInFN 84 + /* can rename temp file to out file? */ 85 + if (!RetVal) 86 + { 87 + - if (stat(ipOutFN, &StatBuf) == 0) 88 + - unlink(ipOutFN); 89 + - 90 + if ((rename(TempPath, ipOutFN) == -1) && (!ipFlag->Quiet)) 91 + { 92 + fprintf(stderr, "unix2dos: problems renaming '%s' to '%s'\n", TempPath, ipOutFN); 93 + @@ -275,6 +309,7 @@ int ConvertUnixToDosNewFile(char *ipInFN 94 + RetVal = -1; 95 + } 96 + } 97 + + free(TempPath); 98 + 99 + return RetVal; 100 + } 101 + @@ -289,7 +324,7 @@ int ConvertUnixToDosOldFile(char* ipInFN 102 + int RetVal = 0; 103 + FILE *InF = NULL; 104 + FILE *TempF = NULL; 105 + - char TempPath[16]; 106 + + char *TempPath; 107 + struct stat StatBuf; 108 + struct utimbuf UTimeBuf; 109 + mode_t mode = S_IRUSR | S_IWUSR; 110 + @@ -301,8 +336,7 @@ int ConvertUnixToDosOldFile(char* ipInFN 111 + else 112 + mode = StatBuf.st_mode; 113 + 114 + - strcpy (TempPath, "./u2dtmpXXXXXX"); 115 + - if((fd=mkstemp (TempPath)) < 0) { 116 + + if((fd = MakeTempFileFrom(ipInFN, &TempPath)) < 0) { 117 + perror("Can't open output temp file"); 118 + RetVal = -1; 119 + } 120 + @@ -322,6 +356,7 @@ int ConvertUnixToDosOldFile(char* ipInFN 121 + if ((!RetVal) && (InF) && ((TempF=OpenOutFile(fd)) == NULL)) 122 + { 123 + fclose (InF); 124 + + InF = NULL; 125 + RetVal = -1; 126 + } 127 + 128 + @@ -349,10 +384,6 @@ int ConvertUnixToDosOldFile(char* ipInFN 129 + RetVal = -1; 130 + } 131 + 132 + - /* can delete in file? */ 133 + - if ((!RetVal) && (unlink(ipInFN) == -1)) 134 + - RetVal = -1; 135 + - 136 + /* any error? */ 137 + if ((RetVal) && (unlink(TempPath))) 138 + RetVal = -1; 139 + @@ -367,6 +398,7 @@ int ConvertUnixToDosOldFile(char* ipInFN 140 + } 141 + RetVal = -1; 142 + } 143 + + free(TempPath); 144 + return RetVal; 145 + } 146 +
+20
pkgs/tools/text/unix2dos/unix2dos-mkstemp.patch
···
··· 1 + --- unix2dos-2.2/unix2dos.c.orig Fri Nov 17 13:29:24 2000 2 + +++ unix2dos-2.2/unix2dos.c Fri Nov 17 13:30:16 2000 3 + @@ -214,7 +214,7 @@ 4 + 5 + strcpy (TempPath, "./u2dtmp"); 6 + strcat (TempPath, "XXXXXX"); 7 + - mktemp (TempPath); 8 + + mkstemp (TempPath); 9 + 10 + #ifdef DEBUG 11 + fprintf(stderr, "unix2dos: using %s as temp file\n", TempPath); 12 + @@ -293,7 +293,7 @@ 13 + 14 + strcpy (TempPath, "./u2dtmp"); 15 + strcat (TempPath, "XXXXXX"); 16 + - mktemp (TempPath); 17 + + mkstemp (TempPath); 18 + 19 + #ifdef DEBUG 20 + fprintf(stderr, "unix2dos: using %s as temp file\n", TempPath);
+29
pkgs/tools/text/unix2dos/unix2dos-preserve-file-modes.patch
···
··· 1 + diff -up unix2dos-2.2/unix2dos.c~ unix2dos-2.2/unix2dos.c 2 + --- unix2dos-2.2/unix2dos.c~ 2008-03-03 13:16:34.000000000 +0000 3 + +++ unix2dos-2.2/unix2dos.c 2008-03-03 13:22:10.000000000 +0000 4 + @@ -244,10 +244,11 @@ int ConvertUnixToDosNewFile(char *ipInFN 5 + char *TempPath; 6 + struct stat StatBuf; 7 + struct utimbuf UTimeBuf; 8 + + mode_t mask; 9 + int fd; 10 + 11 + /* retrieve ipInFN file date stamp */ 12 + - if ((ipFlag->KeepDate) && stat(ipInFN, &StatBuf)) 13 + + if (stat(ipInFN, &StatBuf)) 14 + RetVal = -1; 15 + 16 + if((fd = MakeTempFileFrom (ipOutFN, &TempPath)) < 0) { 17 + @@ -271,6 +272,12 @@ int ConvertUnixToDosNewFile(char *ipInFN 18 + RetVal = -1; 19 + } 20 + 21 + + /* preserve original mode as modified by umask */ 22 + + mask = umask(0); 23 + + umask(mask); 24 + + if (!RetVal && fchmod(fd, StatBuf.st_mode & ~mask)) 25 + + RetVal = -1; 26 + + 27 + /* conversion sucessful? */ 28 + if ((!RetVal) && (ConvertUnixToDos(InF, TempF, ipFlag))) 29 + RetVal = -1;
+8 -4
pkgs/tools/typesetting/lhs2tex/default.nix
··· 4 5 cabal.mkDerivation (self : { 6 pname = "lhs2tex"; 7 - version = "1.14"; 8 name = self.fname; 9 - sha256 = "1667acce394a0d4852f8ad07fa85397e43873fd98a219db794e4773883288687"; 10 extraBuildInputs = [tetex regexCompat utf8String]; 11 propagatedBuildInputs = [polytable]; # automatically in user-env now with cabal 12 - 13 - configureFlags = ''--constraint=base<4''; 14 15 postInstall = '' 16 ensureDir "$out/share/doc/$name" 17 cp doc/Guide2.pdf $out/share/doc/$name 18 ensureDir "$out/nix-support" 19 ''; 20 }) 21
··· 4 5 cabal.mkDerivation (self : { 6 pname = "lhs2tex"; 7 + version = "1.15"; 8 name = self.fname; 9 + sha256 = "77f25c1f22823587ceca6eead133a403540319a0ae3bf03a369b3e8c86baf124"; 10 extraBuildInputs = [tetex regexCompat utf8String]; 11 propagatedBuildInputs = [polytable]; # automatically in user-env now with cabal 12 13 postInstall = '' 14 ensureDir "$out/share/doc/$name" 15 cp doc/Guide2.pdf $out/share/doc/$name 16 ensureDir "$out/nix-support" 17 ''; 18 + 19 + meta = { 20 + description = "Preprocessor for typesetting Haskell sources with LaTeX"; 21 + license = "GPLv2"; 22 + maintainers = [self.stdenv.lib.maintainers.andres]; 23 + }; 24 }) 25
+34
pkgs/tools/virtualization/amazon-ec2-ami-tools/default.nix
···
··· 1 + { stdenv, fetchurl, unzip, ruby, openssl, makeWrapper }: 2 + 3 + stdenv.mkDerivation { 4 + name = "ec2-ami-tools"; 5 + 6 + buildInputs = [unzip makeWrapper]; 7 + 8 + src = fetchurl { 9 + url = http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.zip; 10 + sha256 = "2a7c848abea286234adcbb08938cfad50b844ecdfc7770e781289d9d396a1972"; 11 + }; 12 + 13 + installPhase = 14 + '' 15 + ensureDir $out 16 + mv * $out 17 + rm $out/*.txt 18 + 19 + for i in $out/bin/*; do 20 + wrapProgram $i \ 21 + --set EC2_HOME $out \ 22 + --prefix PATH : ${ruby}/bin:${openssl}/bin 23 + done 24 + 25 + sed -i 's|/bin/bash|${stdenv.shell}|' $out/lib/ec2/platform/base/pipeline.rb 26 + ''; 27 + 28 + meta = { 29 + homepage = http://developer.amazonwebservices.com/connect/entry.jspa?externalID=368&categoryID=88; 30 + description = "Command-line tools to create and manage Amazon EC2 virtual machine images"; 31 + license = "unfree-redistributable"; 32 + }; 33 + 34 + }
-7
pkgs/tools/virtualization/amazon-ec2-api-tools/builder.sh
··· 1 - source $stdenv/setup 2 - ensureDir $out 3 - 4 - unzip $src 5 - mv ec2-api-tools-*/* $out 6 - 7 - fixupPhase
···
+24 -5
pkgs/tools/virtualization/amazon-ec2-api-tools/default.nix
··· 1 - {stdenv, fetchurl, unzip}: 2 3 stdenv.mkDerivation { 4 - name = "ec2-api-tools"; 5 - buildInputs = [unzip]; 6 src = fetchurl { 7 url = http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip; 8 - sha256 = "1d5j3hsa9vswrhan5yf2v6sq3plpfl4lgdvk3wlaw14rdv50cdiv"; 9 }; 10 11 - builder = ./builder.sh ; 12 }
··· 1 + { stdenv, fetchurl, unzip, makeWrapper, jre }: 2 3 stdenv.mkDerivation { 4 + name = "ec2-api-tools-1.3-46266"; 5 + 6 src = fetchurl { 7 url = http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip; 8 + sha256 = "06d5hpzc18bj30hjc477xx62hsspgfkn3fdccrg1avadgwsykgq6"; 9 }; 10 11 + buildInputs = [ unzip makeWrapper ]; 12 + 13 + installPhase = 14 + '' 15 + ensureDir $out 16 + mv * $out 17 + rm $out/bin/*.cmd # Windows stuff 18 + 19 + for i in $out/bin/*; do 20 + wrapProgram $i \ 21 + --set EC2_HOME $out \ 22 + --set JAVA_HOME ${jre} 23 + done 24 + ''; # */ 25 + 26 + meta = { 27 + homepage = http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351; 28 + description = "Command-line tools to create and manage Amazon EC2 virtual machines"; 29 + license = "unfree-redistributable"; 30 + }; 31 }
+250 -88
pkgs/top-level/all-packages.nix
··· 78 79 # Helper functions that are exported through `pkgs'. 80 helperFunctions = 81 - (import ../stdenv/adapters.nix { inherit (pkgs) dietlibc fetchurl runCommand; }) // 82 (import ../build-support/trivial-builders.nix { inherit (pkgs) stdenv; inherit (pkgs.xorg) lndir; }); 83 84 85 # Allow packages to be overriden globally via the `packageOverrides' ··· 101 # The package compositions. Yes, this isn't properly indented. 102 pkgsFun = __overrides: with helperFunctions; rec { 103 104 105 inherit __overrides; 106 ··· 124 ### Helper functions. 125 126 127 - inherit lib config getConfig; 128 129 inherit (lib) lowPrio appendToName makeOverridable; 130 ··· 331 }; 332 333 ec2apitools = import ../tools/virtualization/amazon-ec2-api-tools { 334 - inherit stdenv fetchurl unzip ; 335 }; 336 337 amule = import ../tools/networking/p2p/amule { ··· 439 inherit fetchurl stdenv; 440 }; 441 442 bzip2 = useFromStdenv "bzip2" 443 (import ../tools/compression/bzip2 { 444 inherit fetchurl stdenv; ··· 446 447 cabextract = import ../tools/archivers/cabextract { 448 inherit fetchurl stdenv; 449 }; 450 451 ccrypt = import ../tools/security/ccrypt { ··· 685 inherit fetchurl stdenv gettext freetype zlib 686 libungif libpng libjpeg libtiff libxml2 lib; 687 inherit (xlibs) libX11 xproto libXt; 688 }; 689 690 gawk = useFromStdenv "gawk" ··· 1061 }; 1062 }); 1063 1064 mysql2pgsql = import ../tools/misc/mysql2pgsql { 1065 inherit fetchurl stdenv perl shebangfix; 1066 }; ··· 1094 }; 1095 1096 netpbm = import ../tools/graphics/netpbm { 1097 - inherit stdenv fetchsvn libjpeg libpng zlib flex perl libxml2; 1098 }; 1099 1100 netselect = import ../tools/networking/netselect { ··· 1150 inherit fetchurl stdenv pkgconfig bluez libusb; 1151 }; 1152 1153 openssh = import ../tools/networking/openssh { 1154 inherit fetchurl stdenv zlib openssl pam perl; 1155 pamSupport = getPkgConfig "openssh" "pam" true; ··· 1183 }; 1184 1185 parted = import ../tools/misc/parted { 1186 - inherit fetchurl stdenv devicemapper libuuid gettext readline; 1187 }; 1188 1189 patch = gnupatch; ··· 1194 1195 pciutils = import ../tools/system/pciutils { 1196 inherit fetchurl stdenv zlib; 1197 }; 1198 1199 pdf2djvu = import ../tools/typesetting/pdf2djvu { ··· 1632 inherit fetchurl stdenv readline; 1633 }; 1634 1635 wv = import ../tools/misc/wv { 1636 inherit fetchurl stdenv libpng zlib imagemagick 1637 pkgconfig libgsf libxml2 bzip2 glib; ··· 2061 }; 2062 }); 2063 2064 - haskellPackages_ghc6121 = import ./haskell-packages.nix { 2065 inherit pkgs; 2066 ghc = import ../development/compilers/ghc/6.12.1.nix { 2067 inherit fetchurl stdenv perl ncurses gmp; 2068 ghc = ghc6101Binary; 2069 }; 2070 - }; 2071 2072 haskellPackages_ghcHEAD = import ./haskell-packages.nix { 2073 inherit pkgs; ··· 2171 inherit stdenv perl; 2172 }; 2173 2174 - monotone = import ../applications/version-management/monotone { 2175 - inherit stdenv fetchurl boost zlib botan libidn pcre 2176 - sqlite lib perl; 2177 - lua = lua5; 2178 - }; 2179 - 2180 - monotoneViz = builderDefsPackage (import ../applications/version-management/monotone-viz/mtn-head.nix) { 2181 - inherit ocaml lablgtk graphviz pkgconfig autoconf automake libtool; 2182 - inherit (gnome) gtk libgnomecanvas glib; 2183 - }; 2184 - 2185 - viewMtn = builderDefsPackage (import ../applications/version-management/viewmtn/0.10.nix) 2186 - { 2187 - inherit monotone flup cheetahTemplate highlight ctags 2188 - makeWrapper graphviz which python; 2189 }; 2190 2191 neko = import ../development/compilers/neko { ··· 2439 if stdenv.isDarwin then null else unixODBC; 2440 }; 2441 2442 - php = import ../development/interpreters/php_configurable { 2443 inherit 2444 stdenv fetchurl lib composableDerivation autoconf automake 2445 flex bison apacheHttpd mysql libxml2 # gettext 2446 zlib curl gd postgresql openssl pkgconfig sqlite getConfig; 2447 }; 2448 2449 pltScheme = builderDefsPackage (import ../development/interpreters/plt-scheme) { 2450 inherit cairo fontconfig freetype libjpeg libpng openssl 2451 perl mesa zlib which; ··· 2460 2461 python = if getConfig ["python" "full"] false then pythonFull else pythonBase; 2462 python25 = if getConfig ["python" "full"] false then python25Full else python25Base; 2463 pythonBase = python25Base; 2464 pythonFull = python25Full; 2465 ··· 2727 }; 2728 2729 buildbot = import ../development/tools/build-managers/buildbot { 2730 - inherit fetchurl stdenv python twisted makeWrapper; 2731 }; 2732 2733 byacc = import ../development/tools/parsing/byacc { ··· 3228 inherit fetchurl stdenv pkgconfig cairo x11 fontconfig freetype libsigcxx; 3229 }; 3230 3231 ccrtp = import ../development/libraries/ccrtp { 3232 inherit fetchurl stdenv lib pkgconfig openssl libgcrypt commoncpp2; 3233 }; ··· 3327 inherit fetchurl stdenv pkgconfig gettext dbus expat glib; 3328 }; 3329 3330 dclib = import ../development/libraries/dclib { 3331 inherit fetchurl stdenv libxml2 openssl bzip2; 3332 }; ··· 3341 enchant = makeOverridable (import ../development/libraries/enchant) { 3342 inherit fetchurl stdenv aspell pkgconfig; 3343 inherit (gnome) glib; 3344 }; 3345 3346 exiv2 = import ../development/libraries/exiv2 { ··· 3402 3403 fltk11 = (import ../development/libraries/fltk/fltk11.nix) { 3404 inherit composableDerivation x11 lib pkgconfig freeglut; 3405 - inherit fetchurl stdenv mesa mesaHeaders libpng libjpeg zlib ; 3406 inherit (xlibs) inputproto libXi libXinerama libXft; 3407 flags = [ "useNixLibs" "threads" "shared" "gl" ]; 3408 }; 3409 3410 fltk20 = (import ../development/libraries/fltk) { 3411 inherit composableDerivation x11 lib pkgconfig freeglut; 3412 - inherit fetchurl stdenv mesa mesaHeaders libpng libjpeg zlib ; 3413 inherit (xlibs) inputproto libXi libXinerama libXft; 3414 flags = [ "useNixLibs" "threads" "shared" "gl" ]; 3415 }; ··· 4014 inherit fetchurl stdenv gettext; 4015 }; 4016 4017 - libextractor = composedArgsAndFun (import ../development/libraries/libextractor/0.5.18.nix) { 4018 - inherit fetchurl stdenv builderDefs zlib; 4019 }; 4020 4021 libffcall = builderDefsPackage (import ../development/libraries/libffcall) { ··· 4104 libtool = libtool_1_5; 4105 }; 4106 4107 libjpegStatic = lowPrio (appendToName "static" (libjpeg.override { 4108 static = true; 4109 })); ··· 4114 4115 libmad = import ../development/libraries/libmad { 4116 inherit fetchurl stdenv; 4117 }; 4118 4119 libmcs = import ../development/libraries/libmcs { ··· 4144 inherit fetchurl stdenv; 4145 }; 4146 4147 libnova = import ../development/libraries/libnova { 4148 inherit fetchurl stdenv; 4149 }; ··· 4162 4163 libotr = import ../development/libraries/libotr { 4164 inherit fetchurl stdenv libgcrypt; 4165 }; 4166 4167 libpcap = import ../development/libraries/libpcap { ··· 4349 inherit fetchurl stdenv pkgconfig expat x11 xlibs libdrm; 4350 }; 4351 4352 - mesaHeaders = import ../development/libraries/mesa/headers.nix { 4353 - inherit stdenv; 4354 - mesaSrc = mesa.src; 4355 - }; 4356 - 4357 ming = import ../development/libraries/ming { 4358 inherit fetchurl stdenv flex bison freetype zlib libpng perl; 4359 }; ··· 4431 inherit fetchurl stdenv mesa qt4 tcl tk; 4432 }; 4433 4434 # this ctl version is needed by openexr_viewers 4435 openexr_ctl = import ../development/libraries/openexr_ctl { 4436 inherit fetchurl stdenv ilmbase ctl; ··· 4460 pkgconfig; 4461 }; 4462 4463 openssl = makeOverridable (import ../development/libraries/openssl) { 4464 fetchurl = fetchurlBoot; 4465 inherit stdenv perl; ··· 4487 plib = import ../development/libraries/plib { 4488 inherit fetchurl stdenv mesa freeglut SDL; 4489 inherit (xlibs) libXi libSM libXmu libXext libX11; 4490 }; 4491 4492 polkit = import ../development/libraries/polkit { ··· 4967 inherit python setuptools makeWrapper lib; 4968 }; 4969 4970 pythonPackages = recurseIntoAttrs (import ./python-packages.nix { 4971 inherit pkgs; 4972 }); 4973 4974 foursuite = import ../development/python-modules/4suite { ··· 4991 4992 pil = import ../development/python-modules/pil { 4993 inherit fetchurl stdenv python zlib libjpeg freetype; 4994 }; 4995 4996 psyco = import ../development/python-modules/psyco { ··· 5049 inherit stdenv fetchurl lib python; 5050 }; 5051 5052 pyqt = builderDefsPackage (import ../development/python-modules/pyqt/4.3.3.nix) { 5053 inherit pkgconfig python pythonSip glib; 5054 inherit (xlibs) libX11 libXext; ··· 5060 qt4 = qt45; 5061 }; 5062 5063 pyx = import ../development/python-modules/pyx { 5064 inherit fetchurl stdenv python makeWrapper; 5065 }; ··· 5070 5071 setuptools = builderDefsPackage (import ../development/python-modules/setuptools) { 5072 inherit python makeWrapper; 5073 }; 5074 5075 wxPython = wxPython26; ··· 5304 5305 xorg = recurseIntoAttrs (import ../servers/x11/xorg/default.nix { 5306 inherit fetchurl fetchsvn stdenv pkgconfig freetype fontconfig 5307 - libxslt expat libdrm libpng zlib perl mesa mesaHeaders 5308 xkeyboard_config dbus hal libuuid openssl gperf m4 5309 automake autoconf libtool; 5310 ··· 5417 inherit stdenv; 5418 }; 5419 5420 - devicemapper = import ../os-specific/linux/device-mapper { 5421 - inherit fetchurl stdenv; 5422 - }; 5423 5424 dmidecode = import ../os-specific/linux/dmidecode { 5425 inherit fetchurl stdenv; ··· 5620 kernelPatches = []; 5621 }; 5622 5623 - linux_2_6_31_zen5 = makeOverridable (import ../os-specific/linux/zen-kernel/2.6.31-zen5.nix) { 5624 - inherit fetchurl stdenv perl mktemp module_init_tools 5625 - lib builderDefs; 5626 inherit platform; 5627 }; 5628 5629 - linux_2_6_31_zen5_bfs = linux_2_6_31_zen5.override { 5630 - ckSched = true; 5631 }; 5632 5633 - linux_2_6_31_zen7 = makeOverridable (import ../os-specific/linux/zen-kernel/zen-stable.nix) { 5634 - inherit fetchurl stdenv perl mktemp module_init_tools 5635 - lib builderDefs; 5636 }; 5637 5638 - linux_2_6_31_zen7_bfs = linux_2_6_31_zen7.override { 5639 - ckSched = true; 5640 - }; 5641 - 5642 - linux_2_6_31_zen = linux_2_6_31_zen7; 5643 - linux_2_6_31_zen_bfs = linux_2_6_31_zen7_bfs; 5644 - 5645 - linux_2_6_32 = makeOverridable (import ../os-specific/linux/kernel/linux-2.6.32.nix) { 5646 - inherit fetchurl stdenv perl mktemp module_init_tools platform; 5647 - kernelPatches = 5648 - [ kernelPatches.fbcondecor_2_6_31 5649 - kernelPatches.sec_perm_2_6_24 5650 - ]; 5651 }; 5652 5653 /* Linux kernel modules are inherently tied to a specific kernel. So ··· 5776 linuxPackages_2_6_27 = recurseIntoAttrs (linuxPackagesFor linux_2_6_27); 5777 linuxPackages_2_6_28 = recurseIntoAttrs (linuxPackagesFor linux_2_6_28); 5778 linuxPackages_2_6_29 = recurseIntoAttrs (linuxPackagesFor linux_2_6_29); 5779 - linuxPackages_2_6_31_zen5 = recurseIntoAttrs (linuxPackagesFor linux_2_6_31_zen5); 5780 - linuxPackages_2_6_31_zen = recurseIntoAttrs (linuxPackagesFor linux_2_6_31_zen); 5781 - linuxPackages_2_6_31_zen_bfs = recurseIntoAttrs (linuxPackagesFor linux_2_6_31_zen_bfs); 5782 linuxPackages_2_6_31 = recurseIntoAttrs (linuxPackagesFor linux_2_6_31); 5783 linuxPackages_2_6_32 = recurseIntoAttrs (linuxPackagesFor linux_2_6_32); 5784 5785 - # The current default Linux kernel & modules. 5786 - linuxPackages = linuxPackages_2_6_28; 5787 5788 customKernel = composedArgsAndFun (lib.sumTwoArgs (import ../os-specific/linux/kernel/generic.nix) { 5789 inherit fetchurl stdenv perl mktemp module_init_tools; ··· 5867 }; 5868 5869 lvm2 = import ../os-specific/linux/lvm2 { 5870 - inherit fetchurl stdenv devicemapper; 5871 }; 5872 5873 mdadm = import ../os-specific/linux/mdadm { ··· 5920 pam = import ../os-specific/linux/pam { 5921 inherit stdenv fetchurl cracklib flex; 5922 }; 5923 5924 pam_console = import ../os-specific/linux/pam_console { 5925 inherit stdenv fetchurl pam autoconf automake pkgconfig bison glib; ··· 5943 inherit stdenv fetchurl pam; 5944 }; 5945 5946 pcmciaUtils = composedArgsAndFun (import ../os-specific/linux/pcmciautils) { 5947 inherit stdenv fetchurl udev yacc flex; 5948 inherit sysfsutils module_init_tools; ··· 5950 firmware = getConfig ["pcmciaUtils" "firmware"] []; 5951 config = getConfig ["pcmciaUtils" "config"] null; 5952 inherit lib; 5953 }; 5954 5955 pmutils = import ../os-specific/linux/pm-utils { ··· 6469 inherit fetchurl stdenv ncurses; 6470 }; 6471 6472 carrier = builderDefsPackage (import ../applications/networking/instant-messengers/carrier/2.5.0.nix) { 6473 inherit fetchurl stdenv pkgconfig perl perlXMLParser libxml2 openssl nss 6474 gtkspell aspell gettext ncurses avahi dbus dbus_glib python ··· 6503 }; 6504 6505 chrome = import ../applications/networking/browsers/chromium { 6506 - inherit stdenv fetchurl ffmpeg cairo nspr nss fontconfig freetype alsaLib makeWrapper unzip expat zlib; 6507 inherit (xlibs) libX11 libXext libXrender libXt ; 6508 inherit (gtkLibs) gtk glib pango atk; 6509 inherit (gnome) GConf; 6510 }; 6511 6512 chromeWrapper = wrapFirefox chrome "chrome" ""; ··· 6617 inherit (gtkLibs) gtk glib; 6618 }; 6619 6620 - darcs = haskellPackages.darcs; 6621 6622 dia = import ../applications/graphics/dia { 6623 inherit stdenv fetchurl pkgconfig perl perlXMLParser ··· 6910 inherit fetchurl stdenv zlib alsaLib curl nss nspr fontconfig freetype expat; 6911 inherit (xlibs) libX11 libXext libXrender libXt ; 6912 inherit (gtkLibs) gtk glib pango atk; 6913 }); 6914 6915 flite = import ../applications/misc/flite { ··· 7117 icecatWrapper = wrapFirefox icecat3Xul "icecat" ""; 7118 7119 icewm = import ../applications/window-managers/icewm { 7120 - inherit fetchurl stdenv gettext libjpeg libtiff libungif libpng imlib; 7121 - inherit (xlibs) libX11 libXft libXext libXinerama libXrandr; 7122 }; 7123 7124 ikiwiki = makeOverridable (import ../applications/misc/ikiwiki) { ··· 7324 gtksharp = gtksharp1; 7325 }; 7326 7327 mozilla = import ../applications/networking/browsers/mozilla { 7328 inherit fetchurl pkgconfig stdenv perl zip; 7329 inherit (gtkLibs) gtk; ··· 7461 }; 7462 7463 pidgin = import ../applications/networking/instant-messengers/pidgin { 7464 - inherit fetchurl stdenv pkgconfig perl perlXMLParser libxml2 nss nspr farsight2 7465 gtkspell aspell gettext ncurses avahi dbus dbus_glib lib intltool libidn; 7466 openssl = if (getConfig ["pidgin" "openssl"] true) then openssl else null; 7467 gnutls = if (getConfig ["pidgin" "gnutls"] false) then gnutls else null; ··· 7512 inherit fetchurl stdenv pkgconfig imagemagick boost python; 7513 }; 7514 7515 - qemu = import ../applications/virtualization/qemu/0.11.0.nix { 7516 inherit stdenv fetchurl SDL zlib which; 7517 }; 7518 ··· 7553 }); 7554 7555 rsync = import ../applications/networking/sync/rsync { 7556 - inherit fetchurl stdenv acl; 7557 enableACLs = !stdenv.isDarwin; 7558 }; 7559 ··· 7696 inherit fetchurl stdenv; 7697 }; 7698 7699 - thunderbird = import ../applications/networking/mailreaders/thunderbird-2.x { 7700 inherit fetchurl stdenv pkgconfig perl zip libjpeg libpng zlib cairo; 7701 inherit (gtkLibs) gtk; 7702 inherit (gnome) libIDL; 7703 inherit (xlibs) libXi; 7704 - #enableOfficialBranding = true; 7705 }; 7706 7707 - /* 7708 - Despaired. Looks like ThunderBird-on-Firefox's-Xulrunner is non-trivial 7709 - 7710 - thunderbird3 = lowPrio (import ../applications/networking/mailreaders/thunderbird-3.x { 7711 - inherit fetchurl stdenv pkgconfig perl zip libjpeg zlib cairo 7712 - python dbus dbus_glib freetype fontconfig bzip2 libpng alsaLib sqlite 7713 - patchelf nspr; 7714 - inherit (gtkLibs) gtk pango; 7715 inherit (gnome) libIDL; 7716 - #enableOfficialBranding = true; 7717 - xulrunner = xulrunner35; 7718 - autoconf = autoconf213; 7719 - });*/ 7720 7721 timidity = import ../tools/misc/timidity { 7722 inherit fetchurl stdenv lib alsaLib composableDerivation jackaudio ncurses; ··· 7763 valknut = import ../applications/networking/p2p/valknut { 7764 inherit fetchurl stdenv perl x11 libxml2 libjpeg libpng openssl dclib; 7765 qt = qt3; 7766 }; 7767 7768 vim = import ../applications/editors/vim { ··· 7894 inherit fetchurl stdenv chmlib wxGTK; 7895 }; 7896 7897 /* Doesn't work yet 7898 7899 xen = builderDefsPackage (import ../applications/virtualization/xen) { ··· 8259 8260 kde4 = kde43; 8261 8262 - kde43 = import ../desktops/kde-4.3 (pkgs // { 8263 openexr = openexr_1_6_1; 8264 qt4 = qt45; 8265 popplerQt4 = popplerQt45; ··· 8717 wine = 8718 if system == "x86_64-linux" then 8719 # Can't build this in 64-bit; use a 32-bit build instead. 8720 - (import ./all-packages.nix {system = "i686-linux";}).wine 8721 # some hackery to make nix-env show this package on x86_64... 8722 // {system = "x86_64-linux";} 8723 else 8724 import ../misc/emulators/wine { 8725 - inherit fetchurl stdenv flex bison mesa ncurses 8726 libpng libjpeg alsaLib lcms xlibs freetype 8727 fontconfig fontforge libxml2 libxslt openssl; 8728 }; 8729 8730 xosd = import ../misc/xosd {
··· 78 79 # Helper functions that are exported through `pkgs'. 80 helperFunctions = 81 + stdenvAdapters // 82 (import ../build-support/trivial-builders.nix { inherit (pkgs) stdenv; inherit (pkgs.xorg) lndir; }); 83 + 84 + stdenvAdapters = 85 + import ../stdenv/adapters.nix { inherit (pkgs) dietlibc fetchurl runCommand; }; 86 87 88 # Allow packages to be overriden globally via the `packageOverrides' ··· 104 # The package compositions. Yes, this isn't properly indented. 105 pkgsFun = __overrides: with helperFunctions; rec { 106 107 + # override system. This is useful to build i686 packages on x86_64-linux 108 + forceSystem = system: (import ./all-packages.nix) { 109 + inherit system; 110 + inherit bootStdenv noSysDirs gccWithCC gccWithProfiling config; 111 + }; 112 + 113 + # used by wine, firefox with debugging version of Flash, .. 114 + pkgsi686Linux = forceSystem "i686-linux"; 115 116 inherit __overrides; 117 ··· 135 ### Helper functions. 136 137 138 + inherit lib config getConfig stdenvAdapters; 139 140 inherit (lib) lowPrio appendToName makeOverridable; 141 ··· 342 }; 343 344 ec2apitools = import ../tools/virtualization/amazon-ec2-api-tools { 345 + inherit stdenv fetchurl unzip makeWrapper jre; 346 + }; 347 + 348 + ec2amitools = import ../tools/virtualization/amazon-ec2-ami-tools { 349 + inherit stdenv fetchurl unzip makeWrapper ruby openssl; 350 }; 351 352 amule = import ../tools/networking/p2p/amule { ··· 454 inherit fetchurl stdenv; 455 }; 456 457 + ncompress = import ../tools/compression/ncompress { 458 + inherit fetchurl stdenv; 459 + }; 460 + 461 bzip2 = useFromStdenv "bzip2" 462 (import ../tools/compression/bzip2 { 463 inherit fetchurl stdenv; ··· 465 466 cabextract = import ../tools/archivers/cabextract { 467 inherit fetchurl stdenv; 468 + }; 469 + 470 + ccid = import ../tools/security/ccid { 471 + inherit fetchurl stdenv pcsclite libusb pkgconfig perl; 472 }; 473 474 ccrypt = import ../tools/security/ccrypt { ··· 708 inherit fetchurl stdenv gettext freetype zlib 709 libungif libpng libjpeg libtiff libxml2 lib; 710 inherit (xlibs) libX11 xproto libXt; 711 + }; 712 + 713 + dos2unix = import ../tools/text/dos2unix { 714 + inherit fetchurl stdenv; 715 + }; 716 + 717 + unix2dos = import ../tools/text/unix2dos { 718 + inherit fetchurl stdenv; 719 }; 720 721 gawk = useFromStdenv "gawk" ··· 1092 }; 1093 }); 1094 1095 + muscleframework = import ../tools/security/muscleframework { 1096 + inherit fetchurl stdenv libmusclecard pkgconfig pcsclite; 1097 + }; 1098 + 1099 + muscletool = import ../tools/security/muscletool { 1100 + inherit fetchurl stdenv pkgconfig libmusclecard pcsclite; 1101 + }; 1102 + 1103 mysql2pgsql = import ../tools/misc/mysql2pgsql { 1104 inherit fetchurl stdenv perl shebangfix; 1105 }; ··· 1133 }; 1134 1135 netpbm = import ../tools/graphics/netpbm { 1136 + inherit stdenv fetchsvn libjpeg libpng zlib flex perl libxml2 makeWrapper; 1137 }; 1138 1139 netselect = import ../tools/networking/netselect { ··· 1189 inherit fetchurl stdenv pkgconfig bluez libusb; 1190 }; 1191 1192 + opensc_0_11_7 = import ../tools/security/opensc/0.11.7.nix { 1193 + inherit fetchurl stdenv libtool readline zlib openssl libiconv pcsclite 1194 + libassuan pkgconfig; 1195 + inherit (xlibs) libXt; 1196 + }; 1197 + 1198 + opensc = opensc_0_11_7; 1199 + 1200 openssh = import ../tools/networking/openssh { 1201 inherit fetchurl stdenv zlib openssl pam perl; 1202 pamSupport = getPkgConfig "openssh" "pam" true; ··· 1230 }; 1231 1232 parted = import ../tools/misc/parted { 1233 + inherit fetchurl stdenv devicemapper libuuid gettext readline 1234 + utillinuxng; 1235 }; 1236 1237 patch = gnupatch; ··· 1242 1243 pciutils = import ../tools/system/pciutils { 1244 inherit fetchurl stdenv zlib; 1245 + }; 1246 + 1247 + pcsclite = import ../tools/security/pcsclite { 1248 + inherit fetchurl stdenv hal pkgconfig dbus; 1249 }; 1250 1251 pdf2djvu = import ../tools/typesetting/pdf2djvu { ··· 1684 inherit fetchurl stdenv readline; 1685 }; 1686 1687 + wicd = import ../tools/networking/wicd { 1688 + inherit stdenv fetchurl python pygobject pycairo pyGtkGlade pythonDBus 1689 + wpa_supplicant dhcp wirelesstools nettools iproute; 1690 + }; 1691 + 1692 wv = import ../tools/misc/wv { 1693 inherit fetchurl stdenv libpng zlib imagemagick 1694 pkgconfig libgsf libxml2 bzip2 glib; ··· 2118 }; 2119 }); 2120 2121 + # make this ghc default when it's supported by the Haskell Platform 2122 + haskellPackages_ghc6121 = lowPrio (import ./haskell-packages.nix { 2123 inherit pkgs; 2124 ghc = import ../development/compilers/ghc/6.12.1.nix { 2125 inherit fetchurl stdenv perl ncurses gmp; 2126 ghc = ghc6101Binary; 2127 }; 2128 + }); 2129 2130 haskellPackages_ghcHEAD = import ./haskell-packages.nix { 2131 inherit pkgs; ··· 2229 inherit stdenv perl; 2230 }; 2231 2232 + mozart = import ../development/compilers/mozart { 2233 + inherit fetchurl stdenv flex bison perl gmp zlib tcl tk gdbm m4 x11 emacs; 2234 }; 2235 2236 neko = import ../development/compilers/neko { ··· 2484 if stdenv.isDarwin then null else unixODBC; 2485 }; 2486 2487 + php = makeOverridable (import ../development/interpreters/php_configurable) { 2488 inherit 2489 stdenv fetchurl lib composableDerivation autoconf automake 2490 flex bison apacheHttpd mysql libxml2 # gettext 2491 zlib curl gd postgresql openssl pkgconfig sqlite getConfig; 2492 }; 2493 2494 + phpXdebug = import ../development/interpreters/php-xdebug { 2495 + inherit stdenv fetchurl php autoconf automake; 2496 + }; 2497 + 2498 + phpIniBuilder = makeOverridable (import ../development/interpreters/php/ini-bulider.nix) { 2499 + inherit php runCommand; 2500 + }; 2501 + 2502 pltScheme = builderDefsPackage (import ../development/interpreters/plt-scheme) { 2503 inherit cairo fontconfig freetype libjpeg libpng openssl 2504 perl mesa zlib which; ··· 2513 2514 python = if getConfig ["python" "full"] false then pythonFull else pythonBase; 2515 python25 = if getConfig ["python" "full"] false then python25Full else python25Base; 2516 + python26 = if getConfig ["python" "full"] false then python26Full else python26Base; 2517 pythonBase = python25Base; 2518 pythonFull = python25Full; 2519 ··· 2781 }; 2782 2783 buildbot = import ../development/tools/build-managers/buildbot { 2784 + inherit fetchurl stdenv buildPythonPackage texinfo; 2785 + inherit (pythonPackages) twisted; 2786 }; 2787 2788 byacc = import ../development/tools/parsing/byacc { ··· 3283 inherit fetchurl stdenv pkgconfig cairo x11 fontconfig freetype libsigcxx; 3284 }; 3285 3286 + scmccid = import ../development/libraries/scmccid { 3287 + inherit fetchurl stdenv libusb patchelf; 3288 + }; 3289 + 3290 ccrtp = import ../development/libraries/ccrtp { 3291 inherit fetchurl stdenv lib pkgconfig openssl libgcrypt commoncpp2; 3292 }; ··· 3386 inherit fetchurl stdenv pkgconfig gettext dbus expat glib; 3387 }; 3388 3389 + dbus_java = import ../development/libraries/java/dbus-java { 3390 + inherit stdenv fetchurl gettext jdk libmatthew_java; 3391 + }; 3392 + 3393 dclib = import ../development/libraries/dclib { 3394 inherit fetchurl stdenv libxml2 openssl bzip2; 3395 }; ··· 3404 enchant = makeOverridable (import ../development/libraries/enchant) { 3405 inherit fetchurl stdenv aspell pkgconfig; 3406 inherit (gnome) glib; 3407 + }; 3408 + 3409 + enginepkcs11 = import ../development/libraries/enginepkcs11 { 3410 + inherit fetchurl stdenv libp11 pkgconfig openssl; 3411 }; 3412 3413 exiv2 = import ../development/libraries/exiv2 { ··· 3469 3470 fltk11 = (import ../development/libraries/fltk/fltk11.nix) { 3471 inherit composableDerivation x11 lib pkgconfig freeglut; 3472 + inherit fetchurl stdenv mesa libpng libjpeg zlib ; 3473 inherit (xlibs) inputproto libXi libXinerama libXft; 3474 flags = [ "useNixLibs" "threads" "shared" "gl" ]; 3475 }; 3476 3477 fltk20 = (import ../development/libraries/fltk) { 3478 inherit composableDerivation x11 lib pkgconfig freeglut; 3479 + inherit fetchurl stdenv mesa libpng libjpeg zlib ; 3480 inherit (xlibs) inputproto libXi libXinerama libXft; 3481 flags = [ "useNixLibs" "threads" "shared" "gl" ]; 3482 }; ··· 4081 inherit fetchurl stdenv gettext; 4082 }; 4083 4084 + libextractor = import ../development/libraries/libextractor { 4085 + inherit fetchurl stdenv libtool gettext zlib bzip2 flac libvorbis 4086 + exiv2 ffmpeg libgsf glib rpm pkgconfig; 4087 + inherit (gnome) gtk; 4088 + libmpeg2 = mpeg2dec; 4089 }; 4090 4091 libffcall = builderDefsPackage (import ../development/libraries/libffcall) { ··· 4174 libtool = libtool_1_5; 4175 }; 4176 4177 + libjpeg62 = makeOverridable (import ../development/libraries/libjpeg/62.nix) { 4178 + inherit fetchurl stdenv; 4179 + libtool = libtool_1_5; 4180 + }; 4181 + 4182 libjpegStatic = lowPrio (appendToName "static" (libjpeg.override { 4183 static = true; 4184 })); ··· 4189 4190 libmad = import ../development/libraries/libmad { 4191 inherit fetchurl stdenv; 4192 + }; 4193 + 4194 + libmatthew_java = import ../development/libraries/java/libmatthew-java { 4195 + inherit stdenv fetchurl jdk; 4196 }; 4197 4198 libmcs = import ../development/libraries/libmcs { ··· 4223 inherit fetchurl stdenv; 4224 }; 4225 4226 + libmusclecard = import ../development/libraries/libmusclecard { 4227 + inherit fetchurl stdenv pkgconfig pcsclite; 4228 + }; 4229 + 4230 libnova = import ../development/libraries/libnova { 4231 inherit fetchurl stdenv; 4232 }; ··· 4245 4246 libotr = import ../development/libraries/libotr { 4247 inherit fetchurl stdenv libgcrypt; 4248 + }; 4249 + 4250 + libp11 = import ../development/libraries/libp11 { 4251 + inherit fetchurl stdenv libtool openssl pkgconfig; 4252 }; 4253 4254 libpcap = import ../development/libraries/libpcap { ··· 4436 inherit fetchurl stdenv pkgconfig expat x11 xlibs libdrm; 4437 }; 4438 4439 ming = import ../development/libraries/ming { 4440 inherit fetchurl stdenv flex bison freetype zlib libpng perl; 4441 }; ··· 4513 inherit fetchurl stdenv mesa qt4 tcl tk; 4514 }; 4515 4516 + openct = import ../development/libraries/openct { 4517 + inherit fetchurl stdenv libtool pcsclite libusb pkgconfig; 4518 + }; 4519 + 4520 # this ctl version is needed by openexr_viewers 4521 openexr_ctl = import ../development/libraries/openexr_ctl { 4522 inherit fetchurl stdenv ilmbase ctl; ··· 4546 pkgconfig; 4547 }; 4548 4549 + opensc_dnie = import ../development/libraries/opensc-dnie { 4550 + inherit fetchurl stdenv patchelf writeScript openssl openct 4551 + libtool pcsclite zlib; 4552 + inherit (gtkLibs) glib; 4553 + opensc = opensc_0_11_7; 4554 + }; 4555 + 4556 openssl = makeOverridable (import ../development/libraries/openssl) { 4557 fetchurl = fetchurlBoot; 4558 inherit stdenv perl; ··· 4580 plib = import ../development/libraries/plib { 4581 inherit fetchurl stdenv mesa freeglut SDL; 4582 inherit (xlibs) libXi libSM libXmu libXext libX11; 4583 + }; 4584 + 4585 + podofo = import ../development/libraries/podofo { 4586 + inherit fetchurl stdenv cmake zlib freetype libjpeg libtiff 4587 + fontconfig openssl; 4588 }; 4589 4590 polkit = import ../development/libraries/polkit { ··· 5065 inherit python setuptools makeWrapper lib; 5066 }; 5067 5068 + buildPython26Package = 5069 + import ../development/python-modules/generic { 5070 + inherit makeWrapper lib; 5071 + python = python26; 5072 + setuptools = setuptools_python26; 5073 + }; 5074 + 5075 pythonPackages = recurseIntoAttrs (import ./python-packages.nix { 5076 + inherit pkgs python buildPythonPackage; 5077 + }); 5078 + 5079 + python26Packages = recurseIntoAttrs (import ./python-packages.nix { 5080 inherit pkgs; 5081 + python = python26; 5082 + buildPythonPackage = buildPython26Package; 5083 }); 5084 5085 foursuite = import ../development/python-modules/4suite { ··· 5102 5103 pil = import ../development/python-modules/pil { 5104 inherit fetchurl stdenv python zlib libjpeg freetype; 5105 + }; 5106 + 5107 + pil_python26 = import ../development/python-modules/pil { 5108 + inherit fetchurl stdenv zlib libjpeg freetype; 5109 + python = python26; 5110 }; 5111 5112 psyco = import ../development/python-modules/psyco { ··· 5165 inherit stdenv fetchurl lib python; 5166 }; 5167 5168 + sip_python26 = import ../development/python-modules/python-sip { 5169 + inherit stdenv fetchurl lib; 5170 + python = python26; 5171 + }; 5172 + 5173 pyqt = builderDefsPackage (import ../development/python-modules/pyqt/4.3.3.nix) { 5174 inherit pkgconfig python pythonSip glib; 5175 inherit (xlibs) libX11 libXext; ··· 5181 qt4 = qt45; 5182 }; 5183 5184 + pyqt4_python26 = import ../development/python-modules/pyqt { 5185 + inherit stdenv fetchurl lib; 5186 + qt4 = qt45; 5187 + python = python26; 5188 + sip = sip_python26; 5189 + }; 5190 + 5191 pyx = import ../development/python-modules/pyx { 5192 inherit fetchurl stdenv python makeWrapper; 5193 }; ··· 5198 5199 setuptools = builderDefsPackage (import ../development/python-modules/setuptools) { 5200 inherit python makeWrapper; 5201 + }; 5202 + 5203 + setuptools_python26 = builderDefsPackage (import ../development/python-modules/setuptools) { 5204 + inherit makeWrapper; 5205 + python = python26; 5206 }; 5207 5208 wxPython = wxPython26; ··· 5437 5438 xorg = recurseIntoAttrs (import ../servers/x11/xorg/default.nix { 5439 inherit fetchurl fetchsvn stdenv pkgconfig freetype fontconfig 5440 + libxslt expat libdrm libpng zlib perl mesa 5441 xkeyboard_config dbus hal libuuid openssl gperf m4 5442 automake autoconf libtool; 5443 ··· 5550 inherit stdenv; 5551 }; 5552 5553 + devicemapper = lvm2; 5554 5555 dmidecode = import ../os-specific/linux/dmidecode { 5556 inherit fetchurl stdenv; ··· 5751 kernelPatches = []; 5752 }; 5753 5754 + linux_2_6_32 = makeOverridable (import ../os-specific/linux/kernel/linux-2.6.32.nix) { 5755 + inherit fetchurl stdenv perl mktemp module_init_tools; 5756 + kernelPatches = 5757 + [ kernelPatches.fbcondecor_2_6_31 5758 + kernelPatches.sec_perm_2_6_24 5759 + ]; 5760 inherit platform; 5761 }; 5762 5763 + linux_2_6_32_zen4 = makeOverridable (import ../os-specific/linux/zen-kernel/2.6.32-zen4.nix) { 5764 + inherit fetchurl stdenv perl mktemp module_init_tools runCommand xz; 5765 }; 5766 5767 + linux_2_6_32_zen4_oldi686 = linux_2_6_32_zen4.override { 5768 + features = { 5769 + oldI686 = true; 5770 + }; 5771 }; 5772 5773 + linux_2_6_32_zen4_bfs = linux_2_6_32_zen4.override { 5774 + features = { 5775 + ckSched = true; 5776 + }; 5777 }; 5778 5779 /* Linux kernel modules are inherently tied to a specific kernel. So ··· 5902 linuxPackages_2_6_27 = recurseIntoAttrs (linuxPackagesFor linux_2_6_27); 5903 linuxPackages_2_6_28 = recurseIntoAttrs (linuxPackagesFor linux_2_6_28); 5904 linuxPackages_2_6_29 = recurseIntoAttrs (linuxPackagesFor linux_2_6_29); 5905 linuxPackages_2_6_31 = recurseIntoAttrs (linuxPackagesFor linux_2_6_31); 5906 linuxPackages_2_6_32 = recurseIntoAttrs (linuxPackagesFor linux_2_6_32); 5907 5908 + # The current default kernel / kernel modules. 5909 + linux = linux_2_6_32; 5910 + linuxPackages = linuxPackagesFor linux; 5911 5912 customKernel = composedArgsAndFun (lib.sumTwoArgs (import ../os-specific/linux/kernel/generic.nix) { 5913 inherit fetchurl stdenv perl mktemp module_init_tools; ··· 5991 }; 5992 5993 lvm2 = import ../os-specific/linux/lvm2 { 5994 + inherit fetchurl stdenv; 5995 }; 5996 5997 mdadm = import ../os-specific/linux/mdadm { ··· 6044 pam = import ../os-specific/linux/pam { 6045 inherit stdenv fetchurl cracklib flex; 6046 }; 6047 + 6048 + # pam_bioapi ( see http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader ) 6049 6050 pam_console = import ../os-specific/linux/pam_console { 6051 inherit stdenv fetchurl pam autoconf automake pkgconfig bison glib; ··· 6069 inherit stdenv fetchurl pam; 6070 }; 6071 6072 + pam_usb = import ../os-specific/linux/pam_usb { 6073 + inherit stdenv fetchurl makeWrapper useSetUID dbus libxml2 pam hal pkgconfig pmount python pythonDBus; 6074 + }; 6075 + 6076 pcmciaUtils = composedArgsAndFun (import ../os-specific/linux/pcmciautils) { 6077 inherit stdenv fetchurl udev yacc flex; 6078 inherit sysfsutils module_init_tools; ··· 6080 firmware = getConfig ["pcmciaUtils" "firmware"] []; 6081 config = getConfig ["pcmciaUtils" "config"] null; 6082 inherit lib; 6083 + }; 6084 + 6085 + pmount = import ../os-specific/linux/pmount { 6086 + inherit fetchurl stdenv cryptsetup dbus dbus_glib hal intltool ntfs3g utillinuxng; 6087 }; 6088 6089 pmutils = import ../os-specific/linux/pm-utils { ··· 6603 inherit fetchurl stdenv ncurses; 6604 }; 6605 6606 + calibre = import ../applications/misc/calibre { 6607 + inherit stdenv fetchurl libpng imagemagick pkgconfig libjpeg fontconfig podofo 6608 + qt4 makeWrapper unrar; 6609 + python = python26Full; 6610 + pyqt4 = pyqt4_python26; 6611 + sip = sip_python26; 6612 + pil = pil_python26; 6613 + popplerQt4 = popplerQt45; 6614 + inherit (python26Packages) mechanize lxml dateutil; 6615 + }; 6616 + 6617 carrier = builderDefsPackage (import ../applications/networking/instant-messengers/carrier/2.5.0.nix) { 6618 inherit fetchurl stdenv pkgconfig perl perlXMLParser libxml2 openssl nss 6619 gtkspell aspell gettext ncurses avahi dbus dbus_glib python ··· 6648 }; 6649 6650 chrome = import ../applications/networking/browsers/chromium { 6651 + inherit stdenv fetchurl ffmpeg cairo nspr nss fontconfig freetype alsaLib makeWrapper unzip expat zlib bzip2 libpng; 6652 inherit (xlibs) libX11 libXext libXrender libXt ; 6653 inherit (gtkLibs) gtk glib pango atk; 6654 inherit (gnome) GConf; 6655 + libjpeg = libjpeg62; 6656 }; 6657 6658 chromeWrapper = wrapFirefox chrome "chrome" ""; ··· 6763 inherit (gtkLibs) gtk glib; 6764 }; 6765 6766 + darcs = haskellPackages_ghc6104.darcs; 6767 6768 dia = import ../applications/graphics/dia { 6769 inherit stdenv fetchurl pkgconfig perl perlXMLParser ··· 7056 inherit fetchurl stdenv zlib alsaLib curl nss nspr fontconfig freetype expat; 7057 inherit (xlibs) libX11 libXext libXrender libXt ; 7058 inherit (gtkLibs) gtk glib pango atk; 7059 + debug = getConfig ["flashplayer" "debug"] false; 7060 }); 7061 7062 flite = import ../applications/misc/flite { ··· 7264 icecatWrapper = wrapFirefox icecat3Xul "icecat" ""; 7265 7266 icewm = import ../applications/window-managers/icewm { 7267 + inherit fetchurl stdenv gettext libjpeg libtiff libungif libpng imlib xlibs; 7268 }; 7269 7270 ikiwiki = makeOverridable (import ../applications/misc/ikiwiki) { ··· 7470 gtksharp = gtksharp1; 7471 }; 7472 7473 + monotone = import ../applications/version-management/monotone { 7474 + inherit stdenv fetchurl boost zlib botan libidn pcre 7475 + sqlite lib perl; 7476 + lua = lua5; 7477 + }; 7478 + 7479 + monotoneViz = builderDefsPackage (import ../applications/version-management/monotone-viz/mtn-head.nix) { 7480 + inherit ocaml lablgtk graphviz pkgconfig autoconf automake libtool; 7481 + inherit (gnome) gtk libgnomecanvas glib; 7482 + }; 7483 + 7484 mozilla = import ../applications/networking/browsers/mozilla { 7485 inherit fetchurl pkgconfig stdenv perl zip; 7486 inherit (gtkLibs) gtk; ··· 7618 }; 7619 7620 pidgin = import ../applications/networking/instant-messengers/pidgin { 7621 + inherit fetchurl stdenv pkgconfig perl perlXMLParser libxml2 nss nspr farsight2 python 7622 gtkspell aspell gettext ncurses avahi dbus dbus_glib lib intltool libidn; 7623 openssl = if (getConfig ["pidgin" "openssl"] true) then openssl else null; 7624 gnutls = if (getConfig ["pidgin" "gnutls"] false) then gnutls else null; ··· 7669 inherit fetchurl stdenv pkgconfig imagemagick boost python; 7670 }; 7671 7672 + qemu = import ../applications/virtualization/qemu/0.12.1.nix { 7673 inherit stdenv fetchurl SDL zlib which; 7674 }; 7675 ··· 7710 }); 7711 7712 rsync = import ../applications/networking/sync/rsync { 7713 + inherit fetchurl stdenv acl perl; 7714 enableACLs = !stdenv.isDarwin; 7715 }; 7716 ··· 7853 inherit fetchurl stdenv; 7854 }; 7855 7856 + thunderbird = thunderbird2; 7857 + 7858 + thunderbird2 = import ../applications/networking/mailreaders/thunderbird/2.x.nix { 7859 inherit fetchurl stdenv pkgconfig perl zip libjpeg libpng zlib cairo; 7860 inherit (gtkLibs) gtk; 7861 inherit (gnome) libIDL; 7862 inherit (xlibs) libXi; 7863 }; 7864 7865 + thunderbird3 = lowPrio (import ../applications/networking/mailreaders/thunderbird/3.x.nix { 7866 + inherit fetchurl stdenv pkgconfig perl python dbus_glib zip bzip2 alsaLib nspr; 7867 + inherit (gtkLibs) gtk; 7868 inherit (gnome) libIDL; 7869 + }); 7870 7871 timidity = import ../tools/misc/timidity { 7872 inherit fetchurl stdenv lib alsaLib composableDerivation jackaudio ncurses; ··· 7913 valknut = import ../applications/networking/p2p/valknut { 7914 inherit fetchurl stdenv perl x11 libxml2 libjpeg libpng openssl dclib; 7915 qt = qt3; 7916 + }; 7917 + 7918 + viewMtn = builderDefsPackage (import ../applications/version-management/viewmtn/0.10.nix) 7919 + { 7920 + inherit monotone flup cheetahTemplate highlight ctags 7921 + makeWrapper graphviz which python; 7922 }; 7923 7924 vim = import ../applications/editors/vim { ··· 8050 inherit fetchurl stdenv chmlib wxGTK; 8051 }; 8052 8053 + xcompmgr = import ../applications/window-managers/xcompmgr { 8054 + inherit stdenv fetchurl pkgconfig; 8055 + inherit (xlibs) libXcomposite libXfixes libXdamage libXrender; 8056 + }; 8057 + 8058 /* Doesn't work yet 8059 8060 xen = builderDefsPackage (import ../applications/virtualization/xen) { ··· 8420 8421 kde4 = kde43; 8422 8423 + kde43 = makeOverridable (import ../desktops/kde-4.3) (pkgs // { 8424 openexr = openexr_1_6_1; 8425 qt4 = qt45; 8426 popplerQt4 = popplerQt45; ··· 8878 wine = 8879 if system == "x86_64-linux" then 8880 # Can't build this in 64-bit; use a 32-bit build instead. 8881 + pkgsi686Linux.wine 8882 # some hackery to make nix-env show this package on x86_64... 8883 // {system = "x86_64-linux";} 8884 else 8885 import ../misc/emulators/wine { 8886 + inherit fetchurl stdenv bison mesa ncurses 8887 libpng libjpeg alsaLib lcms xlibs freetype 8888 fontconfig fontforge libxml2 libxslt openssl; 8889 + flex = flex2535; 8890 }; 8891 8892 xosd = import ../misc/xosd {
+3 -6
pkgs/top-level/haskell-packages.nix
··· 27 28 # Haskell libraries. 29 30 - # Agda depends on a specific version of QuickCheck 31 Agda = import ../development/libraries/haskell/Agda { 32 inherit cabal binary haskeline haskellSrc mtl utf8String xhtml zlib 33 happy alex; 34 - QuickCheck = QuickCheck2101; 35 }; 36 37 ansiTerminal = import ../development/libraries/haskell/ansi-terminal { ··· 403 }; 404 405 QuickCheck = QuickCheck1; 406 - QuickCheck1 = QuickCheck1200; 407 - QuickCheck2 = QuickCheck2101; 408 409 - QuickCheck1200 = import ../development/libraries/haskell/QuickCheck { 410 inherit cabal; 411 }; 412 413 - QuickCheck2101 = import ../development/libraries/haskell/QuickCheck/2.1.0.1.nix { 414 inherit cabal mtl; 415 }; 416
··· 27 28 # Haskell libraries. 29 30 Agda = import ../development/libraries/haskell/Agda { 31 inherit cabal binary haskeline haskellSrc mtl utf8String xhtml zlib 32 happy alex; 33 + QuickCheck = QuickCheck2; 34 }; 35 36 ansiTerminal = import ../development/libraries/haskell/ansi-terminal { ··· 402 }; 403 404 QuickCheck = QuickCheck1; 405 406 + QuickCheck1 = import ../development/libraries/haskell/QuickCheck { 407 inherit cabal; 408 }; 409 410 + QuickCheck2 = import ../development/libraries/haskell/QuickCheck/QuickCheck-2.nix { 411 inherit cabal mtl; 412 }; 413
+13 -2
pkgs/top-level/perl-packages.nix
··· 2438 }; 2439 2440 VariableMagic = buildPerlPackage rec { 2441 - name = "Variable-Magic-0.35"; 2442 src = fetchurl { 2443 url = "mirror://cpan/authors/id/V/VP/VPIT/${name}.tar.gz"; 2444 - sha256 = "0p6f593bh8zyg4qlxpa3hmdp56saghcgx7r0p46gxscxyf3k0bdc"; 2445 }; 2446 }; 2447 ··· 2469 }; 2470 propagatedBuildInputs = [LWP HTTPResponseEncoding HTTPServerSimple]; 2471 doCheck = false; 2472 }; 2473 2474 XMLDOM = buildPerlPackage {
··· 2438 }; 2439 2440 VariableMagic = buildPerlPackage rec { 2441 + name = "Variable-Magic-0.36"; 2442 src = fetchurl { 2443 url = "mirror://cpan/authors/id/V/VP/VPIT/${name}.tar.gz"; 2444 + sha256 = "15305b54e948f74a0cf77c1c6bd8aa399caac12d6b1dee8cc4a69ff7d1421db6"; 2445 }; 2446 }; 2447 ··· 2469 }; 2470 propagatedBuildInputs = [LWP HTTPResponseEncoding HTTPServerSimple]; 2471 doCheck = false; 2472 + }; 2473 + 2474 + X11GUITest = buildPerlPackage rec { 2475 + name = "X11-GUITest-0.21"; 2476 + src = fetchurl { 2477 + url = "mirror://cpan/authors/id/C/CT/CTRONDLP/${name}.tar.gz"; 2478 + sha256 = "0akjk2x2d3j1f95wn93mh6nvq8p6c9jcqmvkh1mli5jxr1rmhjx8"; 2479 + }; 2480 + buildInputs = [pkgs.x11 pkgs.xorg.libXtst pkgs.xorg.libXi]; 2481 + NIX_CFLAGS_LINK = "-lX11 -lXext -lXtst"; 2482 + doCheck = false; # requires an X server 2483 }; 2484 2485 XMLDOM = buildPerlPackage {
+41 -8
pkgs/top-level/python-packages.nix
··· 1 - { pkgs }: 2 3 rec { 4 - inherit (pkgs) buildPythonPackage fetchurl fetchsvn stdenv python; 5 6 argparse = buildPythonPackage (rec { 7 name = "argparse-0.9.1"; ··· 48 description = "Darcsver, generate a version number from Darcs history"; 49 50 homepage = http://pypi.python.org/pypi/darcsver; 51 52 license = "BSD-style"; 53 }; ··· 143 }; 144 }); 145 146 namebench = buildPythonPackage (rec { 147 name = "namebench-1.0.5"; 148 ··· 248 }; 249 }); 250 251 - psycopg2 = buildPythonPackage { 252 - name = "psycopg2-r407"; 253 254 doCheck = false; 255 256 src = fetchurl { 257 - url = http://initd.org/pub/software/psycopg/psycopg2-r407.tar.gz; 258 - sha256 = "b80bf2f106fc6dbd3d3c512e61baca0b44fa80b975e554982cc9e793c085cc86"; 259 }; 260 261 propagatedBuildInputs = [ pkgs.postgresql ]; 262 263 meta = { 264 - description = "PostgreSQL database adapter for the Python programming language."; 265 - 266 license = "GPLv2/ZPL"; 267 }; 268 };
··· 1 + { pkgs, python, buildPythonPackage }: 2 3 rec { 4 + inherit (pkgs) fetchurl fetchsvn stdenv; 5 6 argparse = buildPythonPackage (rec { 7 name = "argparse-0.9.1"; ··· 48 description = "Darcsver, generate a version number from Darcs history"; 49 50 homepage = http://pypi.python.org/pypi/darcsver; 51 + 52 + license = "BSD-style"; 53 + }; 54 + }); 55 + 56 + dateutil = buildPythonPackage (rec { 57 + name = "dateutil-1.4.1"; 58 + 59 + src = fetchurl { 60 + url = "http://pypi.python.org/packages/source/p/python-dateutil/${name}.tar.gz"; 61 + sha256 = "0mrkh932k8s74h4rpgksvpmwbrrkq8zn78gbgwc22i2vlp31bdkl"; 62 + }; 63 + 64 + meta = { 65 + description = "Powerful extensions to the standard datetime module"; 66 + 67 + homepage = http://pypi.python.org/pypi/python-dateutil; 68 69 license = "BSD-style"; 70 }; ··· 160 }; 161 }); 162 163 + mechanize = buildPythonPackage (rec { 164 + name = "mechanize-0.1.11"; 165 + 166 + src = fetchurl { 167 + url = "http://wwwsearch.sourceforge.net/mechanize/src/${name}.tar.gz"; 168 + sha256 = "1h62mwy4iz09jqz17nrb9j8y0djd500zdfqwrz9xmdwqzqwixkj2"; 169 + }; 170 + 171 + meta = { 172 + description = "Stateful programmatic web browsing in Python"; 173 + 174 + homepage = http://wwwsearch.sourceforge.net/; 175 + 176 + license = "BSD-style"; 177 + }; 178 + }); 179 + 180 namebench = buildPythonPackage (rec { 181 name = "namebench-1.0.5"; 182 ··· 282 }; 283 }); 284 285 + psycopg2 = buildPythonPackage rec { 286 + name = "psycopg2-2.0.13"; 287 288 doCheck = false; 289 290 src = fetchurl { 291 + url = "http://initd.org/pub/software/psycopg/PSYCOPG-2-0/${name}.tar.gz"; 292 + sha256 = "0arkaa1nbbd3pyn4l1bc75wi7nff3vxxh4s8sj5al5hv20p64pm1"; 293 }; 294 295 propagatedBuildInputs = [ pkgs.postgresql ]; 296 297 meta = { 298 + description = "PostgreSQL database adapter for the Python programming language"; 299 license = "GPLv2/ZPL"; 300 }; 301 };
+9 -1
pkgs/top-level/release.nix
··· 225 inkscape = linux; 226 iputils = linux; 227 iproute = linux; 228 irssi = linux; 229 jfsutils = linux; 230 jfsrec = linux; ··· 240 ktorrent = linux; 241 kvm = linux; 242 qemu = linux; 243 less = all; 244 lftp = all; 245 libarchive = linux; ··· 375 texLiveBeamer = linux; 376 texLiveExtra = linux; 377 texinfo = all; 378 - thunderbird = linux; 379 tightvnc = linux; 380 time = linux; 381 tinycc = ["i686-linux"]; ··· 402 webkit = linux; 403 wget = all; 404 which = all; 405 wine = ["i686-linux"]; 406 wireshark = linux; 407 wirelesstools = linux; ··· 482 lhs2tex = ghcSupported; 483 haskellPlatform = linux; /* OpenGL/mesa seems to fail on darwin */ 484 xmonad = linux; 485 }; 486 487 kde3 = {
··· 225 inkscape = linux; 226 iputils = linux; 227 iproute = linux; 228 + iptables = linux; 229 irssi = linux; 230 jfsutils = linux; 231 jfsrec = linux; ··· 241 ktorrent = linux; 242 kvm = linux; 243 qemu = linux; 244 + qemu_kvm = linux; 245 less = all; 246 lftp = all; 247 libarchive = linux; ··· 377 texLiveBeamer = linux; 378 texLiveExtra = linux; 379 texinfo = all; 380 + thunderbird2 = linux; 381 + thunderbird3 = linux; 382 tightvnc = linux; 383 time = linux; 384 tinycc = ["i686-linux"]; ··· 405 webkit = linux; 406 wget = all; 407 which = all; 408 + wicd = linux; 409 wine = ["i686-linux"]; 410 wireshark = linux; 411 wirelesstools = linux; ··· 486 lhs2tex = ghcSupported; 487 haskellPlatform = linux; /* OpenGL/mesa seems to fail on darwin */ 488 xmonad = linux; 489 + }; 490 + 491 + haskellPackages_ghc6121 = { 492 + ghc = ghcSupported; 493 }; 494 495 kde3 = {