diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-07-18 04:20:00 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2020-07-18 04:20:00 -0500 |
commit | 4703d4da7e8fdef9d68736ec8d6fed83e2c4d23b (patch) | |
tree | 435eeae4a3c0a3d889c71e16685f2c48b0406e63 /pkgs/data/fonts | |
parent | ceb1527a6192764651929f97a7f502a08a496b49 (diff) |
_3270font: init at 2.0.4
Diffstat (limited to 'pkgs/data/fonts')
-rw-r--r-- | pkgs/data/fonts/3270font/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/data/fonts/3270font/default.nix b/pkgs/data/fonts/3270font/default.nix new file mode 100644 index 0000000000000..3338b77841596 --- /dev/null +++ b/pkgs/data/fonts/3270font/default.nix @@ -0,0 +1,26 @@ +{ lib, fetchzip }: +let + version = "2.0.4"; +in +fetchzip rec { + name = "3270font-${version}"; + + url = "https://github.com/rbanffy/3270font/releases/download/v${version}/3270_fonts_ece94f6.zip"; + + sha256 = "04q7dnrlq5hm30iibh3jafb33m5lwsgb3g9n9i188sg02ydkrsl9"; + + postFetch = '' + mkdir -p $out/share/fonts/ + unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype + unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype + unzip -j $downloadedFile \*.woff -d $out/share/fonts/woff + ''; + + meta = with lib; { + description = "Monospaced font based on IBM 3270 terminals"; + homepage = "https://github.com/rbanffy/3270font"; + license = [ licenses.bsd3 licenses.ofl ]; + maintainers = [ maintainers.marsam ]; + platforms = platforms.all; + }; +} |