1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/by-name/ko/kochi-substitute-naga10/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

37 lines
1.2 KiB
Nix

{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "kochi-substitute-naga10";
version = "20030809";
src = fetchzip {
url = "mirror://osdn/efont/5411/kochi-substitute-${version}.tar.bz2";
stripRoot = false;
hash = "sha256-dRJAxeVGYcNjLWqJJ+9Z2FW3BHrgyGRzlgM2x5YG3AM=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
mv */kochi-gothic-subst.ttf $out/share/fonts/truetype/kochi-gothic-subst-naga10.ttf
mv */kochi-mincho-subst.ttf $out/share/fonts/truetype/kochi-mincho-subst-naga10.ttf
runHook postInstall
'';
meta = {
description = "Japanese font, non-free replacement for MS Gothic and MS Mincho";
longDescription = ''
Kochi Gothic and Kochi Mincho were developed as free replacements for the
MS Gothic and MS Mincho fonts from Microsoft. This version of the fonts
includes some non-free glyphs from the naga10 font, which stipulate that
this font may not be sold commercially. See kochi-substitute for the free
Debian version.
'';
homepage = "https://osdn.net/projects/efont/";
license = lib.licenses.unfreeRedistributable;
maintainers = [ lib.maintainers.auntie ];
};
}