about summary refs log tree commit diff
path: root/modules/fonts/tx-02.nix
blob: 53bceb6ae77b6ab090ba3fabcb9e4fd3808382a9 (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
28
29
30
31
32
33
34
35
{
  lib,
  requireFile,
  unzip,
  stdenvNoCC,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "tx-02";
  version = "1";

  src = ../../secrets/tx-02.zip;

  outputs = [
    "out"
  ];

  nativeBuildInputs = [
    unzip
  ];

  unpackPhase = ''
    unzip $src
  '';

  installPhase = ''
    install -m444 -Dt $out/share/fonts/opentype/tx-02 TX-02/*.otf
  '';

  meta = {
    description = "Berkeley Mono TX-02 Typeface";
    homepage = "https://berkeleygraphics.com/typefaces/berkeley-mono";
    license = lib.licenses.unfree;
    platforms = lib.platforms.all;
  };
})