3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/lmodern/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

27 lines
526 B
Nix

{ lib, fetchzip }:
fetchzip {
name = "lmodern-2.004.5";
url = mirror://debian/pool/main/l/lmodern/lmodern_2.004.5.orig.tar.gz;
postFetch = ''
tar xzvf $downloadedFile
mkdir -p $out/texmf-dist/
mkdir -p $out/share/fonts/
cp -r lmodern-2.004.5/* $out/texmf-dist/
cp -r lmodern-2.004.5/fonts/{opentype,type1} $out/share/fonts/
ln -s -r $out/texmf* $out/share/
'';
sha256 = "11f10qnp8a435lhh19zc2znlf9q4isynmvjmvr63g5n5fhvhc192";
meta = {
description = "Latin Modern font";
};
}