Merge pull request #123852 from marsam/update-sudo-font

This commit is contained in:
Sandro 2021-05-22 17:04:53 +02:00 committed by GitHub
commit 7f9269e241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,21 +1,20 @@
{ lib, fetchzip }:
let
version = "0.52";
version = "0.53.1";
in fetchzip {
name = "sudo-font-${version}";
url = "https://github.com/jenskutilek/sudo-font/releases/download/v${version}/sudo.zip";
sha256 = "1j5p7apclyy5gfj2kklmgcncdsp5iik4gd6mdl29anzijknd0kja";
url = "https://github.com/jenskutilek/sudo-font/raw/v${version}/dist/sudo.zip";
sha256 = "1jil43j9ngz4422m76x67bafvxz75rncqqi57xd7fdxgcff7i8dp";
postFetch = ''
mkdir -p $out/share/fonts/
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype/
unzip -j $downloadedFile \*.woff -d $out/share/fonts/woff/
unzip -j $downloadedFile \*.woff2 -d $out/share/fonts/woff2/
'';
meta = with lib; {
description = "Font for programmers and command line users";
homepage = "https://www.kutilek.de/sudo-font/";
changelog = "https://github.com/jenskutilek/sudo-font/raw/v${version}/sudo/FONTLOG.txt";
license = licenses.ofl;
maintainers = with maintainers; [ dtzWill ];
platforms = platforms.all;