1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/data/fonts/scientifica/default.nix

33 lines
880 B
Nix
Raw Normal View History

2021-02-01 14:26:37 +00:00
{ lib, fetchurl }:
let
2021-03-07 17:29:14 +00:00
version = "2.2";
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-03-07 17:29:14 +00:00
sha256 = "sha256-mkZnuW+CB20t6MEpEeQR1CWkIUtqgVwrKN4sezQRaB4=";
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 ];
};
}