7f5b839524
`selectVersion ./foo "bar"' instead of `import ./foo/bar.nix'. * Replaced `with args' with formal function arguments in several packages. * Renamed several files to `default.nix'. As a general rule, version numbers should only be included in the filename when there is a reason to keep multiple versions of a package in Nixpkgs. Otherwise, it just makes it harder to update the package. svn path=/nixpkgs/trunk/; revision=18403
23 lines
492 B
Nix
23 lines
492 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "lmodern-1.010x";
|
|
|
|
src = fetchurl {
|
|
url = http://ftp.de.debian.org/debian/pool/main/l/lmodern/lmodern_1.010x.orig.tar.gz;
|
|
sha256 = "0nwxj1ng7rvnp16jxcs25hbc5in65mdk4a3g3rlaq91i5qpq7mxj";
|
|
};
|
|
|
|
installPhase = ''
|
|
ensureDir $out/share/texmf/
|
|
ensureDir $out/share/fonts/
|
|
|
|
cp -r ./* $out/share/texmf/
|
|
cp -r fonts/{opentype,type1} $out/share/fonts/
|
|
'';
|
|
|
|
meta = {
|
|
description = "Latin Modern font";
|
|
};
|
|
}
|
|
|