about summary refs log tree commit diff
path: root/pkgs/data/fonts/lmodern/default.nix
blob: f567e5ed7557558affa0d1a4856754eca180646c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ 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";
  };
}