summary refs log tree commit diff
path: root/pkgs/development/libraries/zimlib
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2017-03-07 13:09:33 +0100
committerJoachim Fasting <joachifm@fastmail.fm>2017-03-07 14:06:09 +0100
commit9632cc221abb9ef23a07b6f5d4c9b4c14020e077 (patch)
treeeee0511a4f718a2ce1289e292a26ef312ae2847a /pkgs/development/libraries/zimlib
parent15da23d5c143dfa94543b120795af03b44dfbf0f (diff)
downloadnixpkgs-9632cc221abb9ef23a07b6f5d4c9b4c14020e077.tar
nixpkgs-9632cc221abb9ef23a07b6f5d4c9b4c14020e077.tar.gz
nixpkgs-9632cc221abb9ef23a07b6f5d4c9b4c14020e077.tar.bz2
nixpkgs-9632cc221abb9ef23a07b6f5d4c9b4c14020e077.tar.lz
nixpkgs-9632cc221abb9ef23a07b6f5d4c9b4c14020e077.tar.xz
nixpkgs-9632cc221abb9ef23a07b6f5d4c9b4c14020e077.tar.zst
nixpkgs-9632cc221abb9ef23a07b6f5d4c9b4c14020e077.zip
zimlib: 20150710 -> 1.4
Diffstat (limited to 'pkgs/development/libraries/zimlib')
-rw-r--r--pkgs/development/libraries/zimlib/default.nix33
1 files changed, 17 insertions, 16 deletions
diff --git a/pkgs/development/libraries/zimlib/default.nix b/pkgs/development/libraries/zimlib/default.nix
index 77a7989baab..9b7a9026628 100644
--- a/pkgs/development/libraries/zimlib/default.nix
+++ b/pkgs/development/libraries/zimlib/default.nix
@@ -1,22 +1,23 @@
-{ stdenv, fetchgit, automake, autoconf, libtool, lzma }:
+{ stdenv, fetchurl, lzma }:
 
-stdenv.mkDerivation {
-  name = "zimlib";
-  version = "20150710";
-  src = fetchgit {
-    url = https://gerrit.wikimedia.org/r/p/openzim.git;
-    rev = "165eab3e154c60b5b6436d653dc7c90f56cf7456";
-    sha256 = "076ixsq4lis0rkk7p049g02bidc7bggl9kf2wzmgmsnx396mqymf";
+stdenv.mkDerivation rec {
+  name = "zimlib-${version}";
+  version = "1.4";
+
+  src = fetchurl {
+    url = "http://www.openzim.org/download/${name}.tar.gz";
+    sha256 = "14ra3iq42x53k1nqxb5lsg4gadlkpkgv6cbjjl6305ajmbrghcdq";
   };
-  buildInputs = [ automake autoconf libtool lzma ];
-  setSourceRoot = "cd openzim-*/zimlib; export sourceRoot=`pwd`";
-  preConfigure = "./autogen.sh";
 
-  meta = {
-    description = "Library for reading and writing ZIM files (file format for storing Web content offline)";
+  buildInputs = [ lzma ];
+
+  enableParallelBuilding = true;
+
+  meta = with stdenv.lib; {
+    description = "Library for reading and writing ZIM files";
     homepage =  http://www.openzim.org/wiki/Zimlib;
-    license = stdenv.lib.licenses.gpl2;
-    maintainers = with stdenv.lib.maintainers; [ robbinch ];
-    platforms = with stdenv.lib.platforms; linux;
+    license = licenses.gpl2;
+    maintainers = with maintainers; [ robbinch ];
+    platforms = platforms.linux;
   };
 }