add berkeley-mono package

This commit is contained in:
Leon Vatthauer 2025-01-20 22:57:08 +01:00
parent c1ebfbd5cb
commit fe40c897db
Signed by: leonv
SSH key fingerprint: SHA256:G4+ddwoZmhLPRB1agvXzZMXIzkVJ36dUYZXf5NxT+u8

24
common/berkeley-mono.nix Normal file
View file

@ -0,0 +1,24 @@
# make a derivation for berkeley-mono font installation
{ pkgs }:
pkgs.stdenv.mkDerivation {
pname = "berkeley-mono";
version = "1.009";
src = ../nix-secrets/resources/berkeley-mono/berkeley-mono-patched.zip;
unpackPhase = ''
runHook preUnpack
${pkgs.unzip}/bin/unzip $src
runHook postUnpack
'';
installPhase = ''
runHook preInstall
install -Dm644 berkeley-mono-patched/*.ttf -t $out/share/fonts/truetype
runHook postInstall
'';
}