git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #31967 from mikoim/fonts/ricty

ricty: init at 4.1.0

commit597f819bc3dc1097a8daea632b51a7c065127b1f authorJörg Thalheim <Mic92@users.noreply.github.com> dateThu 23 Nov 2017, 19:23 (9 years ago) parentbed61047916160
2 files changed+40
pkgs/data/fonts/ricty/default.nix+38 pkgs/top-level/all-packages.nix+2
pkgs/data/fonts/ricty/default.nixnew file+38
@@ -0,0 +1,38 @@
1+{ stdenv, fetchurl, google-fonts, migu, fontforge, which }:
2+
3+stdenv.mkDerivation rec {
4+ name = "ricty-${version}";
5+ version = "4.1.0";
6+
7+ src = fetchurl {
8+ url = "http://www.rs.tus.ac.jp/yyusa/ricty/ricty_generator-${version}.sh";
9+ sha256 = "1cv0xh81fi6zdjb62zqjw46kbc89jvwbyllw1x1xbnpz2il6aavf";
10+ };
11+
12+ unpackPhase = ''
13+ install -m 0770 $src ricty_generator.sh
14+ '';
15+
16+ patchPhase = ''
17+ sed -i 's/fonts_directories=".*"/fonts_directories="$inconsolata $migu"/' ricty_generator.sh
18+ '';
19+
20+ buildInputs = [ google-fonts migu fontforge which ];
21+
22+ buildPhase = ''
23+ inconsolata=${google-fonts} migu=${migu} ./ricty_generator.sh auto
24+ '';
25+
26+ installPhase = ''
27+ install -m644 --target $out/share/fonts/truetype/ricty -D Ricty-*.ttf
28+ '';
29+
30+ meta = with stdenv.lib; {
31+ description = "A high-quality Japanese font based on Inconsolata and Migu 1M";
32+ homepage = http://www.rs.tus.ac.jp/yyusa/ricty.html;
33+ license = licenses.unfree;
34+ platforms = platforms.unix;
35+ maintainers = [ maintainers.mikoim ];
36+ };
37+}
38+
pkgs/top-level/all-packages.nix+2
@@ -19535,6 +19535,8 @@ with pkgs;
1953519535 pythonPackages = python3Packages;
1953619536 };
1953719537
19538+ ricty = callPackage ../data/fonts/ricty { };
19539+
1953819540 rss-glx = callPackage ../misc/screensavers/rss-glx { };
1953919541
1954019542 runit = callPackage ../tools/system/runit { };