2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchzip }:
|
|
|
|
|
|
|
|
let
|
2020-11-03 02:18:15 +00:00
|
|
|
version = "0.52";
|
2020-04-24 23:36:52 +00:00
|
|
|
in fetchzip {
|
|
|
|
name = "sudo-font-${version}";
|
2020-10-07 09:15:18 +00:00
|
|
|
url = "https://github.com/jenskutilek/sudo-font/releases/download/v${version}/sudo.zip";
|
2020-11-03 02:18:15 +00:00
|
|
|
sha256 = "1j5p7apclyy5gfj2kklmgcncdsp5iik4gd6mdl29anzijknd0kja";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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/";
|
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|