3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/scientifica/default.nix
2021-10-02 23:44:04 +08:00

33 lines
880 B
Nix

{ lib, fetchurl }:
let
version = "2.3";
in fetchurl rec {
name = "scientifica-${version}";
url = "https://github.com/NerdyPepper/scientifica/releases/download/v${version}/scientifica.tar";
downloadToTemp = true;
recursiveHash = true;
sha256 = "sha256-pVWkj/2lFpmWk0PPDrIMU4Gey7/m/9tzUsuD3ZDUAdc=";
postFetch = ''
tar xf $downloadedFile
mkdir -p $out/share/fonts/truetype
mkdir -p $out/share/fonts/misc
install scientifica/ttf/*.ttf $out/share/fonts/truetype
install scientifica/otb/*.otb $out/share/fonts/misc
install 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 ];
};
}