nixpkgs/pkgs/data/fonts/lmodern/default.nix
Eelco Dolstra c556a6ea46 * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2012-01-18 20:16:00 +00:00

26 lines
499 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation {
name = "lmodern-2.004.1";
src = fetchurl {
url = mirror://debian/pool/main/l/lmodern/lmodern_2.004.1.orig.tar.gz;
sha256 = "1bvlf8p39667q58pvyfzy3yl0mylf0ak96flwp8vj01vqbi3rfaz";
};
installPhase = ''
mkdir -p $out/texmf/
mkdir -p $out/share/fonts/
cp -r ./* $out/texmf/
cp -r fonts/{opentype,type1} $out/share/fonts/
ln -s $out/texmf* $out/share/
'';
meta = {
description = "Latin Modern font";
};
}