parent
b8842cf24b
commit
5f05f896c7
@ -1,37 +0,0 @@
|
|||||||
{ pkgs, lib, stdenv }:
|
|
||||||
|
|
||||||
let
|
|
||||||
_fedrel = "2.fc37";
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "ttf-twemoji";
|
|
||||||
version = "14.0.2";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "https://kojipkgs.fedoraproject.org/packages/twitter-twemoji-fonts/${version}/${_fedrel}/noarch/twitter-twemoji-fonts-${version}-${_fedrel}.noarch.rpm";
|
|
||||||
hash = "sha256-GK7JZzHs/9gSViSTPPv3V/LFfdGzj4F50VO5HSqs0VE=";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
|
||||||
rpm
|
|
||||||
cpio
|
|
||||||
];
|
|
||||||
|
|
||||||
unpackPhase = ''
|
|
||||||
rpm2cpio $src | cpio -i --make-directories
|
|
||||||
'';
|
|
||||||
|
|
||||||
dontBuild = true;
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
install -Dm755 usr/share/fonts/twemoji/Twemoji.ttf $out/share/fonts/truetype/Twemoji.ttf
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Twitter Color Emoji for everyone.";
|
|
||||||
homepage = "https://github.com/twitter/twemoji";
|
|
||||||
license = with licenses; [ cc-by-40 mit ];
|
|
||||||
maintainers = with maintainers; [ elnudev ];
|
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in new issue