From 9cc60e1c27d4f1d1c4411ee86d972c4b5f15ce78 Mon Sep 17 00:00:00 2001 From: Mathnerd314 Date: Sat, 17 Oct 2015 14:54:39 -0600 Subject: [PATCH] hanazono: init at 20141012 --- pkgs/data/fonts/hanazono/default.nix | 36 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/data/fonts/hanazono/default.nix diff --git a/pkgs/data/fonts/hanazono/default.nix b/pkgs/data/fonts/hanazono/default.nix new file mode 100644 index 000000000000..01be8afd7aac --- /dev/null +++ b/pkgs/data/fonts/hanazono/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchurl, unzip }: + +stdenv.mkDerivation rec { + name = "hanazono-${version}"; + version = "20141012"; + + src = fetchurl { + url = "mirror://sourceforgejp/hanazono-font/62072/hanazono-20141012.zip"; + sha256 = "020jhqnzm9jvkmfvvyk1my26ncwxbnb9yc8v7am252jwrifji9q6"; + }; + + buildInputs = [ unzip ]; + + sourceRoot = "."; + + installPhase = '' + mkdir -p $out/share/fonts/hanazono + cp *.ttf $out/share/fonts/hanazono + mkdir -p $out/share/doc/hanazono + cp *.txt $out/share/doc/hanazono + ''; + + meta = with stdenv.lib; { + description = "Free kanji font containing 96,327 characters"; + homepage = http://fonts.jp/hanazono/; + + # Dual-licensed under OFL and the following: + # This font is a free software. + # Unlimited permission is granted to use, copy, and distribute it, with + # or without modification, either commercially and noncommercially. + # THIS FONT IS PROVIDED "AS IS" WITHOUT WARRANTY. + license = [ licenses.ofl licenses.free ]; + maintainers = with maintainers; [ mathnerd314 ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 72af66080706..047abb16ecff 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10548,6 +10548,8 @@ let hicolor_icon_theme = callPackage ../data/icons/hicolor-icon-theme { }; + hanazono = callPackage ../data/fonts/hanazono { }; + inconsolata = callPackage ../data/fonts/inconsolata {}; inconsolata-lgc = callPackage ../data/fonts/inconsolata/lgc.nix {};