me like nix
1{ pkgs }:
2
3pkgs.stdenv.mkDerivation {
4 pname = "berkeley-mono-typeface";
5 version = "2.003";
6
7 src = ./patched;
8
9 dontUnpack = true;
10
11 installPhase = ''
12 runHook preInstall
13
14 install -Dm644 $src/*.ttf -t $out/share/fonts/truetype
15 runHook postInstall
16 '';
17
18 # Add fontconfig as a build input
19 nativeBuildInputs = [ pkgs.fontconfig ];
20}