nixpkgs/pkgs/data/fonts/cm-unicode/default.nix
2017-08-11 14:26:03 +00:00

28 lines
760 B
Nix

{ stdenv, fetchzip }:
let
version = "0.7.0";
in fetchzip rec {
name = "cm-unicode-${version}";
url = "mirror://sourceforge/cm-unicode/cm-unicode/${version}/${name}-otf.tar.xz";
postFetch = ''
tar -xJvf $downloadedFile --strip-components=1
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}
'';
sha256 = "1rzz7yhqq3lljyqxbg46jfzfd09qgpgx865lijr4sgc94riy1ypn";
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;
};
}