nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 31 lines 716 B view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchzip, 5}: 6 7stdenvNoCC.mkDerivation rec { 8 pname = "source-han-code-jp"; 9 version = "2.012"; 10 11 src = fetchzip { 12 url = "https://github.com/adobe-fonts/${pname}/archive/${version}R.zip"; 13 hash = "sha256-ljO/1/CaE9Yj+AN5xxlIr30/nV/axGQPO0fGACAZGCQ="; 14 }; 15 16 installPhase = '' 17 runHook preInstall 18 19 install -Dm444 OTF/*.otf -t $out/share/fonts/opentype 20 21 runHook postInstall 22 ''; 23 24 meta = { 25 description = "Monospaced Latin font suitable for coding"; 26 maintainers = with lib.maintainers; [ mt-caret ]; 27 platforms = with lib.platforms; all; 28 homepage = "https://blogs.adobe.com/CCJKType/2015/06/source-han-code-jp.html"; 29 license = lib.licenses.ofl; 30 }; 31}