1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00
nixpkgs/pkgs/data/fonts/sudo/default.nix

25 lines
743 B
Nix
Raw Normal View History

{ lib, fetchzip }:
2019-01-31 00:27:24 +00:00
let
version = "0.50";
2019-08-13 22:52:01 +01:00
in fetchzip {
2019-01-31 00:27:24 +00:00
name = "sudo-font-${version}";
url = "https://github.com/jenskutilek/sudo-font/raw/v${version}/dist/sudo.zip";
sha256 = "1mk81r9p7ks6av3rj06c6n9vx2qv2hwx6zfbc2mk1filxjirk1ll";
2019-01-31 00:27:24 +00:00
postFetch = ''
2020-02-22 01:00:00 +00:00
mkdir -p $out/share/fonts/
2019-01-31 00:27:24 +00:00
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype/
2020-02-22 01:00:00 +00:00
unzip -j $downloadedFile \*.woff -d $out/share/fonts/woff/
unzip -j $downloadedFile \*.woff2 -d $out/share/fonts/woff2/
2019-01-31 00:27:24 +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/";
2019-01-31 00:27:24 +00:00
license = licenses.ofl;
maintainers = with maintainers; [ dtzWill ];
platforms = platforms.all;
};
}