Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 38 lines 1.1 kB view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchurl, 5}: 6 7stdenvNoCC.mkDerivation rec { 8 pname = "culmus"; 9 version = "0.133"; 10 11 src = fetchurl { 12 url = "mirror://sourceforge/${pname}/${pname}/${version}/${pname}-${version}.tar.gz"; 13 hash = "sha256-wMaHN0LQdUT2us8q1S65yzkpdNVkJ5ONwd+8g5nGTQU="; 14 }; 15 16 installPhase = '' 17 runHook preInstall 18 19 mkdir -p $out/share/fonts/{truetype,type1} 20 cp -v *.pfa $out/share/fonts/type1/ 21 cp -v *.afm $out/share/fonts/type1/ 22 cp -v fonts.scale-type1 $out/share/fonts/type1/fonts.scale 23 cp -v *.ttf $out/share/fonts/truetype/ 24 cp -v *.otf $out/share/fonts/truetype/ 25 cp -v fonts.scale-ttf $out/share/fonts/truetype/fonts.scale 26 27 runHook postInstall 28 ''; 29 30 meta = { 31 description = "Culmus Hebrew fonts"; 32 longDescription = "The Culmus project aims at providing the Hebrew-speaking GNU/Linux and Unix community with a basic collection of Hebrew fonts for X Windows."; 33 platforms = lib.platforms.all; 34 license = lib.licenses.gpl2; 35 homepage = "http://culmus.sourceforge.net/"; 36 downloadPage = "http://culmus.sourceforge.net/download.html"; 37 }; 38}