2021-02-01 14:26:37 +00:00
|
|
|
{ lib, fetchurl }:
|
|
|
|
|
|
|
|
let
|
2021-10-02 16:44:04 +01:00
|
|
|
version = "2.3";
|
2021-02-01 14:26:37 +00:00
|
|
|
in fetchurl rec {
|
|
|
|
name = "scientifica-${version}";
|
|
|
|
|
2021-03-07 17:29:14 +00:00
|
|
|
url = "https://github.com/NerdyPepper/scientifica/releases/download/v${version}/scientifica.tar";
|
2021-02-01 14:26:37 +00:00
|
|
|
|
|
|
|
downloadToTemp = true;
|
|
|
|
|
|
|
|
recursiveHash = true;
|
|
|
|
|
2021-10-02 16:44:04 +01:00
|
|
|
sha256 = "sha256-pVWkj/2lFpmWk0PPDrIMU4Gey7/m/9tzUsuD3ZDUAdc=";
|
2021-02-01 14:26:37 +00:00
|
|
|
|
|
|
|
postFetch = ''
|
2021-03-07 17:29:14 +00:00
|
|
|
tar xf $downloadedFile
|
2021-02-01 14:26:37 +00:00
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
|
|
mkdir -p $out/share/fonts/misc
|
2021-03-07 17:29:14 +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-01 14:26:37 +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 ];
|
|
|
|
};
|
|
|
|
}
|