2019-05-13 03:55:32 +02:00
|
|
|
{ lib, fetchzip }:
|
2019-01-31 01:27:24 +01:00
|
|
|
|
|
|
|
let
|
2020-09-29 01:00:00 +02:00
|
|
|
version = "0.51";
|
2019-08-13 23:52:01 +02:00
|
|
|
in fetchzip {
|
2019-01-31 01:27:24 +01:00
|
|
|
name = "sudo-font-${version}";
|
2020-09-29 01:00:00 +02:00
|
|
|
url = "https://github.com/jenskutilek/sudo-font/releases/download/v${version}/sudo.zip";
|
|
|
|
sha256 = "19m132183w5hrc5qvlb6cj38hir2302cqiljlfc72qdlb8al6fwi";
|
2019-01-31 01:27:24 +01:00
|
|
|
|
|
|
|
postFetch = ''
|
2020-02-22 02:00:00 +01:00
|
|
|
mkdir -p $out/share/fonts/
|
2019-01-31 01:27:24 +01:00
|
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype/
|
2020-02-22 02:00:00 +01:00
|
|
|
unzip -j $downloadedFile \*.woff -d $out/share/fonts/woff/
|
|
|
|
unzip -j $downloadedFile \*.woff2 -d $out/share/fonts/woff2/
|
2019-01-31 01:27:24 +01:00
|
|
|
'';
|
2019-05-13 03:55:32 +02:00
|
|
|
meta = with lib; {
|
2019-01-31 01:27:24 +01:00
|
|
|
description = "Font for programmers and command line users";
|
2020-02-22 02:00:00 +01:00
|
|
|
homepage = "https://www.kutilek.de/sudo-font/";
|
2019-01-31 01:27:24 +01:00
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|