c9eb44eab3
* make font derivations fixed-output where applicable * fix dead links * `stdenv.lib` -> `lib` where `stdenv` is not involved * remove `meta.platforms = [ unix ]` and `meta.platforms = [ linux ]` because the restriction has no sense for data packages
25 lines
678 B
Nix
25 lines
678 B
Nix
{ lib, fetchzip }:
|
|
|
|
let
|
|
pname = "source-han-code-jp";
|
|
version = "2.011R";
|
|
in fetchzip {
|
|
name = "${pname}-${version}";
|
|
|
|
url = "https://github.com/adobe-fonts/${pname}/archive/${version}.zip";
|
|
|
|
postFetch = ''
|
|
mkdir -p $out/share/fonts
|
|
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
|
'';
|
|
|
|
sha256 = "184vrjkymcm29k1cx00cdvjchzqr1w17925lmh85f0frx7vwljcd";
|
|
|
|
meta = {
|
|
description = "A monospaced Latin font suitable for coding";
|
|
maintainers = with lib.maintainers; [ mt-caret ];
|
|
platforms = with lib.platforms; all;
|
|
homepage = https://blogs.adobe.com/CCJKType/2015/06/source-han-code-jp.html;
|
|
license = lib.licenses.ofl;
|
|
};
|
|
}
|