nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 63 lines 2.2 kB view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchzip, 5 version ? "2.100", 6}: 7 8let 9 new = lib.versionAtLeast version "3.000"; 10 hash = 11 { 12 "2.100" = "sha256-d2UyOOOnmE1afCwyIrM1bL3lQC7XRwh03hzetk/4V30="; 13 "3.300" = "sha256-LaaA6DWAE2dcwVVX4go9cJaiuwI6efYbPk82ym3W3IY="; 14 "4.000" = "sha256-FhgHlHCfojIl3Y11EDYhNTmLYwQ60OrwnA9nbZbZGJE="; 15 "4.300" = "sha256-djUZyBJaX6cFG4SYn+HIldNhRQ4Hg+Jt3uDfYzo9H5o="; 16 "4.400" = "sha256-76CQvy17lvzjVFICtrGU4DdT6u1nSPdSNkec2FcTwGw="; 17 } 18 ."${version}"; 19 pname = "scheherazade${lib.optionalString new "-new"}"; 20in 21stdenvNoCC.mkDerivation rec { 22 inherit pname version; 23 24 src = fetchzip { 25 url = "http://software.sil.org/downloads/r/scheherazade/Scheherazade${lib.optionalString new "New"}-${version}.zip"; 26 inherit hash; 27 }; 28 29 installPhase = '' 30 runHook preInstall 31 32 install -Dm644 *.ttf -t $out/share/fonts/truetype 33 install -Dm644 FONTLOG.txt README.txt -t $out/share/doc 34 cp -r documentation $out/share/doc/ 35 36 runHook postInstall 37 ''; 38 39 meta = { 40 homepage = "https://software.sil.org/scheherazade/"; 41 description = "Font designed in a similar style to traditional Naskh typefaces"; 42 longDescription = '' 43 44 Scheherazade${lib.optionalString new " New"}, named after the heroine of 45 the classic Arabian Nights tale, is designed in a similar style to 46 traditional typefaces such as Monotype Naskh, extended to cover the 47 Unicode Arabic repertoire through Unicode ${if new then "14.0" else "8.0"}. 48 49 Scheherazade provides a simplified rendering of Arabic script, using 50 basic connecting glyphs but not including a wide variety of additional 51 ligatures or contextual alternates (only the required lam-alef 52 ligatures). This simplified style is often preferred for clarity, 53 especially in non-Arabic languages, but may not be considered appropriate 54 in situations where a more elaborate style of calligraphy is preferred. 55 56 This package contains the regular and bold styles for the Scheherazade 57 font family, along with documentation. 58 ''; 59 downloadPage = "https://software.sil.org/scheherazade/download/"; 60 license = lib.licenses.ofl; 61 platforms = lib.platforms.all; 62 }; 63}