2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchurl }:
|
|
|
|
|
|
|
|
let
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "2.2";
|
2021-02-05 17:12:51 +00:00
|
|
|
in fetchurl rec {
|
|
|
|
name = "scientifica-${version}";
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
url = "https://github.com/NerdyPepper/scientifica/releases/download/v${version}/scientifica.tar";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
downloadToTemp = true;
|
|
|
|
|
|
|
|
recursiveHash = true;
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
sha256 = "sha256-mkZnuW+CB20t6MEpEeQR1CWkIUtqgVwrKN4sezQRaB4=";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
postFetch = ''
|
2021-03-09 03:18:52 +00:00
|
|
|
tar xf $downloadedFile
|
2021-02-05 17:12:51 +00:00
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
|
|
mkdir -p $out/share/fonts/misc
|
2021-03-09 03:18:52 +00:00
|
|
|
install scientifica/ttf/*.ttf $out/share/fonts/truetype
|
|
|
|
install scientifica/otb/*.otb $out/share/fonts/misc
|
|
|
|
install scientifica/bdf/*.bdf $out/share/fonts/misc
|
2021-02-05 17:12:51 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|