Paratype PT: init

This commit is contained in:
Michael Raskin 2015-10-15 21:56:58 +03:00
parent b1edc7909a
commit 60be029250
4 changed files with 112 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "paratype-pt-mono";
src = fetchurl rec {
url = "http://www.paratype.ru/uni/public/PTMono.zip";
sha256 = "1wqaai7d6xh552vvr5svch07kjn1q89ab5jimi2z0sbd0rbi86vl";
};
buildInputs = [unzip];
phases = "unpackPhase installPhase";
sourceRoot = ".";
installPhase = ''
mkdir -p $out/share/fonts/truetype
mkdir -p $out/share/doc/paratype
cp *.ttf $out/share/fonts/truetype
cp *.txt $out/share/doc/paratype
'';
meta = with stdenv.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 ];
};
}

View File

@ -0,0 +1,36 @@
{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "paratype-pt-sane";
src = fetchurl rec {
url = "http://www.paratype.ru/uni/public/PTSans.zip";
sha256 = "1j9gkbqyhxx8pih5agr9nl8vbpsfr9vdqmhx73ji3isahqm3bhv5";
};
buildInputs = [unzip];
phases = "unpackPhase installPhase";
sourceRoot = ".";
installPhase = ''
mkdir -p $out/share/fonts/truetype
mkdir -p $out/share/doc/paratype
cp *.ttf $out/share/fonts/truetype
cp *.txt $out/share/doc/paratype
'';
meta = with stdenv.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 ];
};
}

View File

@ -0,0 +1,36 @@
{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "paratype-pt-serif";
src = fetchurl rec {
url = "http://www.paratype.ru/uni/public/PTSerif.zip";
sha256 = "0x3l58c1rvwmh83bmmgqwwbw9av1mvvq68sw2hdkyyihjvamyvvs";
};
buildInputs = [unzip];
phases = "unpackPhase installPhase";
sourceRoot = ".";
installPhase = ''
mkdir -p $out/share/fonts/truetype
mkdir -p $out/share/doc/paratype
cp *.ttf $out/share/fonts/truetype
cp *.txt $out/share/doc/paratype
'';
meta = with stdenv.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 ];
};
}

View File

@ -10588,6 +10588,10 @@ let
pecita = callPackage ../data/fonts/pecita {};
paratype-pt-mono = callPackage ../data/fonts/paratype-pt/mono.nix {};
paratype-pt-sans = callPackage ../data/fonts/paratype-pt/sans.nix {};
paratype-pt-serif = callPackage ../data/fonts/paratype-pt/serif.nix {};
poly = callPackage ../data/fonts/poly { };
posix_man_pages = callPackage ../data/documentation/man-pages-posix { };