at 24.05-pre 32 lines 890 B view raw
1{ lib, stdenvNoCC, fetchzip }: 2 3stdenvNoCC.mkDerivation rec { 4 pname = "junicode"; 5 version = "2.203"; 6 7 src = fetchzip { 8 url = "https://github.com/psb1558/Junicode-font/releases/download/v${version}/Junicode_${version}.zip"; 9 hash = "sha256-RG12veiZXqjfK2gONmauhGReuLEkqxbQ4h4PEwaih/U="; 10 }; 11 12 outputs = [ "out" "doc" ]; 13 14 installPhase = '' 15 runHook preInstall 16 17 install -Dm 444 -t $out/share/fonts/truetype TTF/*.ttf VAR/*.ttf 18 install -Dm 444 -t $out/share/fonts/opentype OTF/*.otf 19 install -Dm 444 -t $out/share/fonts/woff2 WOFF2/*.woff2 20 21 install -Dm 444 -t $doc/share/doc/${pname}-${version} docs/*.pdf 22 23 runHook postInstall 24 ''; 25 26 meta = { 27 homepage = "https://github.com/psb1558/Junicode-font"; 28 description = "A Unicode font for medievalists"; 29 maintainers = with lib.maintainers; [ ivan-timokhin ]; 30 license = lib.licenses.ofl; 31 }; 32}