From fe40c897dbf6ed5ccad7c1cca5c1c79f7713c3b8 Mon Sep 17 00:00:00 2001 From: Leon Vatthauer Date: Mon, 20 Jan 2025 22:57:08 +0100 Subject: [PATCH] add berkeley-mono package --- common/berkeley-mono.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 common/berkeley-mono.nix diff --git a/common/berkeley-mono.nix b/common/berkeley-mono.nix new file mode 100644 index 0000000..41bbbf5 --- /dev/null +++ b/common/berkeley-mono.nix @@ -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 + ''; +}