mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
28 lines
553 B
Nix
28 lines
553 B
Nix
{ lib, stdenvNoCC, fetchurl }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "lmodern";
|
|
version = "2.005";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://debian/pool/main/l/${pname}/${pname}_${version}.orig.tar.gz";
|
|
hash = "sha256-xlUuZt6rjW0pX4t6PKWAHkkv3PisGCj7ZwatZPAUNxk=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/texmf-dist/
|
|
mkdir -p $out/share/fonts/
|
|
|
|
cp -r * $out/texmf-dist/
|
|
cp -r fonts/{opentype,type1} $out/share/fonts/
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Latin Modern font";
|
|
};
|
|
}
|