3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/cm-unicode/default.nix
Robert Helgesson d7f36310d0 Remove use of builderDefsPackage in font packages.
With this change they now use `stdenv.mkDerivation` instead. Also some
minor cleanups such as URL fixes, adding version numbers, adding
descriptions, etc.
2015-06-12 19:43:18 +02:00

29 lines
789 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "cm-unicode-${version}";
version = "0.7.0";
src = fetchurl {
url = "mirror://sourceforge/cm-unicode/cm-unicode/${version}/${name}-otf.tar.xz";
sha256 = "0a0w9qm9g8qz2xh3lr61bj1ymqslqsvk4w2ybc3v2qa89nz7x2jl";
};
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mkdir -p $out/share/fonts/opentype
mkdir -p $out/share/doc/${name}
cp -v *.otf $out/share/fonts/opentype/
cp -v README FontLog.txt $out/share/doc/${name}
'';
meta = with stdenv.lib; {
homepage = http://canopus.iacp.dvo.ru/~panov/cm-unicode/;
description = "Computer Modern Unicode fonts";
maintainers = with maintainers; [ raskin rycee ];
license = licenses.ofl;
platforms = platforms.all;
};
}