Merge pull request #111569 from fortuneteller2k/add-scientifica-font

This commit is contained in:
Sandro 2021-02-04 18:40:06 +01:00 committed by GitHub
commit 45b2a656fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 0 deletions

View file

@ -3159,6 +3159,12 @@
githubId = 92793;
name = "Friedrich von Never";
};
fortuneteller2k = {
email = "lythe1107@gmail.com";
github = "fortuneteller2k";
githubId = 20619776;
name = "fortuneteller2k";
};
fpletz = {
email = "fpletz@fnordicwalking.de";
github = "fpletz";

View file

@ -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 ];
};
}

View file

@ -20764,6 +20764,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; };