nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 76 lines 1.8 kB view raw
1{ lib, stdenvNoCC, fetchurl, mkfontdir, mkfontscale }: 2 3let 4 version = "0.2.20080216.2"; 5in 6{ 7 arphic-ukai = stdenvNoCC.mkDerivation rec { 8 pname = "arphic-ukai"; 9 inherit version; 10 11 src = fetchurl { 12 url = "mirror://ubuntu/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.bz2"; 13 hash = "sha256-tJaNc1GfT4dH6FVI+4XSG2Zdob8bqQCnxJmXbmqK49I="; 14 }; 15 16 nativeBuildInputs = [ 17 mkfontscale 18 mkfontdir 19 ]; 20 21 installPhase = '' 22 runHook preInstall 23 24 install -D -v ukai.ttc $out/share/fonts/truetype/arphic-ukai.ttc 25 cd $out/share/fonts 26 mkfontdir 27 mkfontscale 28 29 runHook postInstall 30 ''; 31 32 meta = with lib; { 33 description = "CJK Unicode font Kai style"; 34 homepage = "https://www.freedesktop.org/wiki/Software/CJKUnifonts/"; 35 36 license = licenses.arphicpl; 37 maintainers = [ maintainers.changlinli ]; 38 platforms = platforms.all; 39 }; 40 }; 41 42 arphic-uming = stdenvNoCC.mkDerivation rec { 43 pname = "arphic-uming"; 44 inherit version; 45 46 src = fetchurl { 47 url = "mirror://ubuntu/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.bz2"; 48 hash = "sha256-48GeBOp6VltKz/bx5CSAhNLhB1LjBb991sdugIYNwds="; 49 }; 50 51 nativeBuildInputs = [ 52 mkfontscale 53 mkfontdir 54 ]; 55 56 installPhase = '' 57 runHook preInstall 58 59 install -D -v uming.ttc $out/share/fonts/truetype/arphic-uming.ttc 60 cd $out/share/fonts 61 mkfontdir 62 mkfontscale 63 64 runHook postInstall 65 ''; 66 67 meta = with lib; { 68 description = "CJK Unicode font Ming style"; 69 homepage = "https://www.freedesktop.org/wiki/Software/CJKUnifonts/"; 70 71 license = licenses.arphicpl; 72 maintainers = [ maintainers.changlinli ]; 73 platforms = platforms.all; 74 }; 75 }; 76}