38 lines
969 B
Nix
38 lines
969 B
Nix
{ lib, stdenvNoCC, fetchzip }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "paratype-pt-sans";
|
|
version = "2.005";
|
|
|
|
src = fetchzip {
|
|
urls = [
|
|
"https://company.paratype.com/system/attachments/629/original/ptsans.zip"
|
|
"http://rus.paratype.ru/system/attachments/629/original/ptsans.zip"
|
|
];
|
|
stripRoot = false;
|
|
hash = "sha256-34TqYXtWzkAstaGQBhJy+/hVk5tg6ZvHZ/kvUroWVLs=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm644 *.ttf -t $out/share/fonts/truetype
|
|
install -Dm644 *.txt -t $out/share/doc/paratype
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "http://www.paratype.ru/public/";
|
|
description = "An open Paratype font";
|
|
|
|
license = "Open Paratype license";
|
|
# no commercial distribution of the font on its own
|
|
# must rename on modification
|
|
# http://www.paratype.ru/public/pt_openlicense.asp
|
|
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ raskin ];
|
|
};
|
|
}
|