Add NixOS config
This commit is contained in:
commit
954c25c444
6 changed files with 556 additions and 0 deletions
24
nixos/packages/berkeley-mono-typeface.nix
Normal file
24
nixos/packages/berkeley-mono-typeface.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
# make a derivation for berkeley-mono font installation
|
||||
{ pkgs }:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pname = "berkeley-mono-typeface";
|
||||
version = "2.002";
|
||||
|
||||
src = "../assets/TX-02 2.002.zip";
|
||||
|
||||
unpackPhase = ''
|
||||
runHook preUnpack
|
||||
${pkgs.unzip}/bin/unzip $src
|
||||
|
||||
runHook postUnpack
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm644 "TX-02 2.002/*.ttf" -t $out/share/fonts/truetype
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue