char/flake
nixos flake
git clone https://git.t4t.associates/char/flake
8023ad3
main
1{ 2stdenv , 3requireFile , 4unzip , 5lib , 6} : 7stdenv . mkDerivation { 8pname = "berkeley-mono" ; 9version = "1.0" ; 10 11src = 12let 13name = "berkeley-mono-typeface.zip" ; 14in 15requireFile { 16name = name ; 17url = "https://berkeleygraphics.com/typefaces/berkeley-mono/" ; 18sha256 = "sha256-PRmfxq1DYPbuIMmOie8T6iE26J2V97JEj2/a2OQ1uiw=" ; 19}; 20 21buildInputs = [ unzip ]; 22phases = [ 23"unpackPhase" 24"installPhase" 25]; 26pathsToLink = [ "/share/fonts/truetype/" ]; 27sourceRoot = "." ; 28installPhase = '' 29install_path = $ out /share/fonts/truetype 30mkdir -p $ install_path 31find -name "BerkeleyMono*.ttf" -exec cp {} $ install_path \; 32'' ; 33 34meta = with lib ; { 35homepage = "https://berkeleygraphics.com/typefaces/berkeley-mono/" ; 36description = '' 37A love letter to the golden era of computing. 38'' ; 39platforms = platforms . all ; 40licence = licences . unfree ; 41}; 42}