nixpkgs/pkgs/data/fonts/cm-unicode/default.nix
volth c9eb44eab3 data/fonts: cleanup
* make font derivations fixed-output where applicable
 * fix dead links
 * `stdenv.lib` -> `lib` where `stdenv` is not involved
 * remove `meta.platforms = [ unix ]` and `meta.platforms = [ linux ]` because the restriction has no sense for data packages
2019-05-13 06:03:31 +00:00

25 lines
701 B
Nix

{ lib, 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
install -m444 -Dt $out/share/fonts/opentype *.otf
install -m444 -Dt $out/share/doc/${name} README FontLog.txt
'';
sha256 = "1rzz7yhqq3lljyqxbg46jfzfd09qgpgx865lijr4sgc94riy1ypn";
meta = with 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;
};
}