mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
37 lines
984 B
Nix
37 lines
984 B
Nix
{ lib, stdenv, fetchurl, google-fonts, migu, fontforge, which }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ricty";
|
|
version = "4.1.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://rictyfonts.github.io/files/ricty_generator-${version}.sh";
|
|
sha256 = "03fngb8f5hl7ifigdm5yljhs4z2x80cq8y8kna86d07ghknhzgw6";
|
|
};
|
|
|
|
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 lib; {
|
|
description = "High-quality Japanese font based on Inconsolata and Migu 1M";
|
|
homepage = "https://rictyfonts.github.io";
|
|
license = licenses.unfree;
|
|
maintainers = [ maintainers.mikoim ];
|
|
};
|
|
}
|
|
|