diff options
author | Arseniy Seroka <jagajaga@users.noreply.github.com> | 2015-09-20 22:52:21 +0300 |
---|---|---|
committer | Arseniy Seroka <jagajaga@users.noreply.github.com> | 2015-09-20 22:52:21 +0300 |
commit | 4a074fae2b9e89e69a36c5278c891d6da362fe19 (patch) | |
tree | 9e3b42872eafcf20d38a825f079a797a103659d4 /pkgs | |
parent | e69022e115e6bb55a68ebce51fdcc3764cdc341e (diff) | |
parent | 3a8756913c2f8dcbe29ac345b77815c19a76835d (diff) |
Merge pull request #9954 from robbinch/pkg-zimreader
zimreader: init at 20150710.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/text/zimreader/default.nix | 43 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/tools/text/zimreader/default.nix b/pkgs/tools/text/zimreader/default.nix new file mode 100644 index 0000000000000..afc02e6230191 --- /dev/null +++ b/pkgs/tools/text/zimreader/default.nix @@ -0,0 +1,43 @@ +{ stdenv, fetchgit, fetchurl, automake, autoconf, libtool +, zlib, openssl, zip, zimlib +}: + +let + cxxtools = stdenv.mkDerivation rec { + name = "cxxtools-${version}"; + version = "2.1.1"; + src = fetchurl { + url = "http://www.tntnet.org/download/cxxtools-${version}.tar.gz"; + sha256 = "0jh5wrk9mviz4xrp1wv617gwgl4b5mc21h21wr2688kjmc0i1q4d"; + }; + }; + tntnet = stdenv.mkDerivation rec { + name = "tntnet-${version}"; + version = "2.1"; + src = fetchurl { + url = "http://www.tntnet.org/download/tntnet-${version}.tar.gz"; + sha256 = "1dhs10yhpmdqyykyh8jc67m5xgsgm1wrpd58fdps2cp5g1gjf8w6"; + }; + buildInputs = [ zlib cxxtools openssl zip ]; + }; + +in stdenv.mkDerivation rec { + name = "zimreader-${version}"; + version = "20150710"; + + src = fetchgit { + url = https://gerrit.wikimedia.org/r/p/openzim.git; + rev = "165eab3e154c60b5b6436d653dc7c90f56cf7456"; + sha256 = "0x0d3rx6zcc8k66nqkacmwdvslrz70h9bliqawzv90ribq3alb0q"; + }; + + buildInputs = [ automake autoconf libtool zimlib cxxtools tntnet ]; + setSourceRoot = "cd openzim-*/zimreader; export sourceRoot=`pwd`"; + preConfigurePhases = [ "./autogen.sh" ]; + + meta = { + description = "A tool to serve ZIM files using HTTP"; + homepage = http://git.wikimedia.org/log/openzim; + maintainers = with stdenv.lib.maintainers; [ robbinch ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 30668c593a900..b42c2c4022855 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3572,6 +3572,8 @@ let zinnia = callPackage ../tools/inputmethods/zinnia { }; tegaki-zinnia-japanese = callPackage ../tools/inputmethods/tegaki-zinnia-japanese { }; + zimreader = callPackage ../tools/text/zimreader { }; + zimwriterfs = callPackage ../tools/text/zimwriterfs { }; zip = callPackage ../tools/archivers/zip { }; |