blob: 91132642b2a7d77c28a572f9f5accd43a7832164 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "paratype-pt-mono";
version = "2.005";
src = fetchzip {
urls = [
"https://company.paratype.com/system/attachments/631/original/ptmono.zip"
"http://rus.paratype.ru/system/attachments/631/original/ptmono.zip"
];
stripRoot = false;
hash = "sha256-mfDAu/KGelC6wZpUCrUrLVZKo+XiKNBqcpMI8tH2tMw=";
};
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 = "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 ];
};
}
|