2022-09-29 07:52:55 +00:00
|
|
|
# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
|
2019-05-13 01:55:32 +00:00
|
|
|
{ lib, fetchzip }:
|
2019-01-31 00:27:24 +00:00
|
|
|
|
|
|
|
let
|
2022-04-09 21:24:55 +00:00
|
|
|
version = "0.64";
|
2022-09-29 07:52:55 +00:00
|
|
|
in (fetchzip {
|
2019-01-31 00:27:24 +00:00
|
|
|
name = "sudo-font-${version}";
|
2021-06-23 04:20:00 +00:00
|
|
|
url = "https://github.com/jenskutilek/sudo-font/releases/download/v${version}/sudo.zip";
|
2022-04-09 21:24:55 +00:00
|
|
|
sha256 = "sha256-ewLTeIVY76eq5mHTnjIsJ5Q2CMuBqXJzxvjZTONPsr8=";
|
2019-01-31 00:27:24 +00:00
|
|
|
|
2019-05-13 01:55:32 +00:00
|
|
|
meta = with lib; {
|
2019-01-31 00:27:24 +00:00
|
|
|
description = "Font for programmers and command line users";
|
2020-02-22 01:00:00 +00:00
|
|
|
homepage = "https://www.kutilek.de/sudo-font/";
|
2021-05-21 00:58:37 +00:00
|
|
|
changelog = "https://github.com/jenskutilek/sudo-font/raw/v${version}/sudo/FONTLOG.txt";
|
2019-01-31 00:27:24 +00:00
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2022-09-29 07:52:55 +00:00
|
|
|
}).overrideAttrs (_: {
|
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts/
|
|
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype/
|
|
|
|
'';
|
|
|
|
})
|