Merge branch 'staging'

+642 -221
+58
doc/languages-frameworks/haskell.md
··· 793 793 as shared libraries only, i.e. there is just no static library available that 794 794 Cabal could link! 795 795 796 + ### Building GHC with integer-simple 797 + 798 + By default GHC implements the Integer type using the 799 + [GNU Multiple Precision Arithmetic (GMP) library](https://gmplib.org/). 800 + The implementation can be found in the 801 + [integer-gmp](http://hackage.haskell.org/package/integer-gmp) package. 802 + 803 + A potential problem with this is that GMP is licensed under the 804 + [​GNU Lesser General Public License (LGPL)](http://www.gnu.org/copyleft/lesser.html), 805 + a kind of "copyleft" license. According to the terms of the LGPL, paragraph 5, 806 + you may distribute a program that is designed to be compiled and dynamically 807 + linked with the library under the terms of your choice (i.e., commercially) but 808 + if your program incorporates portions of the library, if it is linked 809 + statically, then your program is a "derivative"--a "work based on the 810 + library"--and according to paragraph 2, section c, you "must cause the whole of 811 + the work to be licensed" under the terms of the LGPL (including for free). 812 + 813 + The LGPL licensing for GMP is a problem for the overall licensing of binary 814 + programs compiled with GHC because most distributions (and builds) of GHC use 815 + static libraries. (Dynamic libraries are currently distributed only for OS X.) 816 + The LGPL licensing situation may be worse: even though 817 + ​[The Glasgow Haskell Compiler License](https://www.haskell.org/ghc/license) 818 + is essentially a "free software" license (BSD3), according to 819 + paragraph 2 of the LGPL, GHC must be distributed under the terms of the LGPL! 820 + 821 + To work around these problems GHC can be build with a slower but LGPL-free 822 + alternative implemention for Integer called 823 + [integer-simple](http://hackage.haskell.org/package/integer-simple). 824 + 825 + To get a GHC compiler build with `integer-simple` instead of `integer-gmp` use 826 + the attribute: `pkgs.haskell.compiler.integer-simple."${ghcVersion}"`. 827 + For example: 828 + 829 + $ nix-build -E '(import <nixpkgs> {}).pkgs.haskell.compiler.integer-simple.ghc802' 830 + ... 831 + $ result/bin/ghc-pkg list | grep integer 832 + integer-simple-0.1.1.1 833 + 834 + The following command displays the complete list of GHC compilers build with `integer-simple`: 835 + 836 + $ nix-env -f "<nixpkgs>" -qaP -A haskell.compiler.integer-simple 837 + haskell.compiler.integer-simple.ghc7102 ghc-7.10.2 838 + haskell.compiler.integer-simple.ghc7103 ghc-7.10.3 839 + haskell.compiler.integer-simple.ghc722 ghc-7.2.2 840 + haskell.compiler.integer-simple.ghc742 ghc-7.4.2 841 + haskell.compiler.integer-simple.ghc763 ghc-7.6.3 842 + haskell.compiler.integer-simple.ghc783 ghc-7.8.3 843 + haskell.compiler.integer-simple.ghc784 ghc-7.8.4 844 + haskell.compiler.integer-simple.ghc801 ghc-8.0.1 845 + haskell.compiler.integer-simple.ghc802 ghc-8.0.2 846 + haskell.compiler.integer-simple.ghcHEAD ghc-8.1.20170106 847 + 848 + To get a package set supporting `integer-simple` use the attribute: 849 + `pkgs.haskell.packages.integer-simple."${ghcVersion}"`. For example 850 + use the following to get the `scientific` package build with `integer-simple`: 851 + 852 + $ nix-build -A pkgs.haskell.packages.integer-simple.ghc802.scientific 853 + 796 854 797 855 ## Other resources 798 856
+4 -2
nixos/modules/system/boot/networkd.nix
··· 667 667 668 668 config = mkIf config.systemd.network.enable { 669 669 670 - systemd.additionalUpstreamSystemUnits = 671 - [ "systemd-networkd.service" "systemd-networkd-wait-online.service" ]; 670 + systemd.additionalUpstreamSystemUnits = [ 671 + "systemd-networkd.service" "systemd-networkd-wait-online.service" 672 + "org.freedesktop.network1.busname" 673 + ]; 672 674 673 675 systemd.network.units = mapAttrs' (n: v: nameValuePair "${n}.link" (linkToUnit n v)) cfg.links 674 676 // mapAttrs' (n: v: nameValuePair "${n}.netdev" (netdevToUnit n v)) cfg.netdevs
+3 -1
nixos/modules/system/boot/resolved.nix
··· 71 71 72 72 config = mkIf cfg.enable { 73 73 74 - systemd.additionalUpstreamSystemUnits = [ "systemd-resolved.service" ]; 74 + systemd.additionalUpstreamSystemUnits = [ 75 + "systemd-resolved.service" "org.freedesktop.resolve1.busname" 76 + ]; 75 77 76 78 systemd.services.systemd-resolved = { 77 79 wantedBy = [ "multi-user.target" ];
+16 -4
nixos/modules/system/boot/systemd.nix
··· 17 17 "busnames.target" 18 18 "sysinit.target" 19 19 "sockets.target" 20 + "exit.target" 20 21 "graphical.target" 21 22 "multi-user.target" 22 23 "network.target" ··· 41 42 "systemd-udevd.service" 42 43 "systemd-udev-settle.service" 43 44 "systemd-udev-trigger.service" 45 + "systemd-hwdb-update.service" 44 46 45 47 # Consoles. 46 48 "getty.target" 47 49 "getty@.service" 48 50 "serial-getty@.service" 51 + "console-getty.service" 49 52 "container-getty@.service" 50 53 "systemd-vconsole-setup.service" 51 54 ··· 72 75 "systemd-journal-flush.service" 73 76 "systemd-journal-gatewayd.socket" 74 77 "systemd-journal-gatewayd.service" 78 + "systemd-journal-catalog-update.service" 75 79 "systemd-journald-audit.socket" 76 80 "systemd-journald-dev-log.socket" 77 81 "syslog.socket" ··· 104 108 "systemd-random-seed.service" 105 109 "systemd-backlight@.service" 106 110 "systemd-rfkill.service" 111 + "systemd-rfkill.socket" 107 112 108 113 # Hibernate / suspend. 109 114 "hibernate.target" ··· 111 116 "sleep.target" 112 117 "hybrid-sleep.target" 113 118 "systemd-hibernate.service" 114 - "systemd-suspend.service" 115 119 "systemd-hybrid-sleep.service" 120 + "systemd-suspend.service" 116 121 117 122 # Reboot stuff. 118 123 "reboot.target" ··· 136 141 137 142 # Slices / containers. 138 143 "slices.target" 139 - "-.slice" 140 144 "system.slice" 141 145 "user.slice" 142 146 "machine.slice" 147 + "machines.target" 143 148 "systemd-machined.service" 144 149 "systemd-nspawn@.service" 145 150 ··· 162 167 "systemd-localed.service" 163 168 "systemd-hostnamed.service" 164 169 "systemd-binfmt.service" 170 + "systemd-exit.service" 165 171 ] 166 172 ++ cfg.additionalUpstreamSystemUnits; 167 173 168 174 upstreamSystemWants = 169 - [ #"basic.target.wants" 170 - "sysinit.target.wants" 175 + [ "sysinit.target.wants" 171 176 "sockets.target.wants" 172 177 "local-fs.target.wants" 173 178 "multi-user.target.wants" ··· 176 181 177 182 upstreamUserUnits = 178 183 [ "basic.target" 184 + "bluetooth.target" 185 + "busnames.target" 179 186 "default.target" 180 187 "exit.target" 188 + "graphical-session-pre.target" 189 + "graphical-session.target" 181 190 "paths.target" 191 + "printer.target" 182 192 "shutdown.target" 193 + "smartcard.target" 183 194 "sockets.target" 195 + "sound.target" 184 196 "systemd-exit.service" 185 197 "timers.target" 186 198 ];
+7 -5
pkgs/applications/audio/ams-lv2/default.nix
··· 1 - { stdenv, fetchurl, cairo, fftw, gtkmm2, lv2, lvtk, pkgconfig, python }: 1 + { stdenv, fetchFromGitHub, cairo, fftw, gtkmm2, lv2, lvtk, pkgconfig, python }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "ams-lv2-${version}"; 5 - version = "1.1.0"; 5 + version = "1.2.1"; 6 6 7 - src = fetchurl { 8 - url = "https://github.com/blablack/ams-lv2/archive/v${version}.tar.gz"; 9 - sha256 = "1kqbl7rc3zrs27c5ga0frw3mlpx15sbxzhf04sfbrd9l60535fd5"; 7 + src = fetchFromGitHub { 8 + owner = "blablack"; 9 + repo = "ams-lv2"; 10 + rev = version; 11 + sha256 = "1n1dnqnj24xhiy9323lj52nswr5120cj56fpckg802miss05sr6x"; 10 12 }; 11 13 12 14 buildInputs = [ cairo fftw gtkmm2 lv2 lvtk pkgconfig python ];
+16 -6
pkgs/applications/audio/audacity/default.nix
··· 13 13 url = "https://github.com/audacity/audacity/archive/Audacity-${version}.tar.gz"; 14 14 sha256 = "1ggr6g0mk36rqj7ahsg8b0b1r9kphwajzvxgn43md263rm87n04h"; 15 15 }; 16 - patches = [(fetchpatch { 17 - name = "new-ffmpeg.patch"; 18 - url = "https://projects.archlinux.org/svntogit/packages.git/plain/trunk" 19 - + "/audacity-ffmpeg.patch?h=packages/audacity&id=0c1e35798d4d70692"; 20 - sha256 = "19fr674mw844zmkp1476yigkcnmb6zyn78av64ccdwi3p68i00rf"; 21 - })]; 16 + patches = [ 17 + (fetchpatch { 18 + name = "new-ffmpeg.patch"; 19 + url = "https://projects.archlinux.org/svntogit/packages.git/plain/trunk" 20 + + "/audacity-ffmpeg.patch?h=packages/audacity&id=0c1e35798d4d70692"; 21 + sha256 = "19fr674mw844zmkp1476yigkcnmb6zyn78av64ccdwi3p68i00rf"; 22 + }) 23 + ] 24 + ++ optional (hasPrefix "gcc-6" stdenv.cc.cc.name) 25 + (fetchpatch { 26 + name = "gcc6.patch"; 27 + url = "https://github.com/audacity/audacity/commit/60f2322055756e8cacfe96530a12c63e9694482c.patch"; 28 + sha256 = "07jlxr8y7ap3nsblx3zh8v9rcx7ajbcfnvwzhwykmbwbsyirgqf2"; 29 + }); 22 30 23 31 preConfigure = /* we prefer system-wide libs */ '' 24 32 mv lib-src lib-src-rm ··· 56 64 libsndfile soxr libid3tag libjack2 lv2 lilv serd sord sratom suil gtk2 57 65 ffmpeg libmad lame libvorbis flac soundtouch 58 66 ]; #ToDo: detach sbsms 67 + 68 + enableParallelBuilding = true; 59 69 60 70 dontDisableStatic = true; 61 71 doCheck = false; # Test fails
+5 -3
pkgs/applications/editors/edbrowse/default.nix
··· 1 - { stdenv, fetchurl, spidermonkey_24, unzip, curl, pcre, readline, openssl, perl, html-tidy }: 1 + { stdenv, fetchurl, spidermonkey, unzip, curl, pcre, readline, openssl, perl, html-tidy }: 2 + 2 3 stdenv.mkDerivation rec { 3 4 name = "edbrowse-${version}"; 4 5 version = "3.6.1"; 5 6 6 7 nativeBuildInputs = [ unzip ]; 7 - buildInputs = [ curl pcre readline openssl spidermonkey_24 perl html-tidy ]; 8 + buildInputs = [ curl pcre readline openssl spidermonkey perl html-tidy ]; 8 9 9 10 patchPhase = '' 10 11 substituteInPlace src/ebjs.c --replace \"edbrowse-js\" \"$out/bin/edbrowse-js\" ··· 14 15 done 15 16 ''; 16 17 17 - NIX_CFLAGS_COMPILE = "-I${spidermonkey_24.dev}/include/mozjs-24"; 18 + NIX_CFLAGS_COMPILE = "-I${spidermonkey}/include/mozjs-31"; 18 19 makeFlags = "-C src prefix=$(out)"; 19 20 20 21 src = fetchurl { ··· 34 35 homepage = http://edbrowse.org/; 35 36 maintainers = [ maintainers.schmitthenner maintainers.vrthra ]; 36 37 platforms = platforms.linux; 38 + broken = true; # no compatible spidermonkey 37 39 }; 38 40 }
+24 -13
pkgs/applications/misc/apvlv/default.nix
··· 1 - { stdenv, fetchurl, cmake, pkgconfig, 2 - gtk2 , poppler, freetype, libpthreadstubs, libXdmcp, libxshmfence 1 + { stdenv, fetchFromGitHub, fetchpatch, cmake, pkgconfig, pcre, libxkbcommon, epoxy 2 + , gtk3, poppler, freetype, libpthreadstubs, libXdmcp, libxshmfence 3 3 }: 4 4 5 5 stdenv.mkDerivation rec { 6 - version = "0.1.f7f7b9c"; 6 + version = "0.1.5"; 7 7 name = "apvlv-${version}"; 8 8 9 - src = fetchurl { 10 - url = "https://github.com/downloads/naihe2010/apvlv/${name}-Source.tar.gz"; 11 - sha256 = "125nlcfjdhgzi9jjxh9l2yc9g39l6jahf8qh2555q20xkxf4rl0w"; 9 + src = fetchFromGitHub { 10 + owner = "naihe2010"; 11 + repo = "apvlv"; 12 + rev = "v${version}"; 13 + sha256 = "1n4xiic8lqnv3mqi7wpdv866gyyakax71gffv3n9427rmcld465i"; 12 14 }; 13 15 14 - preConfigure = '' 15 - export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${poppler.dev}/include/poppler" 16 - ''; 16 + NIX_CFLAGS_COMPILE = "-I${poppler.dev}/include/poppler"; 17 17 18 18 buildInputs = [ 19 19 pkgconfig cmake 20 - poppler 21 - freetype gtk2 22 - libpthreadstubs libXdmcp libxshmfence # otherwise warnings in compilation 23 - ]; 20 + poppler pcre libxkbcommon epoxy 21 + freetype gtk3 22 + libpthreadstubs libXdmcp libxshmfence # otherwise warnings in compilation 23 + ]; 24 + 25 + patches = [ 26 + (fetchpatch { 27 + url = "https://github.com/naihe2010/apvlv/commit/d432635b9c5ea6c052a2ae1fb71aedec5c4ad57a.patch"; 28 + sha256 = "1am8dgv2kkpqmm2vaysa61czx8ppdx94zb3c59sx88np50jpy70w"; 29 + }) 30 + (fetchpatch { 31 + url = "https://github.com/naihe2010/apvlv/commit/4c7a583e8431964def482e5471f02e6de8e62a7b.patch"; 32 + sha256 = "1dszm120lwm90hcg5zmd4vr6pjyaxc84qmb7k0fr59mmb3qif62j"; 33 + }) 34 + ]; 24 35 25 36 installPhase = '' 26 37 # binary
+2
pkgs/applications/networking/mailreaders/thunderbird/default.nix
··· 25 25 sha512 = "99cea54b553158c1e08cf19157ac2bb6822fd1fef0501d36f983e6b8d4f2143a2e6124d61297446944033d3fed9326fe0f12ca45db0b5815be71a0777e73ffb0"; 26 26 }; 27 27 28 + patches = [ ./gcc6.patch ]; 29 + 28 30 # New sed no longer tolerates this mistake. 29 31 postPatch = '' 30 32 for f in mozilla/{js/src,}/configure; do
+75
pkgs/applications/networking/mailreaders/thunderbird/gcc6.patch
··· 1 + 2 + # HG changeset patch 3 + # User Mike Hommey <mh+mozilla@glandium.org> 4 + # Date 1457596445 -32400 5 + # Node ID 55212130f19da3079167a6b0a5a0ed6689c9a71d 6 + # Parent 27c94617d7064d566c24a42e11cd4c7ef725923d 7 + Bug 1245076 - Don't include mozalloc.h from the cstdlib wrapper. r=froydnj 8 + 9 + Our STL wrappers do various different things, one of which is including 10 + mozalloc.h for infallible operator new. mozalloc.h includes stdlib.h, 11 + which, in libstdc++ >= 6 is now itself a wrapper around cstdlib, which 12 + circles back to our STL wrapper. 13 + 14 + But of the things our STL wrappers do, including mozalloc.h is not one 15 + that is necessary for cstdlib. So skip including mozalloc.h in our 16 + cstdlib wrapper. 17 + 18 + Additionally, some C++ sources (in media/mtransport) are including 19 + headers in an extern "C" block, which end up including stdlib.h, which 20 + ends up including cstdlib because really, this is all C++, and our 21 + wrapper pre-includes <new> for mozalloc.h, which fails because templates 22 + don't work inside extern "C". So, don't pre-include <new> when we're not 23 + including mozalloc.h. 24 + 25 + 26 + diff --git a/mozilla/config/gcc-stl-wrapper.template.h b/mozilla/config/gcc-stl-wrapper.template.h 27 + --- a/mozilla/config/gcc-stl-wrapper.template.h 28 + +++ b/mozilla/config/gcc-stl-wrapper.template.h 29 + @@ -12,33 +12,40 @@ 30 + // compiling ObjC. 31 + #if defined(__EXCEPTIONS) && __EXCEPTIONS && !(__OBJC__ && __GNUC__ && XP_IOS) 32 + # error "STL code can only be used with -fno-exceptions" 33 + #endif 34 + 35 + // Silence "warning: #include_next is a GCC extension" 36 + #pragma GCC system_header 37 + 38 + +// Don't include mozalloc for cstdlib. See bug 1245076. 39 + +#ifndef moz_dont_include_mozalloc_for_cstdlib 40 + +# define moz_dont_include_mozalloc_for_cstdlib 41 + +#endif 42 + +#ifndef moz_dont_include_mozalloc_for_${HEADER} 43 + // mozalloc.h wants <new>; break the cycle by always explicitly 44 + // including <new> here. NB: this is a tad sneaky. Sez the gcc docs: 45 + // 46 + // `#include_next' does not distinguish between <file> and "file" 47 + // inclusion, nor does it check that the file you specify has the 48 + // same name as the current file. It simply looks for the file 49 + // named, starting with the directory in the search path after the 50 + // one where the current file was found. 51 + -#include_next <new> 52 + +# include_next <new> 53 + 54 + // See if we're in code that can use mozalloc. NB: this duplicates 55 + // code in nscore.h because nscore.h pulls in prtypes.h, and chromium 56 + // can't build with that being included before base/basictypes.h. 57 + -#if !defined(XPCOM_GLUE) && !defined(NS_NO_XPCOM) && !defined(MOZ_NO_MOZALLOC) 58 + -# include "mozilla/mozalloc.h" 59 + -#else 60 + -# error "STL code can only be used with infallible ::operator new()" 61 + +# if !defined(XPCOM_GLUE) && !defined(NS_NO_XPCOM) && !defined(MOZ_NO_MOZALLOC) 62 + +# include "mozilla/mozalloc.h" 63 + +# else 64 + +# error "STL code can only be used with infallible ::operator new()" 65 + +# endif 66 + + 67 + #endif 68 + 69 + #if defined(DEBUG) && !defined(_GLIBCXX_DEBUG) 70 + // Enable checked iterators and other goodies 71 + // 72 + // FIXME/bug 551254: gcc's debug STL implementation requires -frtti. 73 + // Figure out how to resolve this with -fno-rtti. Maybe build with 74 + // -frtti in DEBUG builds? 75 +
+13 -5
pkgs/development/compilers/ghc/7.10.2.nix
··· 1 - { stdenv, fetchurl, fetchpatch, bootPkgs, perl, gmp, ncurses, libiconv, binutils, coreutils 1 + { stdenv, fetchurl, fetchpatch, bootPkgs, perl, ncurses, libiconv, binutils, coreutils 2 2 , libxml2, libxslt, docbook_xsl, docbook_xml_dtd_45, docbook_xml_dtd_42, hscolour 3 + 4 + # If enabled GHC will be build with the GPL-free but slower integer-simple 5 + # library instead of the faster but GPLed integer-gmp library. 6 + , enableIntegerSimple ? false, gmp 3 7 }: 4 8 5 9 let 6 10 inherit (bootPkgs) ghc; 7 11 8 12 buildMK = '' 9 - libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp.out}/lib" 10 - libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp.dev}/include" 11 13 libraries/terminfo_CONFIGURE_OPTS += --configure-option=--with-curses-includes="${ncurses.dev}/include" 12 14 libraries/terminfo_CONFIGURE_OPTS += --configure-option=--with-curses-libraries="${ncurses.out}/lib" 13 15 ${stdenv.lib.optionalString stdenv.isDarwin '' 14 16 libraries/base_CONFIGURE_OPTS += --configure-option=--with-iconv-includes="${libiconv}/include" 15 17 libraries/base_CONFIGURE_OPTS += --configure-option=--with-iconv-libraries="${libiconv}/lib" 16 18 ''} 17 - ''; 19 + '' + (if enableIntegerSimple then '' 20 + INTEGER_LIBRARY=integer-simple 21 + '' else '' 22 + libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp.out}/lib" 23 + libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp.dev}/include" 24 + ''); 18 25 19 26 in 20 27 ··· 46 53 47 54 configureFlags = [ 48 55 "--with-gcc=${stdenv.cc}/bin/cc" 56 + "--datadir=$doc/share/doc/ghc" 57 + ] ++ stdenv.lib.optional (! enableIntegerSimple) [ 49 58 "--with-gmp-includes=${gmp.dev}/include" "--with-gmp-libraries=${gmp.out}/lib" 50 - "--datadir=$doc/share/doc/ghc" 51 59 ]; 52 60 53 61 # required, because otherwise all symbols from HSffi.o are stripped, and
+9 -2
pkgs/development/compilers/ghc/7.10.3.nix
··· 1 - { stdenv, fetchurl, fetchpatch, bootPkgs, perl, gmp, ncurses, libiconv, binutils, coreutils 1 + { stdenv, fetchurl, fetchpatch, bootPkgs, perl, ncurses, libiconv, binutils, coreutils 2 2 , libxml2, libxslt, docbook_xsl, docbook_xml_dtd_45, docbook_xml_dtd_42, hscolour 3 + 4 + # If enabled GHC will be build with the GPL-free but slower integer-simple 5 + # library instead of the faster but GPLed integer-gmp library. 6 + , enableIntegerSimple ? false, gmp 3 7 }: 4 8 5 9 let ··· 38 42 export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/lib/ghc-${version}" 39 43 '' + stdenv.lib.optionalString stdenv.isDarwin '' 40 44 export NIX_LDFLAGS+=" -no_dtrace_dof" 45 + '' + stdenv.lib.optionalString enableIntegerSimple '' 46 + echo "INTEGER_LIBRARY=integer-simple" > mk/build.mk 41 47 ''; 42 48 43 49 configureFlags = [ 44 50 "--with-gcc=${stdenv.cc}/bin/cc" 45 - "--with-gmp-includes=${gmp.dev}/include" "--with-gmp-libraries=${gmp.out}/lib" 46 51 "--with-curses-includes=${ncurses.dev}/include" "--with-curses-libraries=${ncurses.out}/lib" 47 52 "--datadir=$doc/share/doc/ghc" 53 + ] ++ stdenv.lib.optional (! enableIntegerSimple) [ 54 + "--with-gmp-includes=${gmp.dev}/include" "--with-gmp-libraries=${gmp.out}/lib" 48 55 ] ++ stdenv.lib.optional stdenv.isDarwin [ 49 56 "--with-iconv-includes=${libiconv}/include" "--with-iconv-libraries=${libiconv}/lib" 50 57 ];
+14 -5
pkgs/development/compilers/ghc/7.2.2.nix
··· 1 - { stdenv, fetchurl, ghc, perl, gmp, ncurses, libiconv }: 1 + { stdenv, fetchurl, ghc, perl, ncurses, libiconv 2 + 3 + # If enabled GHC will be build with the GPL-free but slower integer-simple 4 + # library instead of the faster but GPLed integer-gmp library. 5 + , enableIntegerSimple ? false, gmp 6 + }: 2 7 3 8 stdenv.mkDerivation rec { 4 9 version = "7.2.2"; ··· 11 16 12 17 patches = [ ./fix-7.2.2-clang.patch ./relocation.patch ]; 13 18 14 - buildInputs = [ ghc perl gmp ncurses ]; 19 + buildInputs = [ ghc perl ncurses ] 20 + ++ stdenv.lib.optional (!enableIntegerSimple) gmp; 15 21 16 22 buildMK = '' 17 - libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp.out}/lib" 18 - libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp.dev}/include" 19 23 libraries/terminfo_CONFIGURE_OPTS += --configure-option=--with-curses-includes="${ncurses.dev}/include" 20 24 libraries/terminfo_CONFIGURE_OPTS += --configure-option=--with-curses-libraries="${ncurses.out}/lib" 21 25 ${stdenv.lib.optionalString stdenv.isDarwin '' 22 26 libraries/base_CONFIGURE_OPTS += --configure-option=--with-iconv-includes="${libiconv}/include" 23 27 libraries/base_CONFIGURE_OPTS += --configure-option=--with-iconv-libraries="${libiconv}/lib" 24 28 ''} 25 - ''; 29 + '' + (if enableIntegerSimple then '' 30 + INTEGER_LIBRARY=integer-simple 31 + '' else '' 32 + libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp.out}/lib" 33 + libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp.dev}/include" 34 + ''); 26 35 27 36 preConfigure = '' 28 37 echo "${buildMK}" > mk/build.mk
+14 -5
pkgs/development/compilers/ghc/7.4.2.nix
··· 1 - { stdenv, fetchurl, ghc, perl, gmp, ncurses, libiconv }: 1 + { stdenv, fetchurl, ghc, perl, ncurses, libiconv 2 + 3 + # If enabled GHC will be build with the GPL-free but slower integer-simple 4 + # library instead of the faster but GPLed integer-gmp library. 5 + , enableIntegerSimple ? false, gmp 6 + }: 2 7 3 8 stdenv.mkDerivation rec { 4 9 version = "7.4.2"; ··· 12 17 13 18 patches = [ ./fix-7.4.2-clang.patch ./relocation.patch ]; 14 19 15 - buildInputs = [ ghc perl gmp ncurses ]; 20 + buildInputs = [ ghc perl ncurses ] 21 + ++ stdenv.lib.optional (!enableIntegerSimple) gmp; 16 22 17 23 buildMK = '' 18 - libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp.out}/lib" 19 - libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp.dev}/include" 20 24 libraries/terminfo_CONFIGURE_OPTS += --configure-option=--with-curses-includes="${ncurses.dev}/include" 21 25 libraries/terminfo_CONFIGURE_OPTS += --configure-option=--with-curses-libraries="${ncurses.out}/lib" 22 26 ${stdenv.lib.optionalString stdenv.isDarwin '' 23 27 libraries/base_CONFIGURE_OPTS += --configure-option=--with-iconv-includes="${libiconv}/include" 24 28 libraries/base_CONFIGURE_OPTS += --configure-option=--with-iconv-libraries="${libiconv}/lib" 25 29 ''} 26 - ''; 30 + '' + (if enableIntegerSimple then '' 31 + INTEGER_LIBRARY=integer-simple 32 + '' else '' 33 + libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp.out}/lib" 34 + libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp.dev}/include" 35 + ''); 27 36 28 37 preConfigure = '' 29 38 echo "${buildMK}" > mk/build.mk
+14 -5
pkgs/development/compilers/ghc/7.6.3.nix
··· 1 - { stdenv, fetchurl, ghc, perl, gmp, ncurses, binutils, libiconv }: 1 + { stdenv, fetchurl, ghc, perl, ncurses, binutils, libiconv 2 + 3 + # If enabled GHC will be build with the GPL-free but slower integer-simple 4 + # library instead of the faster but GPLed integer-gmp library. 5 + , enableIntegerSimple ? false, gmp 6 + }: 2 7 3 8 let 4 9 # The "-Wa,--noexecstack" options might be needed only with GNU ld (as opposed ··· 19 24 20 25 patches = [ ./fix-7.6.3-clang.patch ./relocation.patch ]; 21 26 22 - buildInputs = [ ghc perl gmp ncurses ]; 27 + buildInputs = [ ghc perl ncurses ] 28 + ++ stdenv.lib.optional (!enableIntegerSimple) gmp; 23 29 24 30 buildMK = '' 25 - libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp.out}/lib" 26 - libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp.dev}/include" 27 31 libraries/terminfo_CONFIGURE_OPTS += --configure-option=--with-curses-includes="${ncurses.dev}/include" 28 32 libraries/terminfo_CONFIGURE_OPTS += --configure-option=--with-curses-libraries="${ncurses.out}/lib" 29 33 ${stdenv.lib.optionalString stdenv.isDarwin '' ··· 34 38 # Set ghcFlags for building ghc itself 35 39 SRC_HC_OPTS += ${ghcFlags} 36 40 SRC_CC_OPTS += ${cFlags} 37 - ''; 41 + '' + (if enableIntegerSimple then '' 42 + INTEGER_LIBRARY=integer-simple 43 + '' else '' 44 + libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp.out}/lib" 45 + libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp.dev}/include" 46 + ''); 38 47 39 48 preConfigure = '' 40 49 echo "${buildMK}" > mk/build.mk
+14 -5
pkgs/development/compilers/ghc/7.8.3.nix
··· 1 - { stdenv, fetchurl, ghc, perl, gmp, ncurses, libiconv }: 1 + { stdenv, fetchurl, ghc, perl, ncurses, libiconv 2 + 3 + # If enabled GHC will be build with the GPL-free but slower integer-simple 4 + # library instead of the faster but GPLed integer-gmp library. 5 + , enableIntegerSimple ? false, gmp 6 + }: 2 7 3 8 stdenv.mkDerivation rec { 4 9 version = "7.8.3"; ··· 11 16 12 17 patches = [ ./relocation.patch ]; 13 18 14 - buildInputs = [ ghc perl gmp ncurses ]; 19 + buildInputs = [ ghc perl ncurses ] 20 + ++ stdenv.lib.optional (!enableIntegerSimple) gmp; 15 21 16 22 enableParallelBuilding = true; 17 23 18 24 buildMK = '' 19 - libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp.out}/lib" 20 - libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp.dev}/include" 21 25 libraries/terminfo_CONFIGURE_OPTS += --configure-option=--with-curses-includes="${ncurses.dev}/include" 22 26 libraries/terminfo_CONFIGURE_OPTS += --configure-option=--with-curses-libraries="${ncurses.out}/lib" 23 27 DYNAMIC_BY_DEFAULT = NO ··· 25 29 libraries/base_CONFIGURE_OPTS += --configure-option=--with-iconv-includes="${libiconv}/include" 26 30 libraries/base_CONFIGURE_OPTS += --configure-option=--with-iconv-libraries="${libiconv}/lib" 27 31 ''} 28 - ''; 32 + '' + (if enableIntegerSimple then '' 33 + INTEGER_LIBRARY=integer-simple 34 + '' else '' 35 + libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp.out}/lib" 36 + libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp.dev}/include" 37 + ''); 29 38 30 39 preConfigure = '' 31 40 echo "${buildMK}" > mk/build.mk
+14 -5
pkgs/development/compilers/ghc/7.8.4.nix
··· 1 - { stdenv, fetchurl, ghc, perl, gmp, ncurses, libiconv }: 1 + { stdenv, fetchurl, ghc, perl, ncurses, libiconv 2 + 3 + # If enabled GHC will be build with the GPL-free but slower integer-simple 4 + # library instead of the faster but GPLed integer-gmp library. 5 + , enableIntegerSimple ? false, gmp 6 + }: 2 7 3 8 stdenv.mkDerivation (rec { 4 9 version = "7.8.4"; ··· 11 16 12 17 patches = [ ./relocation.patch ]; 13 18 14 - buildInputs = [ ghc perl gmp ncurses ]; 19 + buildInputs = [ ghc perl ncurses ] 20 + ++ stdenv.lib.optional (!enableIntegerSimple) gmp; 15 21 16 22 enableParallelBuilding = true; 17 23 18 24 buildMK = '' 19 - libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp.out}/lib" 20 - libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp.dev}/include" 21 25 libraries/terminfo_CONFIGURE_OPTS += --configure-option=--with-curses-includes="${ncurses.dev}/include" 22 26 libraries/terminfo_CONFIGURE_OPTS += --configure-option=--with-curses-libraries="${ncurses.out}/lib" 23 27 DYNAMIC_BY_DEFAULT = NO ··· 25 29 libraries/base_CONFIGURE_OPTS += --configure-option=--with-iconv-includes="${libiconv}/include" 26 30 libraries/base_CONFIGURE_OPTS += --configure-option=--with-iconv-libraries="${libiconv}/lib" 27 31 ''} 28 - ''; 32 + '' + (if enableIntegerSimple then '' 33 + INTEGER_LIBRARY=integer-simple 34 + '' else '' 35 + libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp.out}/lib" 36 + libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp.dev}/include" 37 + ''); 29 38 30 39 preConfigure = '' 31 40 echo "${buildMK}" > mk/build.mk
+9 -2
pkgs/development/compilers/ghc/8.0.1.nix
··· 1 - { stdenv, fetchurl, fetchpatch, bootPkgs, perl, gmp, ncurses, libiconv, binutils, coreutils 1 + { stdenv, fetchurl, fetchpatch, bootPkgs, perl, ncurses, libiconv, binutils, coreutils 2 2 , hscolour, patchutils, sphinx 3 + 4 + # If enabled GHC will be build with the GPL-free but slower integer-simple 5 + # library instead of the faster but GPLed integer-gmp library. 6 + , enableIntegerSimple ? false, gmp 3 7 }: 4 8 5 9 let ··· 41 45 export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/lib/ghc-${version}" 42 46 '' + stdenv.lib.optionalString stdenv.isDarwin '' 43 47 export NIX_LDFLAGS+=" -no_dtrace_dof" 48 + '' + stdenv.lib.optionalString enableIntegerSimple '' 49 + echo "INTEGER_LIBRARY=integer-simple" > mk/build.mk 44 50 ''; 45 51 46 52 configureFlags = [ 47 53 "--with-gcc=${stdenv.cc}/bin/cc" 48 - "--with-gmp-includes=${gmp.dev}/include" "--with-gmp-libraries=${gmp.out}/lib" 49 54 "--with-curses-includes=${ncurses.dev}/include" "--with-curses-libraries=${ncurses.out}/lib" 50 55 "--datadir=$doc/share/doc/ghc" 56 + ] ++ stdenv.lib.optional (! enableIntegerSimple) [ 57 + "--with-gmp-includes=${gmp.dev}/include" "--with-gmp-libraries=${gmp.out}/lib" 51 58 ] ++ stdenv.lib.optional stdenv.isDarwin [ 52 59 "--with-iconv-includes=${libiconv}/include" "--with-iconv-libraries=${libiconv}/lib" 53 60 ];
+9 -2
pkgs/development/compilers/ghc/8.0.2.nix
··· 1 - { stdenv, fetchurl, fetchpatch, bootPkgs, perl, gmp, ncurses, libiconv, binutils, coreutils 1 + { stdenv, fetchurl, fetchpatch, bootPkgs, perl, ncurses, libiconv, binutils, coreutils 2 2 , hscolour, patchutils, sphinx 3 + 4 + # If enabled GHC will be build with the GPL-free but slower integer-simple 5 + # library instead of the faster but GPLed integer-gmp library. 6 + , enableIntegerSimple ? false, gmp 3 7 }: 4 8 5 9 let ··· 28 32 export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/lib/ghc-${version}" 29 33 '' + stdenv.lib.optionalString stdenv.isDarwin '' 30 34 export NIX_LDFLAGS+=" -no_dtrace_dof" 35 + '' + stdenv.lib.optionalString enableIntegerSimple '' 36 + echo "INTEGER_LIBRARY=integer-simple" > mk/build.mk 31 37 ''; 32 38 33 39 configureFlags = [ 34 40 "--with-gcc=${stdenv.cc}/bin/cc" 35 - "--with-gmp-includes=${gmp.dev}/include" "--with-gmp-libraries=${gmp.out}/lib" 36 41 "--with-curses-includes=${ncurses.dev}/include" "--with-curses-libraries=${ncurses.out}/lib" 37 42 "--datadir=$doc/share/doc/ghc" 43 + ] ++ stdenv.lib.optional (! enableIntegerSimple) [ 44 + "--with-gmp-includes=${gmp.dev}/include" "--with-gmp-libraries=${gmp.out}/lib" 38 45 ] ++ stdenv.lib.optional stdenv.isDarwin [ 39 46 "--with-iconv-includes=${libiconv}/include" "--with-iconv-libraries=${libiconv}/lib" 40 47 ];
+9 -2
pkgs/development/compilers/ghc/head.nix
··· 1 - { stdenv, fetchgit, bootPkgs, perl, gmp, ncurses, libiconv, binutils, coreutils 1 + { stdenv, fetchgit, bootPkgs, perl, ncurses, libiconv, binutils, coreutils 2 2 , autoconf, automake, happy, alex, python3, buildPlatform, targetPlatform 3 3 , selfPkgs, cross ? null 4 + 5 + # If enabled GHC will be build with the GPL-free but slower integer-simple 6 + # library instead of the faster but GPLed integer-gmp library. 7 + , enableIntegerSimple ? false, gmp 4 8 }: 5 9 6 10 let ··· 20 24 export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/lib/ghc-${version}" 21 25 '' + stdenv.lib.optionalString stdenv.isDarwin '' 22 26 export NIX_LDFLAGS+=" -no_dtrace_dof" 27 + '' + stdenv.lib.optionalString enableIntegerSimple '' 28 + echo "INTEGER_LIBRARY=integer-simple" > mk/build.mk 23 29 ''; 24 30 in stdenv.mkDerivation (rec { 25 31 inherit version rev; ··· 41 47 42 48 configureFlags = [ 43 49 "CC=${stdenv.cc}/bin/cc" 50 + "--with-curses-includes=${ncurses.dev}/include" "--with-curses-libraries=${ncurses.out}/lib" 51 + ] ++ stdenv.lib.optional (! enableIntegerSimple) [ 44 52 "--with-gmp-includes=${gmp.dev}/include" "--with-gmp-libraries=${gmp.out}/lib" 45 - "--with-curses-includes=${ncurses.dev}/include" "--with-curses-libraries=${ncurses.out}/lib" 46 53 ] ++ stdenv.lib.optional stdenv.isDarwin [ 47 54 "--with-iconv-includes=${libiconv}/include" "--with-iconv-libraries=${libiconv}/lib" 48 55 ];
+1 -1
pkgs/development/interpreters/python/build-python-package-setuptools.nix
··· 49 49 export PATH="$tmp_path/bin:$PATH" 50 50 export PYTHONPATH="$tmp_path/${python.sitePackages}:$PYTHONPATH" 51 51 mkdir -p $tmp_path/${python.sitePackages} 52 - ${bootstrapped-pip}/bin/pip install -e . --prefix $tmp_path 52 + ${bootstrapped-pip}/bin/pip install -e . --prefix $tmp_path >&2 53 53 fi 54 54 ${postShellHook} 55 55 '';
+8 -2
pkgs/development/interpreters/spidermonkey/1.8.5.nix
··· 1 - { stdenv, lib, autoconf213, fetchurl, pkgconfig, nspr, perl, python2, zip }: 1 + { stdenv, lib, autoconf213, fetchurl, fetchpatch, pkgconfig, nspr, perl, python2, zip }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "spidermonkey-${version}"; ··· 22 22 ${lib.optionalString stdenv.isArm "autoreconf --verbose --force"} 23 23 ''; 24 24 25 - patches = stdenv.lib.optionals stdenv.isArm [ 25 + patches = [ 26 + (fetchpatch { 27 + name = "gcc6.patch"; 28 + url = "https://anonscm.debian.org/cgit/collab-maint/mozjs.git/plain/debian/patches/fix-811665.patch?id=00b15c7841968ab4f7fec409a6b93fa5e1e1d32e"; 29 + sha256 = "1q8477xqxiy5d8376k5902l45gd0qkd4nxmhl8vr6rr1pxfcny99"; 30 + }) 31 + ] ++ stdenv.lib.optionals stdenv.isArm [ 26 32 # Explained below in configureFlags for ARM 27 33 ./1.8.5-findvanilla.patch 28 34 # Fix for hard float flags.
+1 -1
pkgs/development/libraries/audiofile/default.nix
··· 13 13 sha256 = "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"; 14 14 }; 15 15 16 - patches = [ ./CVE-2015-7747.patch ]; 16 + patches = [ ./CVE-2015-7747.patch ./gcc-6.patch ]; 17 17 18 18 meta = with stdenv.lib; { 19 19 description = "Library for reading and writing audio files in various formats";
+30
pkgs/development/libraries/audiofile/gcc-6.patch
··· 1 + http://patchwork.ozlabs.org/patch/630200/ 2 + 3 + From 28cfdbbcb96a69087c3d21faf69b5eae7bcf6d69 Mon Sep 17 00:00:00 2001 4 + From: Hodorgasm <nsane457@gmail.com> 5 + Date: Wed, 11 May 2016 21:42:07 -0400 6 + Subject: [PATCH] Cast to unsigned while left bit-shifting 7 + 8 + GCC-6 now treats the left bitwise-shift of a negative integer as nonconformant so explicitly cast to an unsigned int while bit-shifting. 9 + 10 + Downloaded from upstream PR: 11 + https://github.com/mpruett/audiofile/pull/28 12 + 13 + Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> 14 + --- 15 + libaudiofile/modules/SimpleModule.h | 2 +- 16 + 1 file changed, 1 insertion(+), 1 deletion(-) 17 + 18 + diff --git a/libaudiofile/modules/SimpleModule.h b/libaudiofile/modules/SimpleModule.h 19 + index 03c6c69..4014fb2 100644 20 + --- a/libaudiofile/modules/SimpleModule.h 21 + +++ b/libaudiofile/modules/SimpleModule.h 22 + @@ -123,7 +123,7 @@ struct signConverter 23 + typedef typename IntTypes<Format>::UnsignedType UnsignedType; 24 + 25 + static const int kScaleBits = (Format + 1) * CHAR_BIT - 1; 26 + - static const int kMinSignedValue = -1 << kScaleBits; 27 + + static const int kMinSignedValue = static_cast<signed>(static_cast<unsigned>(-1) << kScaleBits);; 28 + 29 + struct signedToUnsigned : public std::unary_function<SignedType, UnsignedType> 30 + {
-13
pkgs/development/libraries/db/clang-4.8.patch
··· 38 38 #else 39 39 #define atomic_inc(env, p) __atomic_inc(env, p) 40 40 #define atomic_dec(env, p) __atomic_dec(env, p) 41 - diff --git a/dbinc/db.in b/dbinc/db.in 42 - index 9fc6712..7428e0a 100644 43 - --- a/dbinc/db.in 44 - +++ b/dbinc/db.in 45 - @@ -2413,7 +2413,7 @@ typedef struct { 46 - #define fetch(a) __db_dbm_fetch@DB_VERSION_UNIQUE_NAME@(a) 47 - #define firstkey __db_dbm_firstkey@DB_VERSION_UNIQUE_NAME@ 48 - #define nextkey(a) __db_dbm_nextkey@DB_VERSION_UNIQUE_NAME@(a) 49 - -#define store(a, b) __db_dbm_store@DB_VERSION_UNIQUE_NAME@(a, b) 50 - +#define store_db(a, b) __db_dbm_store@DB_VERSION_UNIQUE_NAME@(a, b) 51 - 52 - /******************************************************* 53 - * Hsearch historic interface. 54 41 diff --git a/mp/mp_fget.c b/mp/mp_fget.c 55 42 index 5fdee5a..0b75f57 100644 56 43 --- a/mp/mp_fget.c
-13
pkgs/development/libraries/db/clang-5.3.patch
··· 38 38 #else 39 39 #define atomic_inc(env, p) __atomic_inc(env, p) 40 40 #define atomic_dec(env, p) __atomic_dec(env, p) 41 - diff --git a/src/dbinc/db.in b/src/dbinc/db.in 42 - index 92ac822..f80428e 100644 43 - --- a/src/dbinc/db.in 44 - +++ b/src/dbinc/db.in 45 - @@ -2782,7 +2782,7 @@ typedef struct { 46 - #define fetch(a) __db_dbm_fetch@DB_VERSION_UNIQUE_NAME@(a) 47 - #define firstkey __db_dbm_firstkey@DB_VERSION_UNIQUE_NAME@ 48 - #define nextkey(a) __db_dbm_nextkey@DB_VERSION_UNIQUE_NAME@(a) 49 - -#define store(a, b) __db_dbm_store@DB_VERSION_UNIQUE_NAME@(a, b) 50 - +#define store_db(a, b) __db_dbm_store@DB_VERSION_UNIQUE_NAME@(a, b) 51 - 52 - /******************************************************* 53 - * Hsearch historic interface. 54 41 diff --git a/src/mp/mp_fget.c b/src/mp/mp_fget.c 55 42 index 16de695..d0dcc29 100644 56 43 --- a/src/mp/mp_fget.c
-13
pkgs/development/libraries/db/clang-6.0.patch
··· 20 20 #else 21 21 #define atomic_inc(env, p) __atomic_inc_int(env, p) 22 22 #define atomic_dec(env, p) __atomic_dec_int(env, p) 23 - diff --git a/src/dbinc/db.in b/src/dbinc/db.in 24 - index 3c2ad9b..3e46f02 100644 25 - --- a/src/dbinc/db.in 26 - +++ b/src/dbinc/db.in 27 - @@ -2999,7 +2999,7 @@ typedef struct { 28 - #define fetch(a) __db_dbm_fetch@DB_VERSION_UNIQUE_NAME@(a) 29 - #define firstkey __db_dbm_firstkey@DB_VERSION_UNIQUE_NAME@ 30 - #define nextkey(a) __db_dbm_nextkey@DB_VERSION_UNIQUE_NAME@(a) 31 - -#define store(a, b) __db_dbm_store@DB_VERSION_UNIQUE_NAME@(a, b) 32 - +#define store_db(a, b) __db_dbm_store@DB_VERSION_UNIQUE_NAME@(a, b) 33 - 34 - /******************************************************* 35 - * Hsearch historic interface. 36 23 diff --git a/src/mp/mp_fget.c b/src/mp/mp_fget.c 37 24 index 59fe9fe..fa4ced7 100644 38 25 --- a/src/mp/mp_fget.c
+8 -6
pkgs/development/libraries/db/generic.nix
··· 1 1 { stdenv, fetchurl 2 2 , cxxSupport ? true 3 3 , compat185 ? true 4 + , dbmSupport ? false 4 5 5 6 # Options from inherited versions 6 7 , version, sha256 ··· 19 20 20 21 patches = extraPatches; 21 22 22 - configureFlags = [ 23 - (if cxxSupport then "--enable-cxx" else "--disable-cxx") 24 - (if compat185 then "--enable-compat185" else "--disable-compat185") 25 - "--enable-dbm" 26 - (stdenv.lib.optionalString stdenv.isFreeBSD "--with-pic") 27 - ]; 23 + configureFlags = 24 + [ 25 + (if cxxSupport then "--enable-cxx" else "--disable-cxx") 26 + (if compat185 then "--enable-compat185" else "--disable-compat185") 27 + ] 28 + ++ stdenv.lib.optional dbmSupport "--enable-dbm" 29 + ++ stdenv.lib.optional stdenv.isFreeBSD "--with-pic"; 28 30 29 31 preConfigure = '' 30 32 cd build_unix
+2
pkgs/development/libraries/dirac/default.nix
··· 14 14 15 15 patches = [ ./dirac-1.0.2.patch ]; 16 16 17 + NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; 18 + 17 19 postInstall = '' 18 20 # keep only necessary binaries 19 21 find $out/bin \( -name '*RGB*' -or -name '*YUV*' -or -name create_dirac_testfile.pl \) -delete
+7 -1
pkgs/development/libraries/freeimage/default.nix
··· 1 - {stdenv, fetchurl, unzip, darwin}: 1 + { stdenv, fetchurl, unzip, darwin }: 2 + 2 3 stdenv.mkDerivation { 3 4 name = "freeimage-3.17.0"; 5 + 4 6 src = fetchurl { 5 7 url = mirror://sourceforge/freeimage/FreeImage3170.zip; 6 8 sha256 = "12bz57asdcfsz3zr9i9nska0fb6h3z2aizy412qjqkixkginbz7v"; 7 9 }; 10 + 8 11 buildInputs = [ unzip ] ++ stdenv.lib.optional stdenv.isDarwin darwin.cctools; 12 + 9 13 prePatch = if stdenv.isDarwin 10 14 then '' 11 15 sed -e 's/gcc-4.0/clang/g' \ ··· 37 41 postBuild = stdenv.lib.optionalString (!stdenv.isDarwin) "make -f Makefile.fip"; 38 42 preInstall = "mkdir -p $out/include $out/lib"; 39 43 postInstall = stdenv.lib.optionalString (!stdenv.isDarwin) "make -f Makefile.fip install"; 44 + 45 + NIX_CFLAGS_COMPILE = "-Wno-narrowing"; 40 46 41 47 meta = { 42 48 description = "Open Source library for accessing popular graphics image file formats";
+6 -13
pkgs/development/libraries/geos/default.nix
··· 1 - { composableDerivation, fetchurl, python }: 1 + { stdenv, fetchurl, fetchpatch, python }: 2 2 3 - let inherit (composableDerivation) edf; in 4 - 5 - composableDerivation.composableDerivation {} rec { 6 - 7 - flags = 8 - # python and ruby untested 9 - edf { name = "python"; enable = { buildInputs = [ python ]; }; }; 10 - # (if args.use_svn then ["libtool" "autoconf" "automake" "swig"] else []) 11 - # // edf { name = "ruby"; enable = { buildInputs = [ ruby ]; };} 12 - 13 - name = "geos-3.5.0"; 3 + stdenv.mkDerivation rec { 4 + name = "geos-3.6.1"; 14 5 15 6 src = fetchurl { 16 7 url = "http://download.osgeo.org/geos/${name}.tar.bz2"; 17 - sha256 = "49982b23bcfa64a53333dab136b82e25354edeb806e5a2e2f5b8aa98b1d0ae02"; 8 + sha256 = "1icz31kd5sml2kdxhjznvmv33zfr6nig9l0i6bdcz9q9g8x4wbja"; 18 9 }; 19 10 20 11 enableParallelBuilding = true; 12 + 13 + buildInputs = [ python ]; 21 14 22 15 meta = { 23 16 description = "C++ port of the Java Topology Suite (JTS)";
+2 -2
pkgs/development/libraries/gmime/default.nix
··· 1 1 { stdenv, fetchurl, pkgconfig, glib, zlib, libgpgerror, gobjectIntrospection }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "gmime-2.6.20"; 4 + name = "gmime-2.6.23"; 5 5 6 6 src = fetchurl { 7 7 url = "mirror://gnome/sources/gmime/2.6/${name}.tar.xz"; 8 - sha256 = "0rfzbgsh8ira5p76kdghygl5i3fvmmx4wbw5rp7f8ajc4vxp18g0"; 8 + sha256 = "0slzlzcr3h8jikpz5a5amqd0csqh2m40gdk910ws2hnaf5m6hjbi"; 9 9 }; 10 10 11 11 outputs = [ "out" "dev" ];
+2 -2
pkgs/development/libraries/gnu-efi/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "gnu-efi-${version}"; 5 - version = "3.0.4"; 5 + version = "3.0.5"; 6 6 7 7 src = fetchurl { 8 8 url = "mirror://sourceforge/gnu-efi/${name}.tar.bz2"; 9 - sha256 = "1bzq5czw5dxlvpgs9ij2iz7q6krwhja87vc982r6vffcqcl0982i"; 9 + sha256 = "08hb2gpzcj5p743wcagm0j2m4gh100xv12llpbjc13zi2icwv3xx"; 10 10 }; 11 11 12 12 patches = optional stdenv.isAarch64 ./aarch64-fix-discarded-qualifier.patch;
+2 -3
pkgs/development/libraries/gpgme/default.nix
··· 9 9 gpgProgram = if useGnupg1 then "gpg" else "gpg2"; 10 10 in 11 11 stdenv.mkDerivation rec { 12 - name = "gpgme-1.7.0"; 12 + name = "gpgme-1.8.0"; 13 13 14 14 src = fetchurl { 15 15 url = "mirror://gnupg/gpgme/${name}.tar.bz2"; 16 - sha256 = "0j6capvv6lcr6p763lr2ygzkzkj5lqm7fnbfc1xaygib1znmzxbi"; 16 + sha256 = "0csx3qnycwm0n90ql6gs65if5xi4gqyzzy21fxs2xqicghjrfq2r"; 17 17 }; 18 18 19 19 outputs = [ "out" "dev" "info" ]; ··· 24 24 nativeBuildInputs = [ pkgconfig gnupg ]; 25 25 26 26 configureFlags = [ 27 - "--with-gpg=${gpgStorePath}/bin/${gpgProgram}" 28 27 "--enable-fixed-path=${gpgStorePath}/bin" 29 28 ]; 30 29
+1
pkgs/development/libraries/libe-book/default.nix
··· 28 28 src = fetchurl { 29 29 inherit (s) url sha256; 30 30 }; 31 + NIX_CFLAGS_COMPILE = "-Wno-error=unused-function"; 31 32 meta = { 32 33 inherit (s) version; 33 34 description = ''Library for import of reflowable e-book formats'';
+3
pkgs/development/libraries/libfaketime/default.nix
··· 16 16 makeFlagsArray+=(PREFIX="$out" LIBDIRNAME=/lib) 17 17 ''; 18 18 19 + # Work around "libfaketime.c:513:7: error: nonnull argument 'buf' compared to NULL [-Werror=nonnull-compare]". 20 + NIX_CFLAGS_COMPILE = "-Wno-nonnull-compare"; 21 + 19 22 meta = with stdenv.lib; { 20 23 description = "Report faked system time to programs without having to change the system-wide time"; 21 24 homepage = http://www.code-wizards.com/projects/libfaketime/;
+2 -2
pkgs/development/libraries/libgcrypt/default.nix
··· 4 4 5 5 stdenv.mkDerivation rec { 6 6 name = "libgcrypt-${version}"; 7 - version = "1.7.5"; 7 + version = "1.7.6"; 8 8 9 9 src = fetchurl { 10 10 url = "mirror://gnupg/libgcrypt/${name}.tar.bz2"; 11 - sha256 = "0078pbzm6nlgvnwlylshsg707ifcmfpnpbvhlhqbpwpfic9a9zni"; 11 + sha256 = "1g05prhgqw4ryd0w433q8nhds0h93kf47hfjagi2r7dghkpaysk2"; 12 12 }; 13 13 14 14 outputs = [ "out" "dev" "info" ];
+2 -2
pkgs/development/libraries/libgpg-error/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "libgpg-error-${version}"; 5 - version = "1.24"; 5 + version = "1.26"; 6 6 7 7 src = fetchurl { 8 8 url = "mirror://gnupg/libgpg-error/${name}.tar.bz2"; 9 - sha256 = "0h75sf1ngr750c3fjfn4583q7wz40qm63jhg8vjfdrbx936f2s4j"; 9 + sha256 = "0sgfia0syq78k1c9h10rkhc1nfv5v097icrprlx2x4qn074wnjsc"; 10 10 }; 11 11 12 12 postPatch = "sed '/BUILD_TIMESTAMP=/s/=.*/=1970-01-01T00:01+0000/' -i ./configure";
+9 -2
pkgs/development/libraries/libraw/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "libraw-${version}"; 5 - version = "0.17.1"; 5 + version = "0.17.2"; 6 6 7 7 src = fetchurl { 8 8 url = "http://www.libraw.org/data/LibRaw-${version}.tar.gz"; 9 - sha256 = "18fygk896gxbx47nh2rn5jp4skisgkl6pdfjqb7h0zn39hd6b6g5"; 9 + sha256 = "0p6imxpsfn82i0i9w27fnzq6q6gwzvb9f7sygqqakv36fqnc9c4j"; 10 10 }; 11 + 12 + patches = 13 + [ (fetchurl { 14 + url = https://anonscm.debian.org/cgit/pkg-phototools/libraw.git/plain/debian/patches/0001-Fix_gcc6_narrowing_conversion.patch?id=d890937aaca6359df45a66b35e547c94ca564823; 15 + sha256 = "1lcg5l0wmwiyzhhm67c1c7hy8py6ihxfmicnhrwpi3i6f16vq29w"; 16 + }) 17 + ]; 11 18 12 19 outputs = [ "out" "lib" "dev" "doc" ]; 13 20
+1 -5
pkgs/development/libraries/libtasn1/default.nix
··· 5 5 6 6 src = fetchurl { 7 7 url = "mirror://gnu/libtasn1/${name}.tar.gz"; 8 - sha256 = "681a4d9a0d259f2125713f2e5766c5809f151b3a1392fd91390f780b4b8f5a02"; 8 + sha256 = "00jsix5hny0g768zv4hk78dib7w0qmk5fbizf4jj37r51nd4s6k8"; 9 9 }; 10 10 11 11 outputs = [ "out" "dev" "devdoc" ]; 12 12 outputBin = "dev"; 13 - 14 - # Warning causes build to fail on darwin since 4.9, 15 - # check if this can be removed in the next release. 16 - CFLAGS = "-Wno-sign-compare"; 17 13 18 14 buildInputs = [ perl texinfo ]; 19 15
+2 -2
pkgs/development/libraries/libva/default.nix
··· 5 5 6 6 stdenv.mkDerivation rec { 7 7 name = "libva-${version}"; 8 - version = "1.7.2"; 8 + version = "1.7.3"; 9 9 10 10 src = fetchurl { 11 11 url = "http://www.freedesktop.org/software/vaapi/releases/libva/${name}.tar.bz2"; 12 - sha256 = "04rczbnbi70y1ziy9ab59szi3glk9q35hshlws0bcj2ndbqirmjx"; 12 + sha256 = "1ndrf136rlw03xag7j1xpmf9015d1h0dpnv6v587jnh6k2a17g12"; 13 13 }; 14 14 15 15 outputs = [ "bin" "dev" "out" ];
+7 -5
pkgs/development/libraries/lmdb/default.nix
··· 1 - { stdenv, fetchzip }: 1 + { stdenv, fetchFromGitHub }: 2 2 3 3 let optional = stdenv.lib.optional; 4 4 in stdenv.mkDerivation rec { 5 5 name = "lmdb-${version}"; 6 - version = "0.9.18"; 6 + version = "0.9.19"; 7 7 8 - src = fetchzip { 9 - url = "https://github.com/LMDB/lmdb/archive/LMDB_${version}.tar.gz"; 10 - sha256 = "01j384kxg36kym060pybr5p6mjw0xv33bqbb8arncdkdq57xk8wg"; 8 + src = fetchFromGitHub { 9 + owner = "LMDB"; 10 + repo = "lmdb"; 11 + rev = "LMDB_${version}"; 12 + sha256 = "04qx803jdmhkcam748fn0az3cyzvj91lw28kcvwfyq0al7pmjkfs"; 11 13 }; 12 14 13 15 postUnpack = "sourceRoot=\${sourceRoot}/libraries/liblmdb";
+2 -2
pkgs/development/libraries/npth/default.nix
··· 1 1 { stdenv, fetchurl }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "npth-1.2"; 4 + name = "npth-1.3"; 5 5 6 6 src = fetchurl { 7 7 url = "ftp://ftp.gnupg.org/gcrypt/npth/${name}.tar.bz2"; 8 - sha256 = "12n0nvhw4fzwp0k7gjv3rc6pdml0qiinbbfiz4ilg6pl5kdxvnvd"; 8 + sha256 = "0am86vblapwz84254qpmhz0chk70g6qzh3wdxcs0gvba8d01ka5w"; 9 9 }; 10 10 11 11 meta = with stdenv.lib; {
+4 -4
pkgs/development/libraries/podofo/default.nix
··· 1 1 { stdenv, fetchurl, cmake, zlib, freetype, libjpeg, libtiff, fontconfig 2 - , openssl, libpng, lua5 }: 2 + , gcc5, openssl, libpng, lua5 }: 3 3 4 4 stdenv.mkDerivation rec { 5 - name = "podofo-0.9.3"; 5 + name = "podofo-0.9.4"; 6 6 7 7 src = fetchurl { 8 8 url = "mirror://sourceforge/podofo/${name}.tar.gz"; 9 - sha256 = "1n12lbq9x15vqn7dc0hsccp56l5jdff1xrhvlfqlbklxx0qiw9pc"; 9 + sha256 = "0ngqgwl38afmzcj2zpf18a2g63vhm2fp45cbf9z62129rdgm1pyc"; 10 10 }; 11 11 12 12 propagatedBuildInputs = [ zlib freetype libjpeg libtiff fontconfig openssl libpng ]; 13 - nativeBuildInputs = [ cmake ]; 13 + nativeBuildInputs = [ cmake gcc5 ]; 14 14 buildInputs = [ lua5 stdenv.cc.libc ]; 15 15 16 16 crossAttrs = {
+2 -2
pkgs/development/libraries/protobuf/3.0.nix
··· 1 1 { callPackage, ... }: 2 2 3 3 callPackage ./generic-v3.nix { 4 - version = "3.0.0"; 5 - sha256 = "05qkcl96lkdama848m7q3nzzzdckjc158iiyvgmln0zi232xx7g7"; 4 + version = "3.0.2"; 5 + sha256 = "16wmr1fgdqpf84fkq90cxvccfsxx7h0q0wzqkbg8vdjmka412g09"; 6 6 }
+4
pkgs/development/libraries/protobuf/generic-v3.nix
··· 34 34 35 35 doCheck = true; 36 36 37 + NIX_CFLAGS_COMPILE = with stdenv.lib; 38 + # gcc before 6 doesn't know this option 39 + optionalString (hasPrefix "gcc-6" stdenv.cc.cc.name) "-Wno-error=misleading-indentation"; 40 + 37 41 meta = { 38 42 description = "Google's data interchange format"; 39 43 longDescription =
+13 -4
pkgs/development/libraries/qt-4.x/4.8/default.nix
··· 80 80 gtk = gtk2.out; 81 81 gdk_pixbuf = gdk_pixbuf.out; 82 82 }) 83 - ++ [(fetchpatch { 83 + ++ [ 84 + (fetchpatch { 84 85 name = "fix-medium-font.patch"; 85 86 url = "http://anonscm.debian.org/cgit/pkg-kde/qt/qt4-x11.git/plain/debian/patches/" 86 87 + "kubuntu_39_fix_medium_font.diff?id=21b342d71c19e6d68b649947f913410fe6129ea4"; 87 88 sha256 = "0bli44chn03c2y70w1n8l7ss4ya0b40jqqav8yxrykayi01yf95j"; 88 - })]; 89 + }) 90 + (fetchpatch { 91 + name = "qt4-gcc6.patch"; 92 + url = "https://git.archlinux.org/svntogit/packages.git/plain/trunk/qt4-gcc6.patch?h=packages/qt4&id=ca773a144f5abb244ac4f2749eeee9333cac001f"; 93 + sha256 = "07lrva7bjh6i40p7b3ml26a2jlznri8bh7y7iyx5zmvb1gfxmj34"; 94 + }) 95 + ]; 89 96 90 97 preConfigure = '' 91 98 export LD_LIBRARY_PATH="`pwd`/lib:$LD_LIBRARY_PATH" ··· 145 152 146 153 enableParallelBuilding = false; 147 154 148 - NIX_CFLAGS_COMPILE = optionalString (stdenv.isFreeBSD || stdenv.isDarwin) 149 - "-I${glib.dev}/include/glib-2.0 -I${glib.out}/lib/glib-2.0/include" 155 + NIX_CFLAGS_COMPILE = 156 + optionalString stdenv.isLinux "-std=gnu++98" # gnu++ in (Obj)C flags is no good on Darwin 157 + + optionalString (stdenv.isFreeBSD || stdenv.isDarwin) 158 + " -I${glib.dev}/include/glib-2.0 -I${glib.out}/lib/glib-2.0/include" 150 159 + optionalString stdenv.isDarwin " -I${libcxx}/include/c++/v1"; 151 160 152 161 NIX_LDFLAGS = optionalString (stdenv.isFreeBSD || stdenv.isDarwin)
+5 -2
pkgs/development/libraries/smpeg/default.nix
··· 10 10 sha256 = "0ynwn7ih5l2b1kpzpibns9bb9wzfjak7mgrb1ji0dkn2q5pv6lr0"; 11 11 }; 12 12 13 - enableParallelBuilding = true; 13 + patches = [ 14 + ./format.patch 15 + ./gcc6.patch 16 + ]; 14 17 15 - hardeningDisable = [ "format" ]; 18 + enableParallelBuilding = true; 16 19 17 20 buildInputs = [ SDL gtk2 mesa ]; 18 21
+11
pkgs/development/libraries/smpeg/format.patch
··· 1 + --- a/plaympeg.c 2014-09-04 08:55:10.646132150 +0200 2 + +++ b/plaympeg.c 2014-09-04 08:56:57.465210820 +0200 3 + @@ -262,7 +262,7 @@ 4 + answer[i] = c; 5 + } 6 + answer[i] = 0; 7 + - fprintf(stderr, answer + 4); 8 + + fprintf(stderr, "%s", answer + 4); 9 + } 10 + while(answer[3] == '-'); 11 +
+33
pkgs/development/libraries/smpeg/gcc6.patch
··· 1 + --- a/audio/hufftable.cpp 2 + +++ b/audio/hufftable.cpp 3 + @@ -9,6 +9,7 @@ 4 + #include "config.h" 5 + #endif 6 + 7 + +#include <climits> 8 + #include "MPEGaudio.h" 9 + 10 + static const unsigned int 11 + @@ -550,11 +551,11 @@ htd33[ 31][2]={{ 16, 1},{ 8, 1},{ 4, 12 + 13 + const HUFFMANCODETABLE MPEGaudio::ht[HTN]= 14 + { 15 + - { 0, 0-1, 0-1, 0, 0, htd33}, 16 + + { 0, UINT_MAX, UINT_MAX, 0, 0, htd33}, 17 + { 1, 2-1, 2-1, 0, 7,htd01}, 18 + { 2, 3-1, 3-1, 0, 17,htd02}, 19 + { 3, 3-1, 3-1, 0, 17,htd03}, 20 + - { 4, 0-1, 0-1, 0, 0, htd33}, 21 + + { 4, UINT_MAX, UINT_MAX, 0, 0, htd33}, 22 + { 5, 4-1, 4-1, 0, 31,htd05}, 23 + { 6, 4-1, 4-1, 0, 31,htd06}, 24 + { 7, 6-1, 6-1, 0, 71,htd07}, 25 + @@ -564,7 +565,7 @@ const HUFFMANCODETABLE MPEGaudio::ht[HTN 26 + {11, 8-1, 8-1, 0,127,htd11}, 27 + {12, 8-1, 8-1, 0,127,htd12}, 28 + {13,16-1,16-1, 0,511,htd13}, 29 + - {14, 0-1, 0-1, 0, 0, htd33}, 30 + + {14, UINT_MAX, UINT_MAX, 0, 0, htd33}, 31 + {15,16-1,16-1, 0,511,htd15}, 32 + {16,16-1,16-1, 1,511,htd16}, 33 + {17,16-1,16-1, 2,511,htd16},
+2 -2
pkgs/development/libraries/vaapi-intel/default.nix
··· 3 3 }: 4 4 5 5 stdenv.mkDerivation rec { 6 - name = "libva-intel-driver-1.7.2"; 6 + name = "libva-intel-driver-1.7.3"; 7 7 8 8 src = fetchurl { 9 9 url = "http://www.freedesktop.org/software/vaapi/releases/libva-intel-driver/${name}.tar.bz2"; 10 - sha256 = "1g371q9p31i57fkidjp2akvrbaadpyx3bwmg5kn72sc2mbv7p7h9"; 10 + sha256 = "0dzryi9x873p9gikzcb9wzwqv2j3wssm0b85ws63vqjszpckgbbn"; 11 11 }; 12 12 13 13 patchPhase = ''
+1 -1
pkgs/development/libraries/wxGTK-2.8/default.nix
··· 41 41 + optionalString withMesa "${mesa.out}/lib "; 42 42 43 43 # Work around a bug in configure. 44 - NIX_CFLAGS_COMPILE = [ "-DHAVE_X11_XLIB_H=1" "-lX11" "-lcairo" ]; 44 + NIX_CFLAGS_COMPILE = [ "-DHAVE_X11_XLIB_H=1" "-lX11" "-lcairo" "-Wno-narrowing" ]; 45 45 46 46 preConfigure = " 47 47 substituteInPlace configure --replace 'SEARCH_INCLUDE=' 'DUMMY_SEARCH_INCLUDE='
+7 -2
pkgs/development/libraries/wxGTK-3.0/default.nix
··· 1 - { stdenv, fetchurl, pkgconfig, gtk2, libXinerama, libSM, libXxf86vm, xf86vidmodeproto 2 - , gstreamer, gst_plugins_base, GConf, setfile 1 + { stdenv, fetchurl, fetchpatch, pkgconfig, gtk2, libXinerama, libSM, libXxf86vm 2 + , xf86vidmodeproto , gstreamer, gst_plugins_base, GConf, setfile 3 3 , withMesa ? true, mesa ? null, compat24 ? false, compat26 ? true, unicode ? true 4 4 , withWebKit ? false, webkitgtk2 ? null 5 5 , AGL ? null, Carbon ? null, Cocoa ? null, Kernel ? null, QTKit ? null ··· 32 32 nativeBuildInputs = [ pkgconfig ]; 33 33 34 34 propagatedBuildInputs = optional stdenv.isDarwin AGL; 35 + 36 + patches = [ (fetchpatch { 37 + url = "https://raw.githubusercontent.com/jessehager/MINGW-packages/af6ece963d8157dd3fbc710bcc190647c4924c63/mingw-w64-wxwidgets/wxWidgets-3.0.2-gcc6-abs.patch"; 38 + sha256 = "0100pg0z7i6cjyysf2k3330pmqmdaxgc9hz6kxnfvc31dynjcq3h"; 39 + }) ]; 35 40 36 41 configureFlags = 37 42 [ "--enable-gtk2" "--disable-precomp-headers" "--enable-mediactrl"
+10 -1
pkgs/development/tools/misc/binutils/default.nix
··· 32 32 # This is needed, for instance, so that running "ldd" on a binary that is 33 33 # PaX-marked to disable mprotect doesn't fail with permission denied. 34 34 ./pt-pax-flags.patch 35 + 36 + # Bfd looks in BINDIR/../lib for some plugins that don't 37 + # exist. This is pointless (since users can't install plugins 38 + # there) and causes a cycle between the lib and bin outputs, so 39 + # get rid of it. 40 + ./no-plugins.patch 35 41 ]; 36 42 37 - outputs = [ "out" "info" ] ++ (optional (cross == null) "dev"); 43 + outputs = [ "out" ] 44 + ++ optional (!stdenv.isDarwin) "lib" # problems in Darwin stdenv 45 + ++ [ "info" ] 46 + ++ optional (cross == null) "dev"; 38 47 39 48 nativeBuildInputs = [ bison ]; 40 49 buildInputs = [ zlib ];
+19
pkgs/development/tools/misc/binutils/no-plugins.patch
··· 1 + diff -ru binutils-2.27-orig/bfd/plugin.c binutils-2.27/bfd/plugin.c 2 + --- binutils-2.27-orig/bfd/plugin.c 2016-10-14 17:46:30.791315555 +0200 3 + +++ binutils-2.27/bfd/plugin.c 2016-10-14 17:46:38.583298765 +0200 4 + @@ -333,6 +333,7 @@ 5 + if (plugin_program_name == NULL) 6 + return found; 7 + 8 + +#if 0 9 + plugin_dir = concat (BINDIR, "/../lib/bfd-plugins", NULL); 10 + p = make_relative_prefix (plugin_program_name, 11 + BINDIR, 12 + @@ -364,6 +365,7 @@ 13 + free (p); 14 + if (d) 15 + closedir (d); 16 + +#endif 17 + 18 + return found; 19 + }
+2
pkgs/development/tools/parsing/ragel/default.nix
··· 20 20 21 21 configureFlags = [ "--with-colm=${colm}" ]; 22 22 23 + NIX_CFLAGS_COMPILE = "-std=gnu++98"; 24 + 23 25 doCheck = true; 24 26 25 27 meta = with stdenv.lib; {
+6 -1
pkgs/games/openxcom/default.nix
··· 1 - {stdenv, fetchurl, cmake, mesa, zlib, openssl, libyamlcpp, boost 1 + {stdenv, fetchurl, fetchpatch, cmake, mesa, zlib, openssl, libyamlcpp, boost 2 2 , SDL, SDL_image, SDL_mixer, SDL_gfx }: 3 3 4 4 let version = "1.0.0"; in ··· 12 12 13 13 buildInputs = [ cmake mesa zlib openssl libyamlcpp boost 14 14 SDL SDL_image SDL_mixer SDL_gfx ]; 15 + 16 + patches = [ (fetchpatch { 17 + url = "https://github.com/SupSuper/OpenXcom/commit/49bec0851fc6e5365cac0f71b2c40a80ddf95e77.patch"; 18 + sha256 = "156fk8wz4qc0nmqq3zjb6kw84qirabads2azr6xvlgb3lcn327v2"; 19 + }) ]; 15 20 16 21 meta = { 17 22 description = "Open source clone of UFO: Enemy Unknown";
+15
pkgs/games/warmux/gcc-fix.patch
··· 34 34 #include <WARMUX_types.h> 35 35 #include <WARMUX_network.h> 36 36 #include <WARMUX_index_server.h> 37 + 38 + Description: Fix conversion error in gcc 6. 39 + Author: Robin Gloster <mail@glob.in> 40 + 41 + --- warmux-11.04.1.orig/src/interface/weapon_menu.cpp 2017-01-19 23:06:32.401035923 +0100 42 + +++ warmux-11.04.1/src/interface/weapon_menu.cpp 2017-01-19 23:07:14.245866593 +0100 43 + @@ -391,7 +391,7 @@ 44 + Weapon * WeaponsMenu::UpdateCurrentOverflyItem(const Polygon * poly) 45 + { 46 + if (!show) 47 + - return false; 48 + + return nullptr; 49 + const std::vector<PolygonItem *>& items = poly->GetItem(); 50 + WeaponMenuItem * tmp; 51 + Interface::GetInstance()->SetCurrentOverflyWeapon(NULL);
+10 -8
pkgs/misc/jackaudio/default.nix
··· 1 - { stdenv, fetchFromGitHub, pkgconfig, python2Packages, makeWrapper 2 - , bash, libsamplerate, libsndfile, readline, gcc 1 + { stdenv, fetchFromGitHub, fetchpatch, pkgconfig, python2Packages, makeWrapper 2 + , bash, libsamplerate, libsndfile, readline 3 3 4 4 # Optional Dependencies 5 5 , dbus ? null, libffado ? null, alsaLib ? null ··· 34 34 }; 35 35 36 36 nativeBuildInputs = [ pkgconfig python makeWrapper ]; 37 - buildInputs = [ gcc 38 - python 39 - 40 - libsamplerate libsndfile readline 41 - 37 + buildInputs = [ python libsamplerate libsndfile readline 42 38 optDbus optPythonDBus optLibffado optAlsaLib optLibopus 43 39 ]; 44 40 ··· 46 42 substituteInPlace svnversion_regenerate.sh --replace /bin/bash ${bash}/bin/bash 47 43 ''; 48 44 49 - patches = [ ./jack-gcc5.patch ]; 45 + patches = [ 46 + ./jack-gcc5.patch 47 + (fetchpatch { 48 + url = "https://github.com/jackaudio/jack2/commit/ff1ed2c4524095055140370c1008a2d9cccc5645.patch"; 49 + sha256 = "0vywakbmlskvs9ginij9ilk39wjyzg7w6cf1qxp11hb0hj69fir5"; 50 + }) 51 + ]; 50 52 51 53 configurePhase = '' 52 54 python waf configure --prefix=$out \
+7 -1
pkgs/os-specific/linux/kernel/perf.nix
··· 30 30 31 31 # Note: we don't add elfutils to buildInputs, since it provides a 32 32 # bad `ld' and other stuff. 33 - NIX_CFLAGS_COMPILE = "-Wno-error=cpp -Wno-error=bool-compare -Wno-error=deprecated-declarations"; 33 + NIX_CFLAGS_COMPILE = [ 34 + "-Wno-error=cpp" "-Wno-error=bool-compare" "-Wno-error=deprecated-declarations" 35 + ] 36 + # gcc before 6 doesn't know these options 37 + ++ stdenv.lib.optionals (hasPrefix "gcc-6" stdenv.cc.cc.name) [ 38 + "-Wno-error=unused-const-variable" "-Wno-error=misleading-indentation" 39 + ]; 34 40 35 41 installFlags = "install install-man ASCIIDOC8=1"; 36 42
+5 -15
pkgs/os-specific/linux/systemd/default.nix
··· 4 4 , kexectools, libmicrohttpd, linuxHeaders ? stdenv.cc.libc.linuxHeaders, libseccomp 5 5 , iptables, gnu-efi 6 6 , autoreconfHook, gettext, docbook_xsl, docbook_xml_dtd_42, docbook_xml_dtd_45 7 - , enableKDbus ? false 8 7 }: 9 8 10 9 assert stdenv.isLinux; 11 10 12 11 stdenv.mkDerivation rec { 13 - version = "231"; 12 + version = "232"; 14 13 name = "systemd-${version}"; 15 14 16 15 src = fetchFromGitHub { 17 - owner = "NixOS"; 16 + owner = "nixos"; 18 17 repo = "systemd"; 19 - rev = "3b11791d323cf2d0e00a156967021e1ae9119de2"; 20 - sha256 = "1xzldwd6407jdg6z36smd49d961nmqykpay969i4xfdldcgyjdv0"; 18 + rev = "9a35924a4f15dab2a84b3104b1cd125a3c36f77d"; 19 + sha256 = "1z3rishvjlr5d4qgd262r13z04vzvlrlgwm7kpsf4hk7w0gmz4i5"; 21 20 }; 22 21 23 - patches = [ 24 - # Fixes tty issues, see #18158. Remove when upgrading to systemd 232. 25 - (fetchpatch { 26 - url = "https://github.com/systemd/systemd/commit/bd64d82c1c0e3fe2a5f9b3dd9132d62834f50b2d.patch"; 27 - sha256 = "1gc9fxdlnfmjhbi77xfwcb5mkhryjsdi0rmbh2lq2qq737iyqqwm"; 28 - }) 29 - ]; 30 - 31 22 outputs = [ "out" "lib" "man" "dev" ]; 32 23 33 24 buildInputs = ··· 53 44 "--with-dbussystemservicedir=$(out)/share/dbus-1/system-services" 54 45 "--with-dbussessionservicedir=$(out)/share/dbus-1/services" 55 46 "--with-tty-gid=3" # tty in NixOS has gid 3 56 - "--enable-compat-libs" # get rid of this eventually 57 47 "--disable-tests" 58 48 59 49 "--enable-lz4" ··· 80 70 "--with-sysvinit-path=" 81 71 "--with-sysvrcnd-path=" 82 72 "--with-rc-local-script-path-stop=/etc/halt.local" 83 - ] ++ (if enableKDbus then [ "--enable-kdbus" ] else [ "--disable-kdbus" ]); 73 + ]; 84 74 85 75 hardeningDisable = [ "stackprotector" ]; 86 76
+6 -1
pkgs/tools/audio/acoustid-fingerprinter/default.nix
··· 1 - { stdenv, fetchurl, cmake, pkgconfig, qt4, taglib, chromaprint, ffmpeg }: 1 + { stdenv, fetchurl, fetchpatch, cmake, pkgconfig, qt4, taglib, chromaprint, ffmpeg }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "acoustid-fingerprinter-${version}"; ··· 13 13 buildInputs = [ cmake pkgconfig qt4 taglib chromaprint ffmpeg ]; 14 14 15 15 cmakeFlags = [ "-DTAGLIB_MIN_VERSION=${(builtins.parseDrvName taglib.name).version}" ]; 16 + 17 + patches = [ (fetchpatch { 18 + url = "https://bitbucket.org/acoustid/acoustid-fingerprinter/commits/632e87969c3a5562a5d4842b03613267ba6236b2/raw"; 19 + sha256 = "15hm9knrpqn3yqrwyjz4zh2aypwbcycd0c5svrsy1fb2h2rh05jk"; 20 + }) ]; 16 21 17 22 meta = with stdenv.lib; { 18 23 homepage = "http://acoustid.org/fingerprinter";
+7 -7
pkgs/tools/text/html-tidy/default.nix
··· 1 - { stdenv, fetchurl, cmake, libxslt }: 1 + { stdenv, fetchFromGitHub, cmake, libxslt }: 2 2 3 - let 4 - version = "5.0.0"; 5 - in 6 3 stdenv.mkDerivation rec { 7 4 name = "html-tidy-${version}"; 5 + version = "5.2.0"; 8 6 9 - src = fetchurl { 10 - url = "https://github.com/htacg/tidy-html5/archive/${version}.tar.gz"; 11 - sha256 = "1qz7hgk482496agngp9grz4jqkyxrp29r2ywbccc9i5198yspca4"; 7 + src = fetchFromGitHub { 8 + owner = "htacg"; 9 + repo = "tidy-html5"; 10 + rev = version; 11 + sha256 = "1yxp3kjsxd5zwwn4r5rpyq5ndyylbcnb9pisdyf7dxjqd47z64bc"; 12 12 }; 13 13 14 14 nativeBuildInputs = [ cmake libxslt/*manpage*/ ];
+5 -7
pkgs/top-level/all-packages.nix
··· 2787 2787 2788 2788 memtest86 = callPackage ../tools/misc/memtest86 { }; 2789 2789 2790 - memtest86plus = callPackage ../tools/misc/memtest86+ { }; 2790 + memtest86plus = callPackage ../tools/misc/memtest86+ { 2791 + stdenv = overrideCC stdenv gcc5; 2792 + }; 2791 2793 2792 2794 meo = callPackage ../tools/security/meo { 2793 2795 boost = boost155; ··· 11563 11565 11564 11566 mingetty = callPackage ../os-specific/linux/mingetty { }; 11565 11567 11566 - miraclecast = callPackage ../os-specific/linux/miraclecast { 11567 - systemd = systemd.override { enableKDbus = true; }; 11568 - }; 11568 + miraclecast = callPackage ../os-specific/linux/miraclecast { }; 11569 11569 11570 11570 mkinitcpio-nfs-utils = callPackage ../os-specific/linux/mkinitcpio-nfs-utils { }; 11571 11571 ··· 15742 15742 inherit (gnome2) libgnomeprint libgnomeprintui libgnomecanvas; 15743 15743 }; 15744 15744 15745 - apvlv = callPackage ../applications/misc/apvlv { 15746 - gtk2 = gtk2-x11; 15747 - }; 15745 + apvlv = callPackage ../applications/misc/apvlv { }; 15748 15746 15749 15747 xpdf = callPackage ../applications/misc/xpdf { 15750 15748 base14Fonts = "${ghostscript}/share/ghostscript/fonts";
+41 -1
pkgs/top-level/haskell-packages.nix
··· 1 1 { pkgs, callPackage, stdenv, buildPlatform, targetPlatform }: 2 2 3 - rec { 3 + let # These are attributes in compiler and packages that don't support integer-simple. 4 + integerSimpleExcludes = [ 5 + "ghc6102Binary" 6 + "ghc704Binary" 7 + "ghc742Binary" 8 + "ghc6104" 9 + "ghc6123" 10 + "ghc704" 11 + "ghcjs" 12 + "ghcjsHEAD" 13 + "ghcCross" 14 + "jhc" 15 + "uhc" 16 + "integer-simple" 17 + ]; 18 + in rec { 4 19 5 20 lib = import ../development/haskell-modules/lib.nix { inherit pkgs; }; 6 21 ··· 74 89 inherit (pkgs.haskellPackages) ghcWithPackages; 75 90 }); 76 91 92 + # The integer-simple attribute set contains all the GHC compilers 93 + # build with integer-simple instead of integer-gmp. 94 + integer-simple = 95 + let integerSimpleGhcNames = 96 + pkgs.lib.filter (name: ! builtins.elem name integerSimpleExcludes) 97 + (pkgs.lib.attrNames compiler); 98 + integerSimpleGhcs = pkgs.lib.genAttrs integerSimpleGhcNames 99 + (name: compiler."${name}".override { enableIntegerSimple = true; }); 100 + in pkgs.recurseIntoAttrs (integerSimpleGhcs // { 101 + ghcHEAD = integerSimpleGhcs.ghcHEAD.override { selfPkgs = packages.integer-simple.ghcHEAD; }; 102 + }); 77 103 }; 78 104 79 105 packages = { ··· 141 167 ghc = compiler.ghcjsHEAD; 142 168 compilerConfig = callPackage ../development/haskell-modules/configuration-ghcjs.nix { }; 143 169 }; 170 + 171 + # The integer-simple attribute set contains package sets for all the GHC compilers 172 + # using integer-simple instead of integer-gmp. 173 + integer-simple = 174 + let integerSimpleGhcNames = 175 + pkgs.lib.filter (name: ! builtins.elem name integerSimpleExcludes) 176 + (pkgs.lib.attrNames packages); 177 + in pkgs.lib.genAttrs integerSimpleGhcNames (name: packages."${name}".override { 178 + ghc = compiler.integer-simple."${name}"; 179 + overrides = _self : _super : { 180 + integer-simple = null; 181 + integer-gmp = null; 182 + }; 183 + }); 144 184 145 185 # These attributes exist only for backwards-compatibility so that we don't break 146 186 # stack's --nix support. These attributes will disappear in the foreseeable