traefik: add djds as maintainer (#377217)
[NixPkgs.git] / pkgs / by-name / ko / kochi-substitute / package.nix
blob875b5ca1453afa9da1a52136d4995d37b392f9de
2   lib,
3   stdenv,
4   fetchurl,
5   dpkg,
6 }:
8 let
9   version = "20030809";
11 stdenv.mkDerivation {
12   pname = "kochi-substitute";
13   inherit version;
15   src = fetchurl {
16     url = "mirror://debian/pool/main/t/ttf-kochi/ttf-kochi-gothic_${version}-15_all.deb";
17     sha256 = "6e2311cd8e880a9328e4d3eef34a1c1f024fc87fba0dce177a0e1584a7360fea";
18   };
20   src2 = fetchurl {
21     url = "mirror://debian/pool/main/t/ttf-kochi/ttf-kochi-mincho_${version}-15_all.deb";
22     sha256 = "91ce6c993a3a0f77ed85db76f62ce18632b4c0cbd8f864676359a17ae5e6fa3c";
23   };
25   nativeBuildInputs = [ dpkg ];
27   unpackCmd = ''
28     dpkg-deb --fsys-tarfile $src | tar xf - ./usr/share/fonts/truetype/kochi/kochi-gothic-subst.ttf
29     dpkg-deb --fsys-tarfile $src2 | tar xf - ./usr/share/fonts/truetype/kochi/kochi-mincho-subst.ttf
30   '';
32   installPhase = ''
33     mkdir -p $out/share/fonts/truetype
34     cp ./share/fonts/truetype/kochi/kochi-gothic-subst.ttf $out/share/fonts/truetype/
35     cp ./share/fonts/truetype/kochi/kochi-mincho-subst.ttf $out/share/fonts/truetype/
36   '';
38   outputHashAlgo = "sha256";
39   outputHashMode = "recursive";
40   outputHash = "10hcrf51npc1w2jsz5aiw07dgw96vs4wmsz4ai9zyaswipvf8ddy";
42   meta = {
43     description = "Japanese font, a free replacement for MS Gothic and MS Mincho";
44     longDescription = ''
45       Kochi Gothic and Kochi Mincho were developed as free replacements for the
46       MS Gothic and MS Mincho fonts from Microsoft. These are the Debian
47       versions of the fonts, which remove some non-free glyphs that were added
48       from the naga10 font.
49     '';
50     homepage = "https://osdn.net/projects/efont/";
51     license = lib.licenses.wadalab;
52     maintainers = [ lib.maintainers.auntie ];
53   };