From 30061d39711d13b04264b717af0b896f3bb5e0eb Mon Sep 17 00:00:00 2001 From: Jonathan Glines Date: Fri, 20 Feb 2015 14:14:26 -0700 Subject: [PATCH 1/2] Packaged nkf (network kanji filter) --- pkgs/tools/text/nkf/default.nix | 20 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/tools/text/nkf/default.nix diff --git a/pkgs/tools/text/nkf/default.nix b/pkgs/tools/text/nkf/default.nix new file mode 100644 index 00000000000..681cc5be37e --- /dev/null +++ b/pkgs/tools/text/nkf/default.nix @@ -0,0 +1,20 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "nkf-${version}"; + version = "2.1.3"; + + src = fetchurl { + url = "mirror://sourceforgejp/nkf/59912/${name}.tar.gz"; + sha256 = "8cb430ae69a1ad58b522eb4927b337b5b420bbaeb69df255919019dc64b72fc2"; + }; + + makeFlags = "prefix=\${out}"; + + meta = { + description = "tool for converting encoding of Japanese text"; + homepage = "http://sourceforge.jp/projects/nkf/"; + license = stdenv.lib.licenses.zlib; + maintainers = [ stdenv.lib.maintainers.auntie ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 605ab63ca21..c77fb8c38ca 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1980,6 +1980,8 @@ let nitrogen = callPackage ../tools/X11/nitrogen {}; + nkf = callPackage ../tools/text/nkf {}; + nlopt = callPackage ../development/libraries/nlopt {}; npapi_sdk = callPackage ../development/libraries/npapi-sdk {}; From 3bfbed7535ba05507e3b9ba4607416850bcbdabe Mon Sep 17 00:00:00 2001 From: Jonathan Glines Date: Sat, 21 Feb 2015 14:35:01 -0700 Subject: [PATCH 2/2] Made suggested changes to nkf package --- pkgs/tools/text/nkf/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/text/nkf/default.nix b/pkgs/tools/text/nkf/default.nix index 681cc5be37e..31d58fbccc3 100644 --- a/pkgs/tools/text/nkf/default.nix +++ b/pkgs/tools/text/nkf/default.nix @@ -12,9 +12,10 @@ stdenv.mkDerivation rec { makeFlags = "prefix=\${out}"; meta = { - description = "tool for converting encoding of Japanese text"; + description = "Tool for converting encoding of Japanese text"; homepage = "http://sourceforge.jp/projects/nkf/"; license = stdenv.lib.licenses.zlib; + platforms = stdenv.lib.platforms.unix; maintainers = [ stdenv.lib.maintainers.auntie ]; }; }