add berkeley-mono package
This commit is contained in:
parent
c1ebfbd5cb
commit
fe40c897db
1 changed files with 24 additions and 0 deletions
24
common/berkeley-mono.nix
Normal file
24
common/berkeley-mono.nix
Normal 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
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue