diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-11-23 19:23:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-23 19:23:33 +0000 |
commit | 597f819bc3dc1097a8daea632b51a7c065127b1f (patch) | |
tree | 85dbf6b72d908acba0d7a95994bfde77bbf20498 /pkgs/data | |
parent | bed61044949a0f4691ccbb16c062460f58f1a7d3 (diff) | |
parent | 791616030f9905bf31f5664726dc3b5a64d61200 (diff) | |
download | nixpkgs-597f819bc3dc1097a8daea632b51a7c065127b1f.tar nixpkgs-597f819bc3dc1097a8daea632b51a7c065127b1f.tar.gz nixpkgs-597f819bc3dc1097a8daea632b51a7c065127b1f.tar.bz2 nixpkgs-597f819bc3dc1097a8daea632b51a7c065127b1f.tar.lz nixpkgs-597f819bc3dc1097a8daea632b51a7c065127b1f.tar.xz nixpkgs-597f819bc3dc1097a8daea632b51a7c065127b1f.tar.zst nixpkgs-597f819bc3dc1097a8daea632b51a7c065127b1f.zip |
Merge pull request #31967 from mikoim/fonts/ricty
ricty: init at 4.1.0
Diffstat (limited to 'pkgs/data')
-rw-r--r-- | pkgs/data/fonts/ricty/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/data/fonts/ricty/default.nix b/pkgs/data/fonts/ricty/default.nix new file mode 100644 index 00000000000..add2c44cd48 --- /dev/null +++ b/pkgs/data/fonts/ricty/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchurl, google-fonts, migu, fontforge, which }: + +stdenv.mkDerivation rec { + name = "ricty-${version}"; + version = "4.1.0"; + + src = fetchurl { + url = "http://www.rs.tus.ac.jp/yyusa/ricty/ricty_generator-${version}.sh"; + sha256 = "1cv0xh81fi6zdjb62zqjw46kbc89jvwbyllw1x1xbnpz2il6aavf"; + }; + + unpackPhase = '' + install -m 0770 $src ricty_generator.sh + ''; + + patchPhase = '' + sed -i 's/fonts_directories=".*"/fonts_directories="$inconsolata $migu"/' ricty_generator.sh + ''; + + buildInputs = [ google-fonts migu fontforge which ]; + + buildPhase = '' + inconsolata=${google-fonts} migu=${migu} ./ricty_generator.sh auto + ''; + + installPhase = '' + install -m644 --target $out/share/fonts/truetype/ricty -D Ricty-*.ttf + ''; + + meta = with stdenv.lib; { + description = "A high-quality Japanese font based on Inconsolata and Migu 1M"; + homepage = http://www.rs.tus.ac.jp/yyusa/ricty.html; + license = licenses.unfree; + platforms = platforms.unix; + maintainers = [ maintainers.mikoim ]; + }; +} + |