Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 18b031d58b28
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ef9f91f3cf14
Choose a head ref

Commits on Oct 22, 2019

  1. pango: 1.43.0, backport CVE-2019-1010238 fix

    There was a previous fix for this in
    #71571
    
    But some things, most notably pygtk, still rely on deprecated pango
    APIs that are not available past 1.43, this backports the CVE
    fix to this version.
    d-goldin committed Oct 22, 2019
    Copy the full SHA
    9524bf3 View commit details

Commits on Oct 28, 2019

  1. Copy the full SHA
    3b8c555 View commit details
  2. Copy the full SHA
    4f4e39f View commit details
  3. Partially verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
    Copy the full SHA
    5d46fcc View commit details
  4. Copy the full SHA
    e72a6e5 View commit details
  5. Copy the full SHA
    d3ff8e6 View commit details
  6. Copy the full SHA
    1de992c View commit details
  7. Copy the full SHA
    46eacf3 View commit details
  8. Copy the full SHA
    05a71af View commit details
  9. Copy the full SHA
    a0f12b0 View commit details

Commits on Oct 29, 2019

  1. Copy the full SHA
    eabf213 View commit details
  2. pazi: 0.3.0 -> 0.4.0

    marsam committed Oct 29, 2019
    Copy the full SHA
    fc721de View commit details
  3. Copy the full SHA
    c803971 View commit details
  4. Copy the full SHA
    78d9669 View commit details
  5. python3.pkgs.weboob: 1.3 -> 1.5

    html2text is python3 only now, which implicitly also affects weboob.
    Mic92 authored and Jon committed Oct 29, 2019
    Copy the full SHA
    1e501c8 View commit details
  6. kmymoney: 5.0.5 -> 5.0.7

    Mic92 authored and Jon committed Oct 29, 2019
    Copy the full SHA
    91f4d7a View commit details
  7. python35: 3.5.7 -> 3.5.8

    FRidh committed Oct 29, 2019
    Copy the full SHA
    ccf514a View commit details
  8. youtube-dl: 2019.10.22 -> 2019.10.29

    xrelkd authored and Jon committed Oct 29, 2019
    Copy the full SHA
    215dbc5 View commit details
  9. Merge pull request #71482 from eadwu/vscode-extensions/update-2

    vscode-extensions: update 2
    marsam authored Oct 29, 2019
    Copy the full SHA
    417df00 View commit details
  10. qgis: 3.8.2 -> 3.10.0 (#72231)

    qgis: 3.8.2 -> 3.10.0
    Mic92 authored Oct 29, 2019
    Copy the full SHA
    9bfbac8 View commit details
  11. buildah: 1.11.3 -> 1.11.4

    Signed-off-by: Sascha Grunert <sgrunert@suse.com>
    saschagrunert authored and Profpatsch committed Oct 29, 2019
    Copy the full SHA
    172601d View commit details
  12. Copy the full SHA
    d1109da View commit details
  13. virtmanager{,-qt}: rename to virt-manager{,-qt}

    Both the executable and the derivation's pname are named `virt-manager`,
    however the attribute name is named `virtmanager` which is pretty
    confusing when e.g. using this package with `nix run`.
    
    Thus I renamed the package accordingly and added aliases for
    backwards-compatibility (both attributes aren't used somewhere else
    in nixpkgs, so the rename should be fine).
    
    Also several other distros use `virt-manager` as package name like
    Arch[1], Debian[2] or Fedora[3].
    
    [1] https://www.archlinux.org/packages/community/any/virt-manager/
    [2] https://packages.debian.org/buster/virt-manager
    [3] https://apps.fedoraproject.org/packages/virt-manager
    Ma27 committed Oct 29, 2019
    Copy the full SHA
    5b640bf View commit details
  14. Copy the full SHA
    b76193a View commit details
  15. python3Packages.snuggs: 1.4.3 -> 1.4.7

    Jonathan Ringer authored and FRidh committed Oct 29, 2019
    Copy the full SHA
    afce5f5 View commit details
  16. conmon: 2.0.0 -> 2.0.2

    Signed-off-by: Sascha Grunert <sgrunert@suse.com>
    saschagrunert authored and FRidh committed Oct 29, 2019
    Copy the full SHA
    702c745 View commit details
  17. Copy the full SHA
    accec23 View commit details
  18. noto-fonts-emoji: 2018-08-10-unicode11 -> unstable-2019-10-22

    update version for python3 compatibility
    FRidh committed Oct 29, 2019
    Copy the full SHA
    22c483a View commit details
  19. 3
    Copy the full SHA
    980d658 View commit details
  20. Copy the full SHA
    04be5b8 View commit details
  21. Merge pull request #71687 from d-goldin/backport_cve_2019_1010238

    pango: 1.43.0, backport CVE-2019-1010238 fix
    7c6f434c authored Oct 29, 2019
    Copy the full SHA
    298db02 View commit details
  22. Copy the full SHA
    2db400d View commit details
  23. Revert "rclone: 1.49.5 -> 1.50.0"

    This reverts commit aec323c.
    
    Ref #3685
    Ref #72063
    ehmry committed Oct 29, 2019
    Copy the full SHA
    182c16f View commit details
  24. Copy the full SHA
    a68c650 View commit details
  25. linux: 4.19.80 -> 4.19.81

    NeQuissimus committed Oct 29, 2019
    Copy the full SHA
    39aa4c6 View commit details
  26. linux: 4.4.197 -> 4.4.198

    NeQuissimus committed Oct 29, 2019
    Copy the full SHA
    ccc929b View commit details
  27. linux: 4.9.197 -> 4.9.198

    NeQuissimus committed Oct 29, 2019
    Copy the full SHA
    5611533 View commit details
  28. linux: 5.3.7 -> 5.3.8

    NeQuissimus committed Oct 29, 2019
    Copy the full SHA
    eafc9de View commit details
  29. 6
    Copy the full SHA
    50a4b2d View commit details
  30. Copy the full SHA
    fc6d1e0 View commit details
  31. skawarePackages.skalibs: empty default path

    If `PATH` is unset, the exec wrappers in skalibs set a default path to
    `/usr/bin:bin`.
    
    This has very unfortunate effects when you e.g. try to run tests on CI
    in an empty environment (minus tools explicitely provided by nix with
    absolute store paths), because suddenly binaries from outside are
    picked up again, especially on non-NixOS.
    Even on NixOS, /bin/sh provides another escape hatch if it’s available
    from PATH. But on systems like Ubuntu or MacOS (which most CI systems
    run on), this picks up all the non-nix binaries.
    Profpatsch committed Oct 29, 2019
    Copy the full SHA
    14f812a View commit details
  32. pango: update sha256 hash

    Izorkin committed Oct 29, 2019
    Copy the full SHA
    5a08a25 View commit details
  33. Copy the full SHA
    432258f View commit details
  34. Fancontrol: add test etc from #70933 (#72065)

    * lm_sensors: add fancontrol module + nixos test
    
    fancontrol is a small script that checks temperature sensors and adapts
    fan speeds accordingly. It reads a text config file that can be
    auto-generated by running the pwmconfig wizard on the live system.
    evils authored and markuskowa committed Oct 29, 2019
    Copy the full SHA
    5a78ce3 View commit details
  35. Merge pull request #72238 from marsam/update-pazi

    pazi: 0.3.0 -> 0.4.0
    lsix authored Oct 29, 2019
    Copy the full SHA
    b04d88f View commit details
  36. Merge pull request #72251 from Izorkin/pango-fix

    pango: update sha256 hash
    globin authored Oct 29, 2019
    Copy the full SHA
    36ba92c View commit details
  37. Copy the full SHA
    e96e5f0 View commit details
  38. Copy the full SHA
    45b1b9d View commit details
  39. Copy the full SHA
    1155bb1 View commit details
  40. Merge pull request #72171 from romildo/upd.ocamlearlybird

    ocamlPackages.ocamlearlybird: init at 0.1.5; ocamlPackages.angstrom: 0.10.0 -> 0.12.1
    vbgl authored Oct 29, 2019
    Copy the full SHA
    5a4e67a View commit details
Showing with 421 additions and 175 deletions.
  1. +19 −20 nixos/modules/services/hardware/fancontrol.nix
  2. +1 −0 nixos/tests/all-tests.nix
  3. +25 −0 nixos/tests/fancontrol.nix
  4. +1 −1 nixos/tests/fontconfig-default-fonts.nix
  5. +2 −2 pkgs/applications/gis/qgis/unwrapped.nix
  6. +2 −2 pkgs/applications/networking/instant-messengers/zoom-us/default.nix
  7. +2 −2 pkgs/applications/networking/sync/rclone/default.nix
  8. +6 −8 pkgs/applications/office/kmymoney/default.nix
  9. +2 −2 pkgs/applications/office/softmaker/softmaker_office.nix
  10. +2 −2 pkgs/applications/virtualization/conmon/default.nix
  11. +5 −5 pkgs/applications/virtualization/virt-top/default.nix
  12. +7 −5 pkgs/data/fonts/noto-fonts/default.nix
  13. +25 −8 pkgs/data/fonts/noto-fonts/tools.nix
  14. +3 −2 pkgs/data/fonts/twitter-color-emoji/default.nix
  15. +32 −6 pkgs/development/coq-modules/coq-extensible-records/default.nix
  16. +2 −2 pkgs/development/interpreters/python/default.nix
  17. +2 −2 pkgs/development/libraries/libedit/default.nix
  18. +5 −0 pkgs/development/libraries/pango/default.nix
  19. +3 −0 pkgs/development/libraries/skalibs/default.nix
  20. +19 −0 pkgs/development/ocaml-modules/angstrom-async/default.nix
  21. +19 −0 pkgs/development/ocaml-modules/angstrom-lwt-unix/default.nix
  22. +19 −0 pkgs/development/ocaml-modules/angstrom-unix/default.nix
  23. +2 −2 pkgs/development/ocaml-modules/angstrom/default.nix
  24. +24 −0 pkgs/development/ocaml-modules/earlybird/default.nix
  25. +5 −0 pkgs/development/python-modules/dogpile.cache/default.nix
  26. +4 −4 pkgs/development/python-modules/snuggs/default.nix
  27. +7 −9 pkgs/development/python-modules/weboob/default.nix
  28. +2 −2 pkgs/development/tools/buildah/default.nix
  29. +2 −2 pkgs/development/tools/continuous-integration/jenkins/default.nix
  30. +2 −2 pkgs/misc/vscode-extensions/cpptools/default.nix
  31. +5 −5 pkgs/misc/vscode-extensions/python/default.nix
  32. +2 −2 pkgs/misc/vscode-extensions/wakatime/default.nix
  33. +2 −2 pkgs/os-specific/linux/kernel/linux-4.14.nix
  34. +2 −2 pkgs/os-specific/linux/kernel/linux-4.19.nix
  35. +2 −2 pkgs/os-specific/linux/kernel/linux-4.4.nix
  36. +2 −2 pkgs/os-specific/linux/kernel/linux-4.9.nix
  37. +2 −2 pkgs/os-specific/linux/kernel/linux-5.3.nix
  38. +14 −12 pkgs/servers/home-assistant/component-packages.nix
  39. +49 −37 pkgs/servers/home-assistant/default.nix
  40. +60 −0 pkgs/tools/admin/certbot/0001-Don-t-use-distutils.StrictVersion-that-cannot-handle.patch
  41. +1 −0 pkgs/tools/admin/certbot/default.nix
  42. +4 −4 pkgs/tools/admin/google-cloud-sdk/default.nix
  43. +8 −8 pkgs/tools/misc/pazi/cargo-lock.patch
  44. +3 −3 pkgs/tools/misc/pazi/default.nix
  45. +2 −2 pkgs/tools/misc/youtube-dl/default.nix
  46. +2 −0 pkgs/top-level/aliases.nix
  47. +2 −2 pkgs/top-level/all-packages.nix
  48. +8 −0 pkgs/top-level/ocaml-packages.nix
39 changes: 19 additions & 20 deletions nixos/modules/services/hardware/fancontrol.nix
Original file line number Diff line number Diff line change
@@ -4,42 +4,41 @@ with lib;

let
cfg = config.hardware.fancontrol;
configFile = pkgs.writeText "fan.conf" cfg.config;

in {
configFile = pkgs.writeText "fancontrol.conf" cfg.config;

in{
options.hardware.fancontrol = {
enable = mkEnableOption "fancontrol (requires fancontrol.config)";
enable = mkEnableOption "software fan control (requires fancontrol.config)";

config = mkOption {
type = types.lines;
default = null;
type = types.lines;
description = "Fancontrol configuration file content. See <citerefentry><refentrytitle>pwmconfig</refentrytitle><manvolnum>8</manvolnum></citerefentry> from the lm_sensors package.";
example = ''
# Configuration file generated by pwmconfig
INTERVAL=1
DEVPATH=hwmon0=devices/platform/nct6775.656 hwmon1=devices/pci0000:00/0000:00:18.3
DEVNAME=hwmon0=nct6779 hwmon1=k10temp
FCTEMPS=hwmon0/pwm2=hwmon1/temp1_input
FCFANS=hwmon0/pwm2=hwmon0/fan2_input
MINTEMP=hwmon0/pwm2=25
MAXTEMP=hwmon0/pwm2=60
MINSTART=hwmon0/pwm2=25
MINSTOP=hwmon0/pwm2=10
MINPWM=hwmon0/pwm2=0
MAXPWM=hwmon0/pwm2=255
INTERVAL=10
DEVPATH=hwmon3=devices/virtual/thermal/thermal_zone2 hwmon4=devices/platform/f71882fg.656
DEVNAME=hwmon3=soc_dts1 hwmon4=f71869a
FCTEMPS=hwmon4/device/pwm1=hwmon3/temp1_input
FCFANS= hwmon4/device/pwm1=hwmon4/device/fan1_input
MINTEMP=hwmon4/device/pwm1=35
MAXTEMP=hwmon4/device/pwm1=65
MINSTART=hwmon4/device/pwm1=150
MINSTOP=hwmon4/device/pwm1=0
'';
description = "Contents for configuration file. See <citerefentry><refentrytitle>pwmconfig</refentrytitle><manvolnum>8</manvolnum></citerefentry>.";
};
};


config = mkIf cfg.enable {
systemd.services.fancontrol = {
description = "Fan speed control from lm_sensors";
unitConfig.Documentation = "man:fancontrol(8)";
description = "software fan control";
wantedBy = [ "multi-user.target" ];
after = [ "lm_sensors.service" ];

serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.lm_sensors}/bin/fancontrol ${configFile}";
ExecStart = "${pkgs.lm_sensors}/sbin/fancontrol ${configFile}";
};
};
};
1 change: 1 addition & 0 deletions nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
@@ -81,6 +81,7 @@ in
env = handleTest ./env.nix {};
etcd = handleTestOn ["x86_64-linux"] ./etcd.nix {};
etcd-cluster = handleTestOn ["x86_64-linux"] ./etcd-cluster.nix {};
fancontrol = handleTest ./fancontrol.nix {};
ferm = handleTest ./ferm.nix {};
firefox = handleTest ./firefox.nix {};
firewall = handleTest ./firewall.nix {};
25 changes: 25 additions & 0 deletions nixos/tests/fancontrol.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import ./make-test.nix ({ pkgs, ... } : {
name = "fancontrol";

machine =
{ ... }:
{ hardware.fancontrol.enable = true;
hardware.fancontrol.config = ''
INTERVAL=42
DEVPATH=hwmon1=devices/platform/dummy
DEVNAME=hwmon1=dummy
FCTEMPS=hwmon1/device/pwm1=hwmon1/device/temp1_input
FCFANS=hwmon1/device/pwm1=hwmon1/device/fan1_input
MINTEMP=hwmon1/device/pwm1=25
MAXTEMP=hwmon1/device/pwm1=65
MINSTART=hwmon1/device/pwm1=150
MINSTOP=hwmon1/device/pwm1=0
'';
};

# This configuration cannot be valid for the test VM, so it's expected to get an 'outdated' error.
testScript = ''
$machine->waitForUnit("fancontrol.service");
$machine->waitUntilSucceeds("journalctl -eu fancontrol | grep 'Configuration appears to be outdated'");
'';
})
2 changes: 1 addition & 1 deletion nixos/tests/fontconfig-default-fonts.nix
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ import ./make-test.nix ({ lib, ... }:
fonts.fonts = with pkgs; [
noto-fonts-emoji
cantarell-fonts
twitter-color-emoji
#twitter-color-emoji # Can't be generated with Python 3 version of nototools
source-code-pro
gentium
];
4 changes: 2 additions & 2 deletions pkgs/applications/gis/qgis/unwrapped.nix
Original file line number Diff line number Diff line change
@@ -10,15 +10,15 @@ let
[ qscintilla-qt5 gdal jinja2 numpy psycopg2
chardet dateutil pyyaml pytz requests urllib3 pygments pyqt5 sip owslib six ];
in mkDerivation rec {
version = "3.8.3";
version = "3.10.0";
pname = "qgis";
name = "${pname}-unwrapped-${version}";

src = fetchFromGitHub {
owner = "qgis";
repo = "QGIS";
rev = "final-${lib.replaceStrings ["."] ["_"] version}";
sha256 = "16axjih48qn8ri3p71d8f7k0y3rd05wghmg1fcbyda871b45b2f8";
sha256 = "0qq4dznxxbpj8b4ypkz7dixc0b0v6rmf3c5hs4m3ka3rzck8jsqc";
};

passthru = {
Original file line number Diff line number Diff line change
@@ -14,11 +14,11 @@ assert pulseaudioSupport -> libpulseaudio != null;
let
inherit (stdenv.lib) concatStringsSep makeBinPath optional;

version = "3.0.306796.1020";
version = "3.0.309708.1027";
srcs = {
x86_64-linux = fetchurl {
url = "https://zoom.us/client/${version}/zoom_x86_64.tar.xz";
sha256 = "0nh93pyincwfmx3z5x4s0ym3n0ff492nwd9wh3xkcl518pslxpxy";
sha256 = "0g0nmlbcps331vdnfj571lzhcw8cb2gxbll09jananxdpnmwv5l6";
};
};

4 changes: 2 additions & 2 deletions pkgs/applications/networking/sync/rclone/default.nix
Original file line number Diff line number Diff line change
@@ -2,13 +2,13 @@

buildGoPackage rec {
pname = "rclone";
version = "1.50.0";
version = "1.49.5";

src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "0k4fybz4670cqg1rpx0c1ximf1x6yl1f788hx9raxkwp5wv703kw";
sha256 = "0firfb2300grfp5fnqaifhp346m4d0x8r1xshs9d8r6jxb160n03";
};

goPackagePath = "github.com/rclone/rclone";
14 changes: 6 additions & 8 deletions pkgs/applications/office/kmymoney/default.nix
Original file line number Diff line number Diff line change
@@ -10,17 +10,16 @@
# Needed for running tests:
, qtbase, xvfb_run

# For weboob, which only supports Python 2.x:
, python2Packages
, python3Packages
}:

stdenv.mkDerivation rec {
pname = "kmymoney";
version = "5.0.5";
version = "5.0.7";

src = fetchurl {
url = "mirror://kde/stable/kmymoney/${version}/src/${pname}-${version}.tar.xz";
sha256 = "1hghs4676kn2giwpwz1y7p6djpmi41x64idf3ybiz8ky14a5s977";
sha256 = "1h5mzvgpfyl2j66b3nsw17yxvg0ja1qhjlcmfkz62221vcqsrp6m";
};

# Hidden dependency that wasn't included in CMakeLists.txt:
@@ -29,7 +28,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;

nativeBuildInputs = [
doxygen extra-cmake-modules graphviz kdoctools python2Packages.wrapPython
doxygen extra-cmake-modules graphviz kdoctools python3Packages.wrapPython
wrapQtAppsHook
];

@@ -41,10 +40,10 @@ stdenv.mkDerivation rec {

# Put it into buildInputs so that CMake can find it, even though we patch
# it into the interface later.
python2Packages.weboob
python3Packages.weboob
];

weboobPythonPath = [ python2Packages.weboob ];
weboobPythonPath = [ python3Packages.weboob ];

postInstall = ''
buildPythonPath "$weboobPythonPath"
@@ -70,6 +69,5 @@ stdenv.mkDerivation rec {
homepage = https://kmymoney.org/;
platforms = lib.platforms.linux;
license = lib.licenses.gpl2Plus;
broken = true;
};
}
4 changes: 2 additions & 2 deletions pkgs/applications/office/softmaker/softmaker_office.nix
Original file line number Diff line number Diff line change
@@ -2,13 +2,13 @@

callPackage ./generic.nix (args // rec {
pname = "softmaker-office";
version = "970";
version = "972";
edition = "2018";
suiteName = "SoftMaker Office";

src = fetchurl {
url = "https://www.softmaker.net/down/softmaker-office-${edition}-${version}-amd64.tgz";
sha256 = "14f94p1jms41s2iz5sa770rcyfp4mv01r6jjjis9amx37zrc8yid";
sha256 = "06kgkmqg5269a4vm14i89mw8m1x9yy9ajw0dhfcvjizadyzmlqn1";
};

archive = "office${edition}.tar.lzma";
4 changes: 2 additions & 2 deletions pkgs/applications/virtualization/conmon/default.nix
Original file line number Diff line number Diff line change
@@ -9,13 +9,13 @@
stdenv.mkDerivation rec {
project = "conmon";
name = "${project}-${version}";
version = "2.0.0";
version = "2.0.2";

src = fetchFromGitHub {
owner = "containers";
repo = project;
rev = "v${version}";
sha256 = "1sigcylya668f5jzkf1vgfsgqy26l3glh9a3g8lhd2468ax6wymk";
sha256 = "1ha5vhjlb12kshh0j1vpl1vjk8ym9w2j1x762y6zdspkdha1w3dv";
};

nativeBuildInputs = [ pkgconfig ];
10 changes: 5 additions & 5 deletions pkgs/applications/virtualization/virt-top/default.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{ stdenv, fetchgit, ocamlPackages, autoreconfHook }:

stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "virt-top";
version = "2017-11-18-unstable";
version = "1.0.9";

src = fetchgit {
url = git://git.annexia.org/git/virt-top.git;
rev = "18a751d8c26548bb090ff05e30ccda3092e3373b";
sha256 = "0c4whjvw7p3yvd476i4ppdhi8j821r5y6caqrj2v9dc181cnp01i";
url = git://git.annexia.org/virt-top.git;
rev = "v${version}";
sha256 = "0m7pm8lzlpngsj0vjv0hg8l9ck3gvwpva7r472f8f03xpjffwiga";
};

nativeBuildInputs = [ autoreconfHook ];
12 changes: 7 additions & 5 deletions pkgs/data/fonts/noto-fonts/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchzip, fetchFromGitHub, optipng, cairo, pythonPackages, pkgconfig, pngquant, which, imagemagick }:
{ stdenv, fetchzip, fetchFromGitHub, optipng, cairo, python3Packages, pkgconfig, pngquant, which, imagemagick }:

let
mkNoto = { name, weights, sha256, }:
@@ -89,20 +89,22 @@ in
maintainers = with maintainers; [ mathnerd314 ];
};
};
noto-fonts-emoji = let version = "2018-08-10-unicode11"; in stdenv.mkDerivation {
noto-fonts-emoji = let
version = "unstable-2019-10-22";
in stdenv.mkDerivation {
pname = "noto-fonts-emoji";
inherit version;

src = fetchFromGitHub {
owner = "googlei18n";
repo = "noto-emoji";
rev = "v${version}";
sha256 = "1y54zsvwf5pqhcd9cl2zz5l52qyswn6kycvrq03zm5kqqsngbw3p";
rev = "018aa149d622a4fea11f01c61a7207079da301bc";
sha256 = "0qmnnjpp5lza6g5m3ki6hj46p891h9vl42k3acd0qw8i0jj5yn2c";
};

buildInputs = [ cairo ];
nativeBuildInputs = [ pngquant optipng which cairo pkgconfig imagemagick ]
++ (with pythonPackages; [ python fonttools nototools ]);
++ (with python3Packages; [ python fonttools nototools ]);

postPatch = ''
sed -i 's,^PNGQUANT :=.*,PNGQUANT := ${pngquant}/bin/pngquant,' Makefile
33 changes: 25 additions & 8 deletions pkgs/data/fonts/noto-fonts/tools.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,45 @@
{ fetchFromGitHub, pythonPackages, lib }:
{ fetchFromGitHub, lib, fetchpatch, buildPythonPackage, isPy3k, fonttools, numpy, pillow, six, bash }:

pythonPackages.buildPythonPackage rec {
buildPythonPackage rec {
pname = "nototools";
version = "unstable-2019-03-20";
version = "unstable-2019-10-21";

src = fetchFromGitHub {
owner = "googlefonts";
repo = "nototools";
rev = "9c4375f07c9adc00c700c5d252df6a25d7425870";
sha256 = "0z9i23vl6xar4kvbqbc8nznq3s690mqc5zfv280l1c02l5n41smc";
rev = "cae92ce958bee37748bf0602f5d7d97bb6db98ca";
sha256 = "1jqr0dz23rjqiyxw1w69l6ry16dwdcf3c6cysiy793g2v7pir2yi";
};

propagatedBuildInputs = with pythonPackages; [ fonttools numpy ];
propagatedBuildInputs = [ fonttools numpy ];

patches = lib.optionals isPy3k [
# Additional Python 3 compat https://github.com/googlefonts/nototools/pull/497
(fetchpatch {
url = https://github.com/googlefonts/nototools/commit/ded1f311b3260f015b5c5b80f05f7185392c4eff.patch;
sha256 = "0bn0rlbddxicw0h1dnl0cibgj6xjalja2qcm563y7kk3z5cdwhgq";
})
];

postPatch = ''
sed -ie "s^join(_DATA_DIR_PATH,^join(\"$out/third_party/ucd\",^" nototools/unicode_data.py
'';

checkInputs = [
pillow six bash
];

checkPhase = ''
patchShebangs tests/
cd tests
rm gpos_diff_test.py # needs ttxn?
./run_tests
'';

postInstall = ''
cp -r third_party $out
'';

disabled = pythonPackages.isPy3k;

meta = {
description = "Noto fonts support tools and scripts plus web site generation";
license = lib.licenses.asl20;
5 changes: 3 additions & 2 deletions pkgs/data/fonts/twitter-color-emoji/default.nix
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
, imagemagick
, pkg-config
, pngquant
, python2
, python3
, which
, zopfli
}:
@@ -33,7 +33,7 @@ let
sha256 = "0vzmlp83vnk4njcfkn03jcc1vkg2rf12zf5kj3p3a373xr4ds1zn";
};

python = python2.withPackages (pp: with pp; [
python = python3.withPackages (pp: with pp; [
nototools
]);
in
@@ -118,5 +118,6 @@ stdenv.mkDerivation rec {
## Non-artwork is MIT
license = with licenses; [ asl20 ofl cc-by-40 mit ];
maintainers = with maintainers; [ jtojnar ];
broken = true; # Can't be build using the current Python 3 version of nototools
};
}
Loading