Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 32 lines 827 B view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchzip, 5}: 6 7stdenvNoCC.mkDerivation rec { 8 pname = "gentium-book-basic"; 9 version = "1.102"; 10 11 src = fetchzip { 12 url = "http://software.sil.org/downloads/r/gentium/GentiumBasic_${lib.versions.major version}${lib.versions.minor version}.zip"; 13 hash = "sha256-oCmpl95MJRfCV25cg/4cf8AwQWnoymXasSss1ziOPoE="; 14 }; 15 16 installPhase = '' 17 runHook preInstall 18 19 install -Dm644 *.ttf -t $out/share/fonts/truetype 20 install -Dm644 FONTLOG.txt GENTIUM-FAQ.txt -t $out/share/doc/${pname}-${version} 21 22 runHook postInstall 23 ''; 24 25 meta = with lib; { 26 homepage = "https://software.sil.org/gentium/"; 27 description = "High-quality typeface family for Latin, Cyrillic, and Greek"; 28 maintainers = [ ]; 29 license = licenses.ofl; 30 platforms = platforms.all; 31 }; 32}