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: 702c7452414f
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 04be5b891198
Choose a head ref
  • 4 commits
  • 4 files changed
  • 1 contributor

Commits on Oct 29, 2019

  1. Copy the full SHA
    accec23 View commit details
  2. 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
  3. 3
    Copy the full SHA
    980d658 View commit details
  4. Copy the full SHA
    04be5b8 View commit details
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
];
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
};
}