2017-03-07 13:49:30 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
2015-09-02 04:55:06 +02:00
|
|
|
|
2017-03-07 13:49:30 +01:00
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, libtool
|
|
|
|
, pkgconfig
|
2015-09-02 04:55:06 +02:00
|
|
|
|
2017-03-07 13:49:30 +01:00
|
|
|
, file
|
|
|
|
, icu
|
|
|
|
, libgumbo
|
|
|
|
, lzma
|
|
|
|
, xapian
|
|
|
|
, zimlib
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "zimwriterfs-${version}";
|
|
|
|
version = "1.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wikimedia";
|
|
|
|
repo = "openzim";
|
|
|
|
rev = name;
|
|
|
|
sha256 = "1vkrrq929a8s3m5rri1lg0l2vd0mc9n2fsb2z1g88k4n4j2l6f19";
|
2015-09-02 04:55:06 +02:00
|
|
|
};
|
|
|
|
|
2017-03-07 13:49:30 +01:00
|
|
|
nativeBuildInputs = [ automake autoconf libtool pkgconfig ];
|
|
|
|
buildInputs = [ file icu libgumbo lzma zimlib zlib xapian ];
|
2017-11-02 13:54:20 +01:00
|
|
|
setSourceRoot = ''
|
|
|
|
sourceRoot=$(echo */zimwriterfs)
|
|
|
|
'';
|
2017-01-06 14:04:49 +01:00
|
|
|
preConfigure = "./autogen.sh";
|
2015-09-02 04:55:06 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A console tool to create ZIM files";
|
|
|
|
homepage = http://git.wikimedia.org/log/openzim;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ robbinch ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2015-09-02 04:55:06 +02:00
|
|
|
};
|
|
|
|
}
|