diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2015-10-15 21:56:58 +0300 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2015-10-15 21:57:12 +0300 |
commit | 60be0292504c965c4065748c1e9080a200459f24 (patch) | |
tree | f045aa3163a57a4a190ccf2b3d0c38e6d7cc64f0 /pkgs/data/fonts/paratype-pt/sans.nix | |
parent | b1edc7909a116bf48ea95c41c6702941cf62a792 (diff) | |
download | nixpkgs-60be0292504c965c4065748c1e9080a200459f24.tar nixpkgs-60be0292504c965c4065748c1e9080a200459f24.tar.gz nixpkgs-60be0292504c965c4065748c1e9080a200459f24.tar.bz2 nixpkgs-60be0292504c965c4065748c1e9080a200459f24.tar.lz nixpkgs-60be0292504c965c4065748c1e9080a200459f24.tar.xz nixpkgs-60be0292504c965c4065748c1e9080a200459f24.tar.zst nixpkgs-60be0292504c965c4065748c1e9080a200459f24.zip |
Paratype PT: init
Diffstat (limited to 'pkgs/data/fonts/paratype-pt/sans.nix')
-rw-r--r-- | pkgs/data/fonts/paratype-pt/sans.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/data/fonts/paratype-pt/sans.nix b/pkgs/data/fonts/paratype-pt/sans.nix new file mode 100644 index 00000000000..2958611e474 --- /dev/null +++ b/pkgs/data/fonts/paratype-pt/sans.nix @@ -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 ]; + }; +} + |