mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
28 lines
709 B
Nix
28 lines
709 B
Nix
{ lib, stdenvNoCC, fetchzip }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "source-han-code-jp";
|
|
version = "2.012";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/adobe-fonts/${pname}/archive/${version}R.zip";
|
|
hash = "sha256-ljO/1/CaE9Yj+AN5xxlIr30/nV/axGQPO0fGACAZGCQ=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm444 OTF/*.otf -t $out/share/fonts/opentype
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "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;
|
|
};
|
|
}
|