1 { lib, stdenv, fetchurl, google-fonts, migu, fontforge, which }:
3 stdenv.mkDerivation rec {
8 url = "https://rictyfonts.github.io/files/ricty_generator-${version}.sh";
9 sha256 = "03fngb8f5hl7ifigdm5yljhs4z2x80cq8y8kna86d07ghknhzgw6";
13 install -m 0770 $src ricty_generator.sh
17 sed -i 's/fonts_directories=".*"/fonts_directories="$inconsolata $migu"/' ricty_generator.sh
20 buildInputs = [ google-fonts migu fontforge which ];
23 inconsolata=${google-fonts} migu=${migu} ./ricty_generator.sh auto
27 install -m644 --target $out/share/fonts/truetype/ricty -D Ricty-*.ttf
31 description = "High-quality Japanese font based on Inconsolata and Migu 1M";
32 homepage = "https://rictyfonts.github.io";
33 license = licenses.unfree;
34 maintainers = [ maintainers.mikoim ];