nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 31 lines 640 B view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchurl, 5}: 6 7stdenvNoCC.mkDerivation rec { 8 pname = "wqy-microhei"; 9 version = "0.2.0"; 10 11 src = fetchurl { 12 url = "mirror://sourceforge/wqy/${pname}-${version}-beta.tar.gz"; 13 hash = "sha256-KAKsgCOqNqZupudEWFTjoHjTd///QhaTQb0jeHH3IT4="; 14 }; 15 16 installPhase = '' 17 runHook preInstall 18 19 install -Dm644 wqy-microhei.ttc $out/share/fonts/wqy-microhei.ttc 20 21 runHook postInstall 22 ''; 23 24 meta = { 25 description = "(mainly) Chinese Unicode font"; 26 homepage = "http://wenq.org"; 27 license = lib.licenses.asl20; 28 maintainers = [ lib.maintainers.pkmx ]; 29 platforms = lib.platforms.all; 30 }; 31}