twitter-color-emoji: build with python3

This can now be marked as un-broken.
This commit is contained in:
worldofpeace 2019-10-29 17:12:10 -04:00 committed by Frederik Rietdijk
parent d9642e006f
commit 4f8197bcc0

View file

@ -4,12 +4,13 @@
{ stdenv { stdenv
, fetchFromGitHub , fetchFromGitHub
, cairo , cairo
, imagemagick , graphicsmagick
, pkg-config , pkg-config
, pngquant , pngquant
, python3 , python3
, which , which
, zopfli , zopfli
, fetchpatch
}: }:
let let
@ -55,7 +56,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ nativeBuildInputs = [
cairo cairo
imagemagick graphicsmagick
pkg-config pkg-config
pngquant pngquant
python python
@ -63,6 +64,22 @@ stdenv.mkDerivation rec {
zopfli zopfli
]; ];
patches = [
# Port to python3
(fetchpatch {
url = "https://src.fedoraproject.org/rpms/twitter-twemoji-fonts/raw/3bc176c10ced2824fe03da5ff561e22a36bf8ccd/f/noto-emoji-port-to-python3.patch";
sha256 = "1b91abd050phxlxq7322i74nkx16fkhpw14yh97r2j4c7fqarr2q";
})
(fetchpatch {
url = "https://src.fedoraproject.org/rpms/twitter-twemoji-fonts/raw/3bc176c10ced2824fe03da5ff561e22a36bf8ccd/f/noto-emoji-python3.patch";
sha256 = "0mw2c748izb6h9a19jwc0qxlb6l1kj6k8gc345lpf7lfcxfl7l59";
})
(fetchpatch {
url = "https://src.fedoraproject.org/rpms/twitter-twemoji-fonts/raw/3bc176c10ced2824fe03da5ff561e22a36bf8ccd/f/noto-emoji-use-gm.patch";
sha256 = "0yfmfzaaiq5163c06172g4r734aysiqyv1s28siv642vqzsqh4i2";
})
];
postPatch = let postPatch = let
templateSubstitutions = stdenv.lib.concatStringsSep "; " [ templateSubstitutions = stdenv.lib.concatStringsSep "; " [
''s#Noto Color Emoji#Twitter Color Emoji#'' ''s#Noto Color Emoji#Twitter Color Emoji#''
@ -118,6 +135,5 @@ stdenv.mkDerivation rec {
## Non-artwork is MIT ## Non-artwork is MIT
license = with licenses; [ asl20 ofl cc-by-40 mit ]; license = with licenses; [ asl20 ofl cc-by-40 mit ];
maintainers = with maintainers; [ jtojnar ]; maintainers = with maintainers; [ jtojnar ];
broken = true; # Can't be build using the current Python 3 version of nototools
}; };
} }