git.iko.soy/typeable/nixpkgs
on master help sign in
Merge branch 'staging'
commit455ce3528c9caddf4aea774388707da13bf52ef3 authorVladimír Čunát <vcunat@gmail.com> dateFri 24 Mar 2017, 21:07 (10 years ago) parent9a77701c1a9dc3
49 files changed+384−203
nixos/doc/manual/release-notes/rl-1709.xml+12 nixos/modules/config/fonts/fontconfig-penultimate.nix+57 nixos/modules/config/fonts/fontconfig-ultimate.nix+1−11 nixos/modules/config/fonts/fontconfig.nix+32−23 nixos/modules/module-list.nix+2−1 nixos/modules/rename.nix+1−3 nixos/modules/services/x11/display-managers/default.nix+1−1 pkgs/applications/version-management/git-and-tools/git/default.nix−1 pkgs/applications/version-management/git-and-tools/git/ssl-cert-file.patch−11 pkgs/applications/version-management/mercurial/default.nix+2−1 pkgs/data/fonts/fontconfig-penultimate/default.nix+26 pkgs/development/compilers/llvm/3.7/libc++abi.nix+15−2 pkgs/development/compilers/llvm/3.9/clang/default.nix+11 pkgs/development/compilers/llvm/3.9/llvm.nix+9−7 pkgs/development/libraries/cairo/default.nix−11 pkgs/development/libraries/fontconfig/2.10.nix+5−11 pkgs/development/libraries/fontconfig/default.nix+4 pkgs/development/libraries/fontconfig/test-pcf-family-names-freetype-2.7.patch+18 pkgs/development/libraries/freetype/default.nix+34−60 pkgs/development/libraries/freetype/enable-subpixel-rendering.patch+13 pkgs/development/libraries/freetype/enable-table-validation.patch+22 pkgs/development/libraries/jemalloc/default.nix+5−2 pkgs/development/libraries/mesa/default.nix+5−3 pkgs/development/libraries/nghttp2/default.nix+11−5 pkgs/development/libraries/openssl/default.nix+3−1 pkgs/development/libraries/openssl/nix-ssl-cert-file.patch+14 pkgs/development/libraries/openssl/use-etc-ssl-certs-darwin.patch+13 pkgs/development/python-modules/dbus/default.nix+3−2 pkgs/development/python-modules/koji/default.nix+3−2 pkgs/development/python-modules/libsexy/default.nix+3−2 pkgs/development/python-modules/pycairo/default.nix+3−2 pkgs/development/python-modules/pygobject/3.nix+3−2 pkgs/development/python-modules/pygobject/default.nix+3−2 pkgs/development/python-modules/pygtksourceview/default.nix+3−2 pkgs/development/python-modules/pyqt/4.x.nix+3−2 pkgs/development/python-modules/pyqt/5.x.nix+3−2 pkgs/development/python-modules/pyside/default.nix+3−2 pkgs/development/python-modules/pyxml/default.nix+3−2 pkgs/development/python-modules/sip/default.nix+3−2 pkgs/development/tools/documentation/gnome-doc-utils/default.nix+2−1 pkgs/development/tools/misc/autogen/default.nix+3−3 pkgs/development/tools/misc/d-feet/default.nix+2−2 pkgs/misc/drivers/hplip/default.nix+2−1 pkgs/os-specific/linux/dstat/default.nix+2−1 pkgs/shells/bash/4.4.nix−7 pkgs/shells/bash/bash-4.4-patches.nix+7 pkgs/tools/networking/curl/default.nix+1−5 pkgs/top-level/all-packages.nix+3 pkgs/top-level/python-packages.nix+10−5
nixos/doc/manual/release-notes/rl-1709.xml+12
@@ -49,6 +49,18 @@ following incompatible changes:</para>
4949 rest of the system on a stable release.
5050 </para>
5151 </listitem>
52+ <listitem>
53+ <para>
54+ Updated to FreeType 2.7.1, including a new TrueType engine.
55+ The new engine replaces the Infinality engine which was the default in
56+ NixOS. The default font rendering settings are now provided by
57+ fontconfig-penultimate, replacing fontconfig-ultimate; the new defaults
58+ are less invasive and provide rendering that is more consistent with
59+ other systems and hopefully with each font designer's intent. Some
60+ system-wide configuration has been removed from the Fontconfig NixOS
61+ module where user Fontconfig settings are available.
62+ </para>
63+ </listitem>
5264
5365</itemizedlist>
5466
nixos/modules/config/fonts/fontconfig-penultimate.nixnew file+57
@@ -0,0 +1,57 @@
1+{ config, pkgs, lib, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.fonts.fontconfig.penultimate;
7+
8+ latestVersion = pkgs.fontconfig.configVersion;
9+
10+ # The configuration to be included in /etc/font/
11+ confPkg = pkgs.runCommand "font-penultimate-conf" {} ''
12+ support_folder=$out/etc/fonts/conf.d
13+ latest_folder=$out/etc/fonts/${latestVersion}/conf.d
14+
15+ mkdir -p $support_folder
16+ mkdir -p $latest_folder
17+
18+ # fontconfig ultimate various configuration files
19+ ln -s ${pkgs.fontconfig-penultimate}/etc/fonts/conf.d/*.conf \
20+ $support_folder
21+ ln -s ${pkgs.fontconfig-penultimate}/etc/fonts/conf.d/*.conf \
22+ $latest_folder
23+ '';
24+
25+in
26+{
27+
28+ options = {
29+
30+ fonts = {
31+
32+ fontconfig = {
33+
34+ penultimate = {
35+ enable = mkOption {
36+ type = types.bool;
37+ default = true;
38+ description = ''
39+ Enable fontconfig-penultimate settings to supplement the
40+ NixOS defaults by providing per-font rendering defaults and
41+ metric aliases.
42+ '';
43+ };
44+ };
45+
46+ };
47+ };
48+
49+ };
50+
51+ config = mkIf (config.fonts.fontconfig.enable && cfg.enable) {
52+
53+ fonts.fontconfig.confPackages = [ confPkg ];
54+
55+ };
56+
57+}
nixos/modules/config/fonts/fontconfig-ultimate.nix+1−11
@@ -43,7 +43,7 @@ in
4343 ultimate = {
4444 enable = mkOption {
4545 type = types.bool;
46− default = true;
46+ default = false;
4747 description = ''
4848 Enable fontconfig-ultimate settings (formerly known as
4949 Infinality). Besides the customizable settings in this NixOS
@@ -63,15 +63,6 @@ in
6363 <literal>none</literal> disables the substitutions.
6464 '';
6565 };
66−
67− preset = mkOption {
68− type = types.enum ["ultimate1" "ultimate2" "ultimate3" "ultimate4" "ultimate5" "osx" "windowsxp"];
69− default = "ultimate3";
70− description = ''
71− FreeType rendering settings preset. Any of the presets may be
72− customized by setting environment variables.
73− '';
74− };
7566 };
7667 };
7768 };
@@ -81,7 +72,6 @@ in
8172 config = mkIf (config.fonts.fontconfig.enable && cfg.enable) {
8273
8374 fonts.fontconfig.confPackages = [ confPkg ];
84− environment.variables."INFINALITY_FT" = cfg.preset;
8575
8676 };
8777
nixos/modules/config/fonts/fontconfig.nix+32−23
@@ -75,23 +75,23 @@ let cfg = config.fonts.fontconfig;
7575 <fontconfig>
7676
7777 <!-- Default rendering settings -->
78− <match target="font">
79− <edit mode="assign" name="hinting">
78+ <match target="pattern">
79+ <edit mode="append" name="hinting">
8080 ${fcBool cfg.hinting.enable}
8181 </edit>
82− <edit mode="assign" name="autohint">
82+ <edit mode="append" name="autohint">
8383 ${fcBool cfg.hinting.autohint}
8484 </edit>
85− <edit mode="assign" name="hintstyle">
86− <const>hint${cfg.hinting.style}</const>
85+ <edit mode="append" name="hintstyle">
86+ <const>hintslight</const>
8787 </edit>
88− <edit mode="assign" name="antialias">
88+ <edit mode="append" name="antialias">
8989 ${fcBool cfg.antialias}
9090 </edit>
91− <edit mode="assign" name="rgba">
91+ <edit mode="append" name="rgba">
9292 <const>${cfg.subpixel.rgba}</const>
9393 </edit>
94− <edit mode="assign" name="lcdfilter">
94+ <edit mode="append" name="lcdfilter">
9595 <const>lcd${cfg.subpixel.lcdfilter}</const>
9696 </edit>
9797 </match>
@@ -304,7 +304,11 @@ in
304304 antialias = mkOption {
305305 type = types.bool;
306306 default = true;
307− description = "Enable font antialiasing.";
307+ description = ''
308+ Enable font antialiasing. At high resolution (> 200 DPI),
309+ antialiasing has no visible effect; users of such displays may want
310+ to disable this option.
311+ '';
308312 };
309313
310314 dpi = mkOption {
@@ -320,7 +324,7 @@ in
320324 type = types.lines;
321325 default = "";
322326 description = ''
323− System-wide customization file contents, has higher priority than
327+ System-wide customization file contents, has higher priority than
324328 <literal>defaultFonts</literal> settings.
325329 '';
326330 };
@@ -358,7 +362,12 @@ in
358362 enable = mkOption {
359363 type = types.bool;
360364 default = true;
361− description = "Enable TrueType hinting.";
365+ description = ''
366+ Enable font hinting. Hinting aligns glyphs to pixel boundaries to
367+ improve rendering sharpness at low resolution. At high resolution
368+ (> 200 dpi) hinting will do nothing (at best); users of such
369+ displays may want to disable this option.
370+ '';
362371 };
363372
364373 autohint = mkOption {
@@ -370,16 +379,6 @@ in
370379 correctly-hinted fonts.
371380 '';
372381 };
373−
374− style = mkOption {
375− type = types.enum ["none" "slight" "medium" "full"];
376− default = "full";
377− description = ''
378− TrueType hinting style, one of <literal>none</literal>,
379− <literal>slight</literal>, <literal>medium</literal>, or
380− <literal>full</literal>.
381− '';
382− };
383382 };
384383
385384 includeUserConf = mkOption {
@@ -398,7 +397,15 @@ in
398397 default = "rgb";
399398 type = types.enum ["rgb" "bgr" "vrgb" "vbgr" "none"];
400399 description = ''
401− Subpixel order.
400+ Subpixel order. The overwhelming majority of displays are
401+ <literal>rgb</literal> in their normal orientation. Select
402+ <literal>vrgb</literal> for mounting such a display 90 degrees
403+ clockwise from its normal orientation or <literal>vbgr</literal>
404+ for mounting 90 degrees counter-clockwise. Select
405+ <literal>bgr</literal> in the unlikely event of mounting 180
406+ degrees from the normal orientation. Reverse these directions in
407+ the improbable event that the display's native subpixel order is
408+ <literal>bgr</literal>.
402409 '';
403410 };
404411
@@ -406,7 +413,9 @@ in
406413 default = "default";
407414 type = types.enum ["none" "default" "light" "legacy"];
408415 description = ''
409− FreeType LCD filter.
416+ FreeType LCD filter. At high resolution (> 200 DPI), LCD filtering
417+ has no visible effect; users of such displays may want to select
418+ <literal>none</literal>.
410419 '';
411420 };
412421
nixos/modules/module-list.nix+2−1
@@ -1,8 +1,9 @@
11[
22 ./config/debug-info.nix
33 ./config/fonts/corefonts.nix
4− ./config/fonts/fontconfig-ultimate.nix
54 ./config/fonts/fontconfig.nix
5+ ./config/fonts/fontconfig-penultimate.nix
6+ ./config/fonts/fontconfig-ultimate.nix
67 ./config/fonts/fontdir.nix
78 ./config/fonts/fonts.nix
89 ./config/fonts/ghostscript.nix
nixos/modules/rename.nix+1−3
@@ -141,9 +141,6 @@ with lib;
141141 # Unity3D
142142 (mkRenamedOptionModule [ "programs" "unity3d" "enable" ] [ "security" "chromiumSuidSandbox" "enable" ])
143143
144− # fontconfig-ultimate
145− (mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "rendering" ] [ "fonts" "fontconfig" "ultimate" "preset" ])
146−
147144 # murmur
148145 (mkRenamedOptionModule [ "services" "murmur" "welcome" ] [ "services" "murmur" "welcometext" ])
149146
@@ -202,6 +199,7 @@ with lib;
202199 "See the 16.09 release notes for more information.")
203200 (mkRemovedOptionModule [ "services" "phpfpm" "phpIni" ] "")
204201 (mkRemovedOptionModule [ "services" "dovecot2" "package" ] "")
202+ (mkRemovedOptionModule [ "fonts" "fontconfig" "hinting" "style" ] "")
205203 (mkRemovedOptionModule [ "services" "xserver" "displayManager" "sddm" "themes" ]
206204 "Set the option `services.xserver.displayManager.sddm.package' instead.")
207205 ];
nixos/modules/services/x11/display-managers/default.nix+1−1
@@ -24,7 +24,7 @@ let
2424 Xft.lcdfilter: lcd${fontconfig.subpixel.lcdfilter}
2525 Xft.hinting: ${if fontconfig.hinting.enable then "1" else "0"}
2626 Xft.autohint: ${if fontconfig.hinting.autohint then "1" else "0"}
27− Xft.hintstyle: hint${fontconfig.hinting.style}
27+ Xft.hintstyle: hintslight
2828 '';
2929
3030 # file provided by services.xserver.displayManager.session.script
pkgs/applications/version-management/git-and-tools/git/default.nix−1
@@ -30,7 +30,6 @@ stdenv.mkDerivation {
3030 ./symlinks-in-bin.patch
3131 ./git-sh-i18n.patch
3232 ./ssh-path.patch
33− ./ssl-cert-file.patch
3433 ];
3534
3635 postPatch = ''
pkgs/applications/version-management/git-and-tools/git/ssl-cert-file.patchdeleted−11
@@ -1,11 +0,0 @@
1−diff -ru git-2.7.4-orig/http.c git-2.7.4/http.c
2−--- git-2.7.4-orig/http.c 2016-03-17 21:47:59.000000000 +0100
3−+++ git-2.7.4/http.c 2016-04-12 11:38:33.187070848 +0200
4−@@ -544,6 +544,7 @@
5− #if LIBCURL_VERSION_NUM >= 0x070908
6− set_from_env(&ssl_capath, "GIT_SSL_CAPATH");
7− #endif
8−+ set_from_env(&ssl_cainfo, "SSL_CERT_FILE");
9− set_from_env(&ssl_cainfo, "GIT_SSL_CAINFO");
10−
11− set_from_env(&user_agent, "GIT_HTTP_USER_AGENT");
pkgs/applications/version-management/mercurial/default.nix+2−1
@@ -7,8 +7,9 @@ let
77 version = "3.9.2";
88 name = "mercurial-${version}";
99 inherit (python2Packages) docutils hg-git dulwich python;
10−in python2Packages.mkPythonDerivation {
10+in python2Packages.buildPythonApplication {
1111 inherit name;
12+ format = "other";
1213
1314 src = fetchurl {
1415 url = "https://mercurial-scm.org/release/${name}.tar.gz";
pkgs/data/fonts/fontconfig-penultimate/default.nixnew file+26
@@ -0,0 +1,26 @@
1+{ stdenv, fetchFromGitHub }:
2+
3+let version = "0.2.1"; in
4+stdenv.mkDerivation {
5+ name = "fontconfig-penultimate-${version}";
6+
7+ src = fetchFromGitHub {
8+ owner = "ttuegel";
9+ repo = "fontconfig-penultimate";
10+ rev = version;
11+ sha256 = "14arpalmpn7ig2myxslk4jdg6lm0cnmwsxy7zl0j7yr417k1kprf";
12+ };
13+
14+ installPhase = ''
15+ mkdir -p $out/etc/fonts/conf.d
16+ cp *.conf $out/etc/fonts/conf.d
17+ '';
18+
19+ meta = with stdenv.lib; {
20+ homepage = https://github.com/ttuegel/fontconfig-penultimate;
21+ description = "Sensible defaults for Fontconfig";
22+ license = licenses.asl20;
23+ maintainers = [ maintainers.ttuegel ];
24+ platforms = platforms.all;
25+ };
26+}
pkgs/development/compilers/llvm/3.7/libc++abi.nix+15−2
@@ -1,6 +1,12 @@
1−{ stdenv, cmake, fetch, libcxx, libunwind, llvm, version }:
1+{ stdenv, cmake, fetch, fetchpatch, libcxx, libunwind, llvm, version }:
22
3−stdenv.mkDerivation {
3+let
4+ # Newer LLVMs (3.8 onwards) have changed how some basic C++ stuff works, which breaks builds of this older version
5+ llvm38-and-above = fetchpatch {
6+ url = "https://trac.macports.org/raw-attachment/ticket/50304/0005-string-Fix-exception-declaration.patch";
7+ sha256 = "1lm38n7s0l5dbl7kp4i49pvzxz1mcvlr2vgsnj47agnwhhm63jvr";
8+ };
9+in stdenv.mkDerivation {
410 name = "libc++abi-${version}";
511
612 src = fetch "libcxxabi" "0ambfcmr2nh88hx000xb7yjm9lsqjjz49w5mlf6dlxzmj3nslzx4";
@@ -16,6 +22,13 @@ stdenv.mkDerivation {
1622 export TRIPLE=x86_64-apple-darwin
1723 '';
1824
25+ # I can't use patches directly because this is actually a patch for libc++'s source, which we manually extract
26+ # into the libc++abi build environment above.
27+ prePatch = ''(
28+ cd ../libcxx-*
29+ patch -p1 < ${llvm38-and-above}
30+ )'';
31+
1932 installPhase = if stdenv.isDarwin
2033 then ''
2134 for file in lib/*.dylib; do
pkgs/development/compilers/llvm/3.9/clang/default.nix+11
@@ -29,12 +29,23 @@ let
2929 sed -i -e 's/DriverArgs.hasArg(options::OPT_nostdlibinc)/true/' lib/Driver/ToolChains.cpp
3030 '';
3131
32+ outputs = [ "out" "python" ];
33+
3234 # Clang expects to find LLVMgold in its own prefix
3335 # Clang expects to find sanitizer libraries in its own prefix
3436 postInstall = ''
3537 ln -sv ${llvm}/lib/LLVMgold.so $out/lib
3638 ln -sv ${llvm}/lib/clang/${version}/lib $out/lib/clang/${version}/
3739 ln -sv $out/bin/clang $out/bin/cpp
40+
41+ mkdir -p $python/bin $python/share/clang/
42+ mv $out/bin/{git-clang-format,scan-view} $python/bin
43+ if [ -e $out/bin/set-xcode-analyzer ]; then
44+ mv $out/bin/set-xcode-analyzer $python/bin
45+ fi
46+ mv $out/share/clang/*.py $python/share/clang
47+
48+ rm $out/bin/c-index-test
3849 '';
3950
4051 enableParallelBuilding = true;
pkgs/development/compilers/llvm/3.9/llvm.nix+9−7
@@ -40,8 +40,7 @@ in stdenv.mkDerivation rec {
4040 outputs = [ "out" ] ++ stdenv.lib.optional enableSharedLibraries "lib";
4141
4242 buildInputs = [ perl groff cmake libxml2 python libffi ]
43− ++ stdenv.lib.optionals stdenv.isDarwin
44− [ libcxxabi darwin.cctools darwin.apple_sdk.libs.xpc ];
43+ ++ stdenv.lib.optionals stdenv.isDarwin [ libcxxabi ];
4544
4645 propagatedBuildInputs = [ ncurses zlib ];
4746
@@ -53,11 +52,15 @@ in stdenv.mkDerivation rec {
5352 sha256 = "11sq86spw41v72f676igksapdlsgh7fiqp5qkkmgfj0ndqcn9skf";
5453 }}
5554 ''
56− # hacky fix: New LLVM releases require a newer OS X SDK than
57− # 10.9. This is a temporary measure until nixpkgs darwin support is
58− # updated.
55+ # TSAN requires XPC on Darwin, which we have no public/free source files for. We can depend on the Apple frameworks
56+ # to get it, but they're unfree. Since LLVM is rather central to the stdenv, we patch out TSAN support so that Hydra
57+ # can build this. If we didn't do it, basically the entire nixpkgs on Darwin would have an unfree dependency and we'd
58+ # get no binary cache for the entire platform. If you really find yourself wanting the TSAN, make this controllable by
59+ # a flag and turn the flag off during the stdenv build. I realize that this LLVM isn't used in the stdenv but I want to
60+ # keep it consistent with 4.0. We really shouldn't be copying and pasting all this code around...
5961 + stdenv.lib.optionalString stdenv.isDarwin ''
60− sed -i 's/os_trace(\(.*\)");$/printf(\1\\n");/g' ./projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
62+ substituteInPlace ./projects/compiler-rt/cmake/config-ix.cmake \
63+ --replace 'set(COMPILER_RT_HAS_TSAN TRUE)' 'set(COMPILER_RT_HAS_TSAN FALSE)'
6164 ''
6265 # Patch llvm-config to return correct library path based on --link-{shared,static}.
6366 + stdenv.lib.optionalString (enableSharedLibraries) ''
@@ -85,7 +88,6 @@ in stdenv.mkDerivation rec {
8588 ++ stdenv.lib.optionals (isDarwin) [
8689 "-DLLVM_ENABLE_LIBCXX=ON"
8790 "-DCAN_TARGET_i386=false"
88− "-DCMAKE_LIBTOOL=${darwin.cctools}/bin/libtool"
8991 ];
9092
9193 postBuild = ''
pkgs/development/libraries/cairo/default.nix−11
@@ -19,13 +19,6 @@ stdenv.mkDerivation rec {
1919 sha1 = "c6f7b99986f93c9df78653c3e6a3b5043f65145e";
2020 };
2121
22− infinality = fetchFromGitHub {
23− owner = "bohoomil";
24− repo = "fontconfig-ultimate";
25− rev = "730f5e77580677e86522c1f2119aa78803741759";
26− sha256 = "1hbrdpm6xcczs2c2iid7by8h7dsd0jcf7an88s150njyqnjzxjg7";
27− };
28−
2922 patches = [
3023 # from https://bugs.freedesktop.org/show_bug.cgi?id=98165
3124 (fetchpatch {
@@ -35,10 +28,6 @@ stdenv.mkDerivation rec {
3528 })
3629 ];
3730
38− prePatch = ''
39− patches="$patches $(echo $infinality/*_cairo-iu/*.patch)"
40− '';
41−
4231 outputs = [ "out" "dev" "devdoc" ];
4332 outputBin = "dev"; # very small
4433
pkgs/development/libraries/fontconfig/2.10.nix+5−11
@@ -8,13 +8,11 @@ stdenv.mkDerivation rec {
88 sha256 = "0llraqw86jmw4vzv7inskp3xxm2gc64my08iwq5mzncgfdbfza4f";
99 };
1010
11− infinality_patch =
12− let subvers = "1";
13− in fetchurl {
14− url = http://www.infinality.net/fedora/linux/zips/fontconfig-infinality-1-20130104_1.tar.bz2;
15− sha256 = "1fm5xx0mx2243jrq5rxk4v0ajw2nawpj23399h710bx6hd1rviq7";
16− }
17− ;
11+ patches = [
12+ # FreeType 2.7 prefixes PCF font family names with the foundry name.
13+ # The output of fc-list and fc-query change which breaks the tests.
14+ ./test-pcf-family-names-freetype-2.7.patch
15+ ];
1816
1917 outputs = [ "bin" "dev" "lib" "out" ]; # $out contains all the config
2018
@@ -44,10 +42,6 @@ stdenv.mkDerivation rec {
4442 # Don't try to write to /var/cache/fontconfig at install time.
4543 installFlags = "sysconfdir=$(out)/etc fc_cachedir=$(TMPDIR)/dummy RUN_FC_CACHE_TEST=false";
4644
47− postInstall = ''
48− cd "$out/etc/fonts" && tar xvf ${infinality_patch}
49− '';
50−
5145 passthru = {
5246 # Empty for backward compatibility, there was no versioning before 2.11
5347 configVersion = "";
pkgs/development/libraries/fontconfig/default.nix+4
@@ -33,6 +33,10 @@ stdenv.mkDerivation rec {
3333 url = "https://cgit.freedesktop.org/fontconfig/patch/?id=1ab5258f7c";
3434 sha256 = "0x2a4qx51j3gqcp1kp4lisdzmhrkw1zw0r851d82ksgjlc0vkbaz";
3535 })
36+
37+ # FreeType 2.7 prefixes PCF font family names with the foundry name.
38+ # The output of fc-list and fc-query change which breaks the tests.
39+ ./test-pcf-family-names-freetype-2.7.patch
3640 ];
3741 # additionally required for the glibc-2.25 patch; avoid requiring gperf
3842 postPatch = ''
pkgs/development/libraries/fontconfig/test-pcf-family-names-freetype-2.7.patchnew file+18
@@ -0,0 +1,18 @@
1+diff -Nuar fontconfig-2.10.2-orig/test/out.expected fontconfig-2.10.2/test/out.expected
2+--- fontconfig-2.10.2-orig/test/out.expected 2017-03-06 06:45:50.876053093 -0600
3++++ fontconfig-2.10.2/test/out.expected 2017-03-06 06:48:18.012514337 -0600
4+@@ -1,8 +1,8 @@
5+-Fixed:pixelsize=16
6+-Fixed:pixelsize=6
7++Misc Fixed:pixelsize=6
8++Sony Fixed:pixelsize=16
9+ =
10+-Fixed:pixelsize=16
11+-Fixed:pixelsize=6
12++Misc Fixed:pixelsize=6
13++Sony Fixed:pixelsize=16
14+ =
15+-Fixed:pixelsize=16
16+-Fixed:pixelsize=6
17++Misc Fixed:pixelsize=6
18++Sony Fixed:pixelsize=16
pkgs/development/libraries/freetype/default.nix+34−60
@@ -1,64 +1,53 @@
1−{ stdenv, fetchurl, fetchFromGitHub, pkgconfig, which, zlib, bzip2, libpng, gnumake
2−, glib /* passthru only */
3−
4− # FreeType supports sub-pixel rendering. This is patented by
5− # Microsoft, so it is disabled by default. This option allows it to
6− # be enabled. See http://www.freetype.org/patents.html.
7−, useEncumberedCode ? true
8−, useInfinality ? true
1+{
2+ stdenv, lib, fetchurl, copyPathsToStore,
3+ pkgconfig, which,
4+ zlib, bzip2, libpng, gnumake, glib,
5+
6+ # FreeType supports LCD filtering (colloquially referred to as sub-pixel rendering).
7+ # LCD filtering is also known as ClearType and covered by several Microsoft patents.
8+ # This option allows it to be disabled. See http://www.freetype.org/patents.html.
9+ useEncumberedCode ? true,
910}:
1011
11−assert useInfinality -> useEncumberedCode;
12+with { inherit (stdenv.lib) optional optionals optionalString; };
1213
13−let
14− version = "2.6.5";
14+let version = "2.7.1"; name = "freetype-" + version; in
1515
16− infinality = fetchFromGitHub {
17− owner = "archfan";
18− repo = "infinality_bundle";
19− rev = "5c0949a477bf43d2ac4e57b4fc39bcc3331002ee";
20− sha256 = "17389aqm6rlxl4b5mv1fx4b22x2v2n60hfhixfxqxpd8ialsdi6l";
21− };
16+stdenv.mkDerivation {
17+ inherit name;
2218
23−in
24−with { inherit (stdenv.lib) optional optionals optionalString; };
25−stdenv.mkDerivation rec {
26− name = "freetype-${version}";
19+ meta = with stdenv.lib; {
20+ description = "A font rendering engine";
21+ longDescription = ''
22+ FreeType is a portable and efficient library for rendering fonts. It
23+ supports TrueType, Type 1, CFF fonts, and WOFF, PCF, FNT, BDF and PFR
24+ fonts. It has a bytecode interpreter and has an automatic hinter called
25+ autofit which can be used instead of hinting instructions included in
26+ fonts.
27+ '';
28+ homepage = https://www.freetype.org/;
29+ license = licenses.gpl2Plus; # or the FreeType License (BSD + advertising clause)
30+ platforms = platforms.all;
31+ maintainers = with maintainers; [ ttuegel ];
32+ };
2733
2834 src = fetchurl {
2935 url = "mirror://savannah/freetype/${name}.tar.bz2";
30− sha256 = "1w5c87s4rpx9af5b3mk5cjd1yny3c4dq5p9iv3ixb3vr00a6w2p2";
36+ sha256 = "121gm15ayfg3rglby8ifh8384mcjb9dhmx9j40zl7yszw72b4frs";
3137 };
3238
33− patches = [
34− # Patch for validation of OpenType and GX/AAT tables.
35− (fetchurl {
36− name = "freetype-2.2.1-enable-valid.patch";
37− url = "http://pkgs.fedoraproject.org/cgit/rpms/freetype.git/plain/freetype-2.2.1-enable-valid.patch?id=9a81147af83b1166a5f301e379f85927cc610990";
38− sha256 = "0zkgqhws2s0j8ywksclf391iijhidb1a406zszd7xbdjn28kmj2l";
39− })
40− ] ++ optionals (!useInfinality && useEncumberedCode) [
41− # Patch to enable subpixel rendering.
42− # See https://www.freetype.org/freetype2/docs/reference/ft2-lcd_filtering.html.
43− (fetchurl {
44− name = "freetype-2.3.0-enable-spr.patch";
45− url = http://pkgs.fedoraproject.org/cgit/rpms/freetype.git/plain/freetype-2.3.0-enable-spr.patch?id=9a81147af83b1166a5f301e379f85927cc610990;
46− sha256 = "13ni9n5q3nla38wjmxd4f8cy29gp62kjx2l6y6nqhdyiqp8fz8nd";
47− })
48− ];
49−
50− prePatch = optionalString useInfinality ''
51− patches="$patches $(ls ${infinality}/*_freetype2-iu/*-infinality-*.patch)"
52− '';
53−
54− outputs = [ "out" "dev" ];
55−
5639 propagatedBuildInputs = [ zlib bzip2 libpng ]; # needed when linking against freetype
5740 # dependence on harfbuzz is looser than the reverse dependence
5841 nativeBuildInputs = [ pkgconfig which ]
5942 # FreeType requires GNU Make, which is not part of stdenv on FreeBSD.
6043 ++ optional (!stdenv.isLinux) gnumake;
6144
45+ patches =
46+ [ ./enable-table-validation.patch ]
47+ ++ optional useEncumberedCode ./enable-subpixel-rendering.patch;
48+
49+ outputs = [ "out" "dev" ];
50+
6251 configureFlags = [ "--disable-static" "--bindir=$(dev)/bin" ];
6352
6453 # The asm for armel is written with the 'asm' keyword.
@@ -76,19 +65,4 @@ stdenv.mkDerivation rec {
7665 # know why it's on the PATH.
7766 configureFlags = "--disable-static CC_BUILD=gcc";
7867 };
79−
80− meta = with stdenv.lib; {
81− description = "A font rendering engine";
82− longDescription = ''
83− FreeType is a portable and efficient library for rendering fonts. It
84− supports TrueType, Type 1, CFF fonts, and WOFF, PCF, FNT, BDF and PFR
85− fonts. It has a bytecode interpreter and has an automatic hinter called
86− autofit which can be used instead of hinting instructions included in
87− fonts.
88− '';
89− homepage = https://www.freetype.org/;
90− license = licenses.gpl2Plus; # or the FreeType License (BSD + advertising clause)
91− #ToDo: encumbered = useEncumberedCode;
92− platforms = platforms.all;
93− };
9468}
pkgs/development/libraries/freetype/enable-subpixel-rendering.patchnew file+13
@@ -0,0 +1,13 @@
1+Index: freetype-2.7.1/include/freetype/config/ftoption.h
2+===================================================================
3+--- freetype-2.7.1.orig/include/freetype/config/ftoption.h
4++++ freetype-2.7.1/include/freetype/config/ftoption.h
5+@@ -122,7 +122,7 @@ FT_BEGIN_HEADER
6+ /* This is done to allow FreeType clients to run unmodified, forcing */
7+ /* them to display normal gray-level anti-aliased glyphs. */
8+ /* */
9+-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
10++#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
11+
12+
13+ /*************************************************************************/
pkgs/development/libraries/freetype/enable-table-validation.patchnew file+22
@@ -0,0 +1,22 @@
1+Index: freetype-2.7.1/modules.cfg
2+===================================================================
3+--- freetype-2.7.1.orig/modules.cfg
4++++ freetype-2.7.1/modules.cfg
5+@@ -120,7 +120,7 @@ AUX_MODULES += cache
6+ # TrueType GX/AAT table validation. Needs ftgxval.c below.
7+ #
8+ # No FT_CONFIG_OPTION_PIC support.
9+-# AUX_MODULES += gxvalid
10++AUX_MODULES += gxvalid
11+
12+ # Support for streams compressed with gzip (files with suffix .gz).
13+ #
14+@@ -143,7 +143,7 @@ AUX_MODULES += bzip2
15+ # OpenType table validation. Needs ftotval.c below.
16+ #
17+ # No FT_CONFIG_OPTION_PIC support.
18+-# AUX_MODULES += otvalid
19++AUX_MODULES += otvalid
20+
21+ # Auxiliary PostScript driver component to share common code.
22+ #
pkgs/development/libraries/jemalloc/default.nix+5−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name = "jemalloc-${version}";
5− version = "4.3.1";
5+ version = "4.5.0";
66
77 src = fetchurl {
88 url = "https://github.com/jemalloc/jemalloc/releases/download/${version}/${name}.tar.bz2";
9− sha256 = "12r71i8nm3vwz21fc16rwbb0pwcg5s05n1qg3rwl2s85v0x1ifzp";
9+ sha256 = "9409d85664b4f135b77518b0b118c549009dc10f6cba14557d170476611f6780";
1010 };
1111
1212 # By default, jemalloc puts a je_ prefix onto all its symbols on OSX, which
@@ -14,6 +14,9 @@ stdenv.mkDerivation rec {
1414 # option should remove the prefix and give us a working jemalloc.
1515 configureFlags = stdenv.lib.optional stdenv.isDarwin "--with-jemalloc-prefix=";
1616
17+ doCheck = true;
18+
19+
1720 meta = with stdenv.lib; {
1821 homepage = http://jemalloc.net;
1922 description = "General purpose malloc(3) implementation";
pkgs/development/libraries/mesa/default.nix+5−3
@@ -5,7 +5,9 @@
55, libelf, libvdpau, python2
66, grsecEnabled ? false
77, enableRadv ? false
8−, enableTextureFloats ? false # Texture floats are patented, see docs/patents.txt
8+# Texture floats are patented, see docs/patents.txt, so we don't enable them for full Mesa.
9+# It's overridden for mesa_drivers.
10+, enableTextureFloats ? false
911, galliumDrivers ? null
1012, driDrivers ? null
1113, vulkanDrivers ? null
@@ -63,7 +65,7 @@ let
6365in
6466
6567let
66− version = "17.0.1";
68+ version = "17.0.2";
6769 branch = head (splitString "." version);
6870 driverLink = "/run/opengl-driver" + optionalString stdenv.isi686 "-32";
6971in
@@ -78,7 +80,7 @@ stdenv.mkDerivation {
7880 "ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz"
7981 "https://launchpad.net/mesa/trunk/${version}/+download/mesa-${version}.tar.xz"
8082 ];
81− sha256 = "96fd70ef5f31d276a17e424e7e1bb79447ccbbe822b56844213ef932e7ad1b0c";
83+ sha256 = "f8f191f909e01e65de38d5bdea5fb057f21649a3aed20948be02348e77a689d4";
8284 };
8385
8486 prePatch = "patchShebangs .";
pkgs/development/libraries/nghttp2/default.nix+11−5
@@ -1,7 +1,7 @@
11{ stdenv, fetchurl, pkgconfig
22
33# Optional Dependencies
4−, openssl ? null, libev ? null, zlib ? null, libcares ? null
4+, openssl ? null, libev ? null, zlib ? null, c-ares ? null
55, enableHpack ? false, jansson ? null
66, enableAsioLib ? false, boost ? null
77, enableGetAssets ? false, libxml2 ? null
@@ -17,18 +17,18 @@ with { inherit (stdenv.lib) optional; };
1717
1818stdenv.mkDerivation rec {
1919 name = "nghttp2-${version}";
20− version = "1.19.0";
20+ version = "1.20.0";
2121
2222 # Don't use fetchFromGitHub since this needs a bootstrap curl
2323 src = fetchurl {
2424 url = "https://github.com/nghttp2/nghttp2/releases/download/v${version}/nghttp2-${version}.tar.bz2";
25− sha256 = "477466eee27158d37b4478d9335dd091497cae4d7f2375fc6657beab67db9e7a";
25+ sha256 = "fb29d0500b194f11680203aed21aafab241063ec1397cc51ab5cc0957341141b";
2626 };
2727
2828 outputs = [ "out" "dev" "lib" ];
2929
3030 nativeBuildInputs = [ pkgconfig ];
31− buildInputs = [ openssl libev zlib libcares ]
31+ buildInputs = [ openssl libev zlib c-ares ]
3232 ++ optional enableHpack jansson
3333 ++ optional enableAsioLib boost
3434 ++ optional enableGetAssets libxml2
@@ -36,8 +36,14 @@ stdenv.mkDerivation rec {
3636
3737 enableParallelBuilding = true;
3838
39+ configureFlags = [ "--with-spdylay=no" "--disable-examples" "--disable-python-bindings" ]
40+ ++ optional enableAsioLib "--enable-asio-lib --with-boost-libdir=${boost}/lib";
41+
42+ #doCheck = true; # requires CUnit ; currently failing at test_util_localtime_date in util_test.cc
43+
44+
3945 meta = with stdenv.lib; {
40− homepage = http://nghttp2.org/;
46+ homepage = https://nghttp2.org/;
4147 description = "A C implementation of HTTP/2";
4248 license = licenses.mit;
4349 platforms = platforms.all;
pkgs/development/libraries/openssl/default.nix+3−1
@@ -19,7 +19,9 @@ let
1919
2020 patches =
2121 (args.patches or [])
22− ++ optional (versionOlder version "1.1.0") ./use-etc-ssl-certs.patch
22+ ++ [ ./nix-ssl-cert-file.patch ]
23+ ++ optional (versionOlder version "1.1.0")
24+ (if stdenv.isDarwin then ./use-etc-ssl-certs-darwin.patch else ./use-etc-ssl-certs.patch)
2325 ++ optional stdenv.isCygwin ./1.0.1-cygwin64.patch
2426 ++ optional
2527 (versionOlder version "1.0.2" && (stdenv.isDarwin || (stdenv ? cross && stdenv.cross.libc == "libSystem")))
pkgs/development/libraries/openssl/nix-ssl-cert-file.patchnew file+14
@@ -0,0 +1,14 @@
1+diff -ru -x '*~' openssl-1.0.2j-orig/crypto/x509/by_file.c openssl-1.0.2j/crypto/x509/by_file.c
2+--- openssl-1.0.2j-orig/crypto/x509/by_file.c 2016-09-26 11:49:07.000000000 +0200
3++++ openssl-1.0.2j/crypto/x509/by_file.c 2016-10-13 16:54:31.400288302 +0200
4+@@ -97,7 +97,9 @@
5+ switch (cmd) {
6+ case X509_L_FILE_LOAD:
7+ if (argl == X509_FILETYPE_DEFAULT) {
8+- file = (char *)getenv(X509_get_default_cert_file_env());
9++ file = (char *)getenv("NIX_SSL_CERT_FILE");
10++ if (!file)
11++ file = (char *)getenv(X509_get_default_cert_file_env());
12+ if (file)
13+ ok = (X509_load_cert_crl_file(ctx, file,
14+ X509_FILETYPE_PEM) != 0);
pkgs/development/libraries/openssl/use-etc-ssl-certs-darwin.patchnew file+13
@@ -0,0 +1,13 @@
1+diff -ru -x '*~' openssl-1.0.1r-orig/crypto/cryptlib.h openssl-1.0.1r/crypto/cryptlib.h
2+--- openssl-1.0.1r-orig/crypto/cryptlib.h 2016-01-28 14:38:30.000000000 +0100
3++++ openssl-1.0.1r/crypto/cryptlib.h 2016-02-03 12:54:29.193165176 +0100
4+@@ -81,8 +81,8 @@
5+
6+ # ifndef OPENSSL_SYS_VMS
7+ # define X509_CERT_AREA OPENSSLDIR
8+ # define X509_CERT_DIR OPENSSLDIR "/certs"
9+-# define X509_CERT_FILE OPENSSLDIR "/cert.pem"
10++# define X509_CERT_FILE "/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt"
11+ # define X509_PRIVATE_DIR OPENSSLDIR "/private"
12+ # else
13+ # define X509_CERT_AREA "SSLROOT:[000000]"
pkgs/development/python-modules/dbus/default.nix+3−2
@@ -1,8 +1,9 @@
1−{ lib, fetchurl, mkPythonDerivation, python, pkgconfig, dbus, dbus_glib, dbus_tools, isPyPy
1+{ lib, fetchurl, buildPythonPackage, python, pkgconfig, dbus, dbus_glib, dbus_tools, isPyPy
22, ncurses, pygobject3 }:
33
4−if isPyPy then throw "dbus-python not supported for interpreter ${python.executable}" else mkPythonDerivation rec {
4+if isPyPy then throw "dbus-python not supported for interpreter ${python.executable}" else buildPythonPackage rec {
55 name = "dbus-python-1.2.4";
6+ format = "other";
67
78 src = fetchurl {
89 url = "http://dbus.freedesktop.org/releases/dbus-python/${name}.tar.gz";
pkgs/development/python-modules/koji/default.nix+3−2
@@ -1,7 +1,8 @@
1−{ stdenv, fetchurl, mkPythonDerivation, pycurl }:
1+{ stdenv, fetchurl, buildPythonPackage, pycurl }:
22
3−mkPythonDerivation rec {
3+buildPythonPackage rec {
44 name = "koji-1.8";
5+ format = "other";
56
67 src = fetchurl {
78 url = "https://fedorahosted.org/released/koji/koji-1.8.0.tar.bz2";
pkgs/development/python-modules/libsexy/default.nix+3−2
@@ -1,8 +1,9 @@
1−{ stdenv, fetchurl, mkPythonDerivation, libsexy, pkgconfig, libxml2, pygtk, pango, gtk2, glib }:
1+{ stdenv, fetchurl, buildPythonPackage, libsexy, pkgconfig, libxml2, pygtk, pango, gtk2, glib }:
22
3−mkPythonDerivation rec {
3+buildPythonPackage rec {
44 name = "libsexy-${version}";
55 version = "0.1.9";
6+ format = "other";
67
78 src = fetchurl {
89 url = "http://releases.chipx86.com/libsexy/sexy-python/sexy-python-${version}.tar.gz";
pkgs/development/python-modules/pycairo/default.nix+3−2
@@ -1,8 +1,9 @@
1−{ lib, fetchurl, fetchpatch, python, mkPythonDerivation, pkgconfig, cairo, xlibsWrapper, isPyPy, isPy35, isPy3k }:
1+{ lib, fetchurl, fetchpatch, python, buildPythonPackage, pkgconfig, cairo, xlibsWrapper, isPyPy, isPy35, isPy3k }:
22
3−if (isPyPy) then throw "pycairo not supported for interpreter ${python.executable}" else mkPythonDerivation rec {
3+if (isPyPy) then throw "pycairo not supported for interpreter ${python.executable}" else buildPythonPackage rec {
44 version = "1.10.0";
55 name = "pycairo-${version}";
6+ format = "other";
67 src = if isPy3k
78 then fetchurl {
89 url = "http://cairographics.org/releases/pycairo-${version}.tar.bz2";
pkgs/development/python-modules/pygobject/3.nix+3−2
@@ -1,9 +1,10 @@
1−{ stdenv, fetchurl, mkPythonDerivation, python, pkgconfig, glib, gobjectIntrospection, pycairo, cairo, which, ncurses}:
1+{ stdenv, fetchurl, buildPythonPackage, python, pkgconfig, glib, gobjectIntrospection, pycairo, cairo, which, ncurses}:
22
3−mkPythonDerivation rec {
3+buildPythonPackage rec {
44 major = "3.22";
55 minor = "0";
66 name = "pygobject-${major}.${minor}";
7+ format = "other";
78
89 src = fetchurl {
910 url = "mirror://gnome/sources/pygobject/${major}/${name}.tar.xz";
pkgs/development/python-modules/pygobject/default.nix+3−2
@@ -1,8 +1,9 @@
1−{ stdenv, fetchurl, python, mkPythonDerivation, pkgconfig, glib }:
1+{ stdenv, fetchurl, python, buildPythonPackage, pkgconfig, glib }:
22
3−mkPythonDerivation rec {
3+buildPythonPackage rec {
44 name = "pygobject-${version}";
55 version = "2.28.6";
6+ format = "other";
67
78 src = fetchurl {
89 url = "mirror://gnome/sources/pygobject/2.28/${name}.tar.xz";
pkgs/development/python-modules/pygtksourceview/default.nix+3−2
@@ -1,9 +1,10 @@
1−{ lib, fetchurl, python, mkPythonDerivation, pkgconfig, pygobject2, glib, pygtk, gnome2 }:
1+{ lib, fetchurl, python, buildPythonPackage, pkgconfig, pygobject2, glib, pygtk, gnome2 }:
22
33let version = "2.10.1"; in
44
5−mkPythonDerivation {
5+buildPythonPackage {
66 name = "pygtksourceview-${version}";
7+ format = "other";
78
89 src = fetchurl {
910 url = "http://ftp.gnome.org/pub/gnome/sources/pygtksourceview/2.10/pygtksourceview-${version}.tar.bz2";
pkgs/development/python-modules/pyqt/4.x.nix+3−2
@@ -2,9 +2,10 @@
22
33let
44 version = "4.12";
5− inherit (pythonPackages) mkPythonDerivation python dbus-python sip;
6−in mkPythonDerivation {
5+ inherit (pythonPackages) buildPythonPackage python dbus-python sip;
6+in buildPythonPackage {
77 name = "PyQt-x11-gpl-${version}";
8+ format = "other";
89
910 src = fetchurl {
1011 url = "mirror://sourceforge/pyqt/PyQt4_gpl_x11-${version}.tar.gz";
pkgs/development/python-modules/pyqt/5.x.nix+3−2
@@ -3,9 +3,10 @@
33
44let
55 version = "5.8.1";
6− inherit (pythonPackages) mkPythonDerivation python dbus-python sip;
7−in mkPythonDerivation {
6+ inherit (pythonPackages) buildPythonPackage python dbus-python sip;
7+in buildPythonPackage {
88 name = "PyQt-${version}";
9+ format = "other";
910
1011 meta = with lib; {
1112 description = "Python bindings for Qt5";
pkgs/development/python-modules/pyside/default.nix+3−2
@@ -1,8 +1,9 @@
1−{ lib, fetchurl, cmake, python, mkPythonDerivation, pysideGeneratorrunner, pysideShiboken, qt4 }:
1+{ lib, fetchurl, cmake, python, buildPythonPackage, pysideGeneratorrunner, pysideShiboken, qt4 }:
22
3−mkPythonDerivation rec {
3+buildPythonPackage rec {
44 name = "pyside-${version}";
55 version = "1.2.4";
6+ format = "other";
67
78 src = fetchurl {
89 url = "https://github.com/PySide/PySide/archive/${version}.tar.gz";
pkgs/development/python-modules/pyxml/default.nix+3−2
@@ -1,7 +1,8 @@
1−{lib, fetchurl, python, mkPythonDerivation, makeWrapper}:
1+{lib, fetchurl, python, buildPythonPackage, makeWrapper}:
22
3−mkPythonDerivation rec {
3+buildPythonPackage rec {
44 name = "PyXML-0.8.4";
5+ format = "other";
56 src = fetchurl {
67 url = "mirror://sourceforge/pyxml/${name}.tar.gz";
78 sha256 = "04wc8i7cdkibhrldy6j65qp5l75zjxf5lx6qxdxfdf2gb3wndawz";
pkgs/development/python-modules/sip/default.nix+3−2
@@ -1,7 +1,8 @@
1−{ lib, fetchurl, mkPythonDerivation, python, isPyPy }:
1+{ lib, fetchurl, buildPythonPackage, python, isPyPy }:
22
3−if isPyPy then throw "sip not supported for interpreter ${python.executable}" else mkPythonDerivation rec {
3+if isPyPy then throw "sip not supported for interpreter ${python.executable}" else buildPythonPackage rec {
44 name = "sip-4.19.1";
5+ format = "other";
56
67 src = fetchurl {
78 url = "mirror://sourceforge/pyqt/sip/${name}/${name}.tar.gz";
pkgs/development/tools/documentation/gnome-doc-utils/default.nix+2−1
@@ -1,8 +1,9 @@
11{stdenv, fetchurl, pkgconfig, libxml2Python, libxslt, intltool
22, makeWrapper, python2Packages }:
33
4−python2Packages.mkPythonDerivation {
4+python2Packages.buildPythonApplication {
55 name = "gnome-doc-utils-0.20.10";
6+ format = "other";
67
78 src = fetchurl {
89 url = mirror://gnome/sources/gnome-doc-utils/0.20/gnome-doc-utils-0.20.10.tar.xz;
pkgs/development/tools/misc/autogen/default.nix+3−3
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name = "autogen-${version}";
5− version = "5.18.7";
5+ version = "5.18.12";
66
77 src = fetchurl {
8− url = "mirror://gnu/autogen/autogen-${version}.tar.xz";
9− sha256 = "01d4m8ckww12sy50vgyxlnz83z9dxqpyqp153cscncc9w6jq19d7";
8+ url = "mirror://gnu/autogen/rel${version}/autogen-${version}.tar.xz";
9+ sha256 = "1n5zq4872sakvz9c7ncsdcfp0z8rsybsxvbmhkpbd19ii0pacfxy";
1010 };
1111
1212 outputs = [ "bin" "dev" "lib" "out" "man" "info" ];
pkgs/development/tools/misc/d-feet/default.nix+2−2
@@ -4,9 +4,9 @@
44let
55 version = "${major}.11";
66 major = "0.3";
7−in pythonPackages.mkPythonDerivation rec {
7+in pythonPackages.buildPythonApplication rec {
88 name = "d-feet-${version}";
9− namePrefix = "";
9+ format = "other";
1010
1111 src = fetchurl {
1212 url = "mirror://gnome/sources/d-feet/${major}/d-feet-${version}.tar.xz";
pkgs/misc/drivers/hplip/default.nix+2−1
@@ -47,8 +47,9 @@ in
4747assert withPlugin -> builtins.elem hplipArch pluginArches
4848 || throw "HPLIP plugin not supported on ${stdenv.system}";
4949
50−pythonPackages.mkPythonDerivation {
50+pythonPackages.buildPythonApplication {
5151 inherit name src;
52+ format = "other";
5253
5354 buildInputs = [
5455 libjpeg
pkgs/os-specific/linux/dstat/default.nix+2−1
@@ -1,7 +1,8 @@
11{ stdenv, fetchurl, python2Packages }:
22
3−python2Packages.mkPythonDerivation rec {
3+python2Packages.buildPythonApplication rec {
44 name = "dstat-${version}";
5+ format = "other";
56 version = "0.7.3";
67
78 src = fetchurl {
pkgs/shells/bash/4.4.nix−7
@@ -52,13 +52,6 @@ stdenv.mkDerivation rec {
5252 patchFlags = "-p0";
5353
5454 patches = upstreamPatches
55− ++ [ (fetchurl {
56− # https://security.gentoo.org/glsa/201701-02
57− url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-shells"
58− + "/bash/files/bash-4.4-popd-offset-overflow.patch"
59− + "?id=1bf1ceeb04a2f57e1e5e1636a8c288c4d0db6682";
60− sha256 = "02n08lw5spvsc2b1bll0gr6mg4qxcg7pzfjkw7ji5w7bjcikccbm";
61− }) ]
6255 ++ optional stdenv.isCygwin ./cygwin-bash-4.3.33-1.src.patch;
6356
6457 crossAttrs = {
pkgs/shells/bash/bash-4.4-patches.nix+7
@@ -6,4 +6,11 @@ patch: [
66(patch "003" "1chqww2rj6g42b8s60q5zlzy0jzp684jkpsbrbfy1vzxja8mmpsi")
77(patch "004" "1cy8abf96hkrjhw921ndr0shlcnc52bg45rn6xri4v5clhq0l25d")
88(patch "005" "0a8515kyk4zsgmvlqvlganjfr7pq0j6kzpr4d6xx02kpbdr4n7i2")
9+(patch "006" "1f24wgqngmj2mrj9yibwvc2zvlmn5xi53mnw777g3l40c4m2x3ka")
10+(patch "007" "1bzdsnqaf05gdbqpsixhan8vygjxpcxlz1dd8d9f5jdznw3wq76y")
11+(patch "008" "1firw915mjm03hbbw9a70ch3cpgrgnvqjpllgdnn6csr8q04f546")
12+(patch "009" "0g1l56kvw61rpw7dqa9fcl9llkl693h73g631hrhxlm030ddssqb")
13+(patch "010" "01lfhrkdsdkdz8ypzapr614ras23x7ckjnr60aa5bzkaqprccrc4")
14+(patch "011" "038p7mhnq9m65g505hi3827jkf9f35nd1cy00w8mwafpyxp44mnx")
15+(patch "012" "0gh6lbb1rwpk44pvbamm6vzdfi50xnwkqd9v7s8cjwk3pz973hps")
916]
pkgs/tools/networking/curl/default.nix+1−5
@@ -28,8 +28,6 @@ stdenv.mkDerivation rec {
2828 sha256 = "1s1hyndva0yp62xy96pcp4anzrvw6cl0abjajim17sbmdp00fwhw";
2929 };
3030
31− patches = [ ];
32−
3331 outputs = [ "bin" "dev" "out" "man" "devdoc" ];
3432
3533 enableParallelBuilding = true;
@@ -57,9 +55,7 @@ stdenv.mkDerivation rec {
5755 '';
5856
5957 configureFlags = [
60− # OS X does not have a default system bundle, so we assume cacerts is installed in the default nix-env profile
61− # This sucks. We should probably just include the latest cacerts in the darwin bootstrap.
62− "--with-ca-bundle=${if stdenv.isDarwin then "/nix/var/nix/profiles/default" else ""}/etc/ssl/certs/ca-${if stdenv.isDarwin then "bundle" else "certificates"}.crt"
58+ "--with-ca-fallback"
6359 "--disable-manual"
6460 ( if sslSupport then "--with-ssl=${openssl.dev}" else "--without-ssl" )
6561 ( if gnutlsSupport then "--with-gnutls=${gnutls.dev}" else "--without-gnutls" )
pkgs/top-level/all-packages.nix+3
@@ -7442,6 +7442,8 @@ with pkgs;
74427442
74437443 fontconfig = callPackage ../development/libraries/fontconfig { };
74447444
7445+ fontconfig-penultimate = callPackage ../data/fonts/fontconfig-penultimate {};
7446+
74457447 fontconfig-ultimate = callPackage ../development/libraries/fontconfig-ultimate {};
74467448
74477449 folly = callPackage ../development/libraries/folly { };
@@ -9011,6 +9013,7 @@ with pkgs;
90119013 mesa_drivers = mesaDarwinOr (
90129014 let mo = mesa_noglu.override {
90139015 grsecEnabled = config.grsecurity or false;
9016+ enableTextureFloats = true;
90149017 };
90159018 in mo.drivers
90169019 );
pkgs/top-level/python-packages.nix+10−5
@@ -7035,9 +7035,10 @@ in {
70357035 buildInputs = with self; [ fudge_9 nose ];
70367036 };
70377037
7038− fedora_cert = mkPythonDerivation rec {
7038+ fedora_cert = buildPythonPackage rec {
70397039 name = "fedora-cert-0.5.9.2";
70407040 meta.maintainers = with maintainers; [ mornfall ];
7041+ format = "other";
70417042
70427043 src = pkgs.fetchurl {
70437044 url = "https://fedorahosted.org/releases/f/e/fedora-packager/fedora-packager-0.5.9.2.tar.bz2";
@@ -21810,8 +21811,9 @@ in {
2181021811 };
2181121812
2181221813
21813− pysvn = mkPythonDerivation rec {
21814+ pysvn = buildPythonPackage rec {
2181421815 name = "pysvn-1.8.0";
21816+ format = "other";
2181521817
2181621818 src = pkgs.fetchurl {
2181721819 url = "http://pysvn.barrys-emacs.org/source_kits/${name}.tar.gz";
@@ -21966,9 +21968,10 @@ in {
2196621968 });
2196721969
2196821970
21969− pywebkitgtk = mkPythonDerivation rec {
21971+ pywebkitgtk = buildPythonPackage rec {
2197021972 name = "pywebkitgtk-${version}";
2197121973 version = "1.1.8";
21974+ format = "other";
2197221975
2197321976 src = pkgs.fetchurl {
2197421977 url = "http://pywebkitgtk.googlecode.com/files/${name}.tar.bz2";
@@ -22301,10 +22304,11 @@ in {
2230122304
2230222305 qscintilla = if isPy3k || isPyPy
2230322306 then throw "qscintilla-${pkgs.qscintilla.version} not supported for interpreter ${python.executable}"
22304− else mkPythonDerivation rec {
22307+ else buildPythonPackage rec {
2230522308 # TODO: Qt5 support
2230622309 name = "qscintilla-${version}";
2230722310 version = pkgs.qscintilla.version;
22311+ format = "other";
2230822312
2230922313 src = pkgs.qscintilla.src;
2231022314
@@ -25853,9 +25857,10 @@ in {
2585325857 # Python package.
2585425858 tkinter = let
2585525859 py = python.override{x11Support=true;};
25856− in mkPythonDerivation rec {
25860+ in buildPythonPackage rec {
2585725861 name = "tkinter-${python.version}";
2585825862 src = py;
25863+ format = "other";
2585925864
2586025865 disabled = isPy26 || isPyPy;
2586125866