diff options
author | fortuneteller2k <lythe1107@gmail.com> | 2021-02-01 22:26:37 +0800 |
---|---|---|
committer | fortuneteller2k <lythe1107@gmail.com> | 2021-02-02 00:14:50 +0800 |
commit | 1b0a3444caa160202ebe8d19e56ae4b24e7f77f1 (patch) | |
tree | 78a5daf59a6d406f66e70ea83b482d6a0f199054 | |
parent | 26187c65b637c2ee2a27674a5585af8106878736 (diff) |
scientifica: init at v2.1
-rw-r--r-- | pkgs/data/fonts/scientifica/default.nix | 32 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/data/fonts/scientifica/default.nix b/pkgs/data/fonts/scientifica/default.nix new file mode 100644 index 0000000000000..2a2b237d5275e --- /dev/null +++ b/pkgs/data/fonts/scientifica/default.nix @@ -0,0 +1,32 @@ +{ lib, fetchurl }: + +let + version = "2.1"; +in fetchurl rec { + name = "scientifica-${version}"; + + url = "https://github.com/NerdyPepper/scientifica/releases/download/v${version}/scientifica-v${version}.tar"; + + downloadToTemp = true; + + recursiveHash = true; + + sha256 = "081faa48d6g86pacmgjqa96in72rjldavnwxq6bdq2br33h3qwrz"; + + postFetch = '' + tar xvf $downloadedFile + mkdir -p $out/share/fonts/truetype + mkdir -p $out/share/fonts/misc + cp scientifica/ttf/*.ttf $out/share/fonts/truetype + cp scientifica/otb/*.otb $out/share/fonts/misc + cp scientifica/bdf/*.bdf $out/share/fonts/misc + ''; + + meta = with lib; { + description = "Tall and condensed bitmap font for geeks"; + homepage = "https://github.com/NerdyPepper/scientifica"; + license = licenses.ofl; + platforms = platforms.all; + maintainers = with maintainers; [ fortuneteller2k ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fb49cde2e6bb4..6051e24dfadad 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20726,6 +20726,8 @@ in inter-ui = callPackage ../data/fonts/inter-ui { }; inter = callPackage ../data/fonts/inter { }; + scientifica = callPackage ../data/fonts/scientifica { }; + siji = callPackage ../data/fonts/siji { inherit (buildPackages.xorg) mkfontscale fonttosfnt; }; |