at 18.09-beta 25 lines 702 B view raw
1{ stdenv, fetchzip }: 2 3let 4 pname = "source-han-code-jp"; 5 version = "2.011R"; 6in fetchzip { 7 name = "${pname}-${version}"; 8 9 url = "https://github.com/adobe-fonts/${pname}/archive/${version}.zip"; 10 11 postFetch = '' 12 mkdir -p $out/share/fonts 13 unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype 14 ''; 15 16 sha256 = "184vrjkymcm29k1cx00cdvjchzqr1w17925lmh85f0frx7vwljcd"; 17 18 meta = { 19 description = "A monospaced Latin font suitable for coding"; 20 maintainers = with stdenv.lib.maintainers; [ mt-caret ]; 21 platforms = with stdenv.lib.platforms; all; 22 homepage = https://blogs.adobe.com/CCJKType/2015/06/source-han-code-jp.html; 23 license = stdenv.lib.licenses.ofl; 24 }; 25}