From ff0434ecfe02220815c694df55875e7e862391d4 Mon Sep 17 00:00:00 2001 From: 06kellyjac Date: Wed, 3 Nov 2021 22:09:47 +0000 Subject: [PATCH] noto-fonts-emoji-blob-bin: 2019-06-14-Emoji-12 -> 14.0.1 Also just use fetchurl --- pkgs/data/fonts/noto-fonts/default.nix | 43 +++++++++++++------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/pkgs/data/fonts/noto-fonts/default.nix b/pkgs/data/fonts/noto-fonts/default.nix index 27e414b12e2a..bb82a33abef8 100644 --- a/pkgs/data/fonts/noto-fonts/default.nix +++ b/pkgs/data/fonts/noto-fonts/default.nix @@ -170,27 +170,28 @@ in }; }; - noto-fonts-emoji-blob-bin = stdenv.mkDerivation rec { - pname = "noto-fonts-emoji-blob-bin"; - version = "2019-06-14-Emoji-12"; - - src = fetchurl { + noto-fonts-emoji-blob-bin = + let + pname = "noto-fonts-emoji-blob-bin"; + version = "14.0.1"; + in + fetchurl { + name = "${pname}-${version}"; url = "https://github.com/C1710/blobmoji/releases/download/v${version}/Blobmoji.ttf"; - sha256 = "0snvymglmvpnfgsriw2cnnqm0f4llav0jvzir6mpd17mqqhhabbh"; + sha256 = "sha256-wSH9kRJ8y2i5ZDqzeT96dJcEJnHDSpU8bOhmxaT+UCg="; + + downloadToTemp = true; + recursiveHash = true; + postFetch = '' + install -Dm 444 $downloadedFile $out/share/fonts/blobmoji/Blobmoji.ttf + ''; + + meta = with lib; { + description = "Noto Emoji with extended Blob support"; + homepage = "https://github.com/C1710/blobmoji"; + license = with licenses; [ ofl asl20 ]; + platforms = platforms.all; + maintainers = with maintainers; [ rileyinman jk ]; + }; }; - - dontUnpack = true; - - installPhase = '' - install -D $src $out/share/fonts/blobmoji/Blobmoji.ttf - ''; - - meta = with lib; { - description = "Noto Emoji with extended Blob support"; - homepage = "https://github.com/C1710/blobmoji"; - license = with licenses; [ ofl asl20 ]; - platforms = platforms.all; - maintainers = with maintainers; [ rileyinman ]; - }; - }; }