twemoji: apply nixpkgs changes

inky
Elnu 2 years ago
parent fb3b5f310d
commit e26ba26042

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl }: { pkgs, lib, stdenv }:
let let
_fedrel = "2.fc37"; _fedrel = "2.fc37";
@ -7,15 +7,24 @@ stdenv.mkDerivation rec {
pname = "ttf-twemoji"; pname = "ttf-twemoji";
version = "14.0.2"; version = "14.0.2";
src = builtins.fetchTarball { src = pkgs.fetchurl {
url = "https://kojipkgs.fedoraproject.org/packages/twitter-twemoji-fonts/${version}/${_fedrel}/noarch/twitter-twemoji-fonts-${version}-${_fedrel}.noarch.rpm"; url = "https://kojipkgs.fedoraproject.org/packages/twitter-twemoji-fonts/${version}/${_fedrel}/noarch/twitter-twemoji-fonts-${version}-${_fedrel}.noarch.rpm";
sha256 = "sha256:11ay3jc4qd3z1mnijnwdns4bi22y204lva7l7vkazybx1nzrwscl"; hash = "sha256-GK7JZzHs/9gSViSTPPv3V/LFfdGzj4F50VO5HSqs0VE=";
}; };
nativeBuildInputs = with pkgs; [
rpm
cpio
];
unpackPhase = ''
rpm2cpio $src | cpio -i --make-directories
'';
dontBuild = true; dontBuild = true;
installPhase = '' installPhase = ''
install -Dm755 share/fonts/twemoji/Twemoji.ttf $out/share/fonts/truetype/Twemoji.ttf install -Dm755 usr/share/fonts/twemoji/Twemoji.ttf $out/share/fonts/truetype/Twemoji.ttf
''; '';
meta = with lib; { meta = with lib; {

Loading…
Cancel
Save