nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 42 lines 1.4 kB view raw
1{ lib, stdenvNoCC, fetchzip }: 2 3stdenvNoCC.mkDerivation rec { 4 pname = "hanazono"; 5 version = "20170904"; 6 7 src = fetchzip { 8 url = "mirror://osdn/hanazono-font/68253/hanazono-${version}.zip"; 9 stripRoot = false; 10 hash = "sha256-qd0q4wQnHBGLT7C+UQIiOHnxCnRCscMZcj3P5RRxD1U="; 11 }; 12 13 installPhase = '' 14 runHook preInstall 15 16 install -Dm644 *.ttf -t $out/share/fonts/truetype 17 install -Dm644 *.txt -t $out/share/doc/hanazono 18 19 runHook postInstall 20 ''; 21 22 meta = with lib; { 23 description = "Japanese Mincho-typeface TrueType font"; 24 homepage = "https://fonts.jp/hanazono/"; 25 longDescription = '' 26 Hanazono Mincho typeface is a Japanese TrueType font that developed with a 27 support of Grant-in-Aid for Publication of Scientific Research Results 28 from Japan Society for the Promotion of Science and the International 29 Research Institute for Zen Buddhism (IRIZ), Hanazono University. also with 30 volunteers who work together on glyphwiki.org. 31 ''; 32 33 # Dual-licensed under OFL and the following: 34 # This font is a free software. 35 # Unlimited permission is granted to use, copy, and distribute it, with 36 # or without modification, either commercially and noncommercially. 37 # THIS FONT IS PROVIDED "AS IS" WITHOUT WARRANTY. 38 license = [ licenses.ofl licenses.free ]; 39 maintainers = with maintainers; [ mathnerd314 ]; 40 platforms = platforms.all; 41 }; 42}