2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
|
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, libtool
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
, file
|
|
|
|
, icu
|
|
|
|
, gumbo
|
|
|
|
, lzma
|
|
|
|
, xapian
|
|
|
|
, zimlib
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zimwriterfs";
|
|
|
|
version = "1.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wikimedia";
|
|
|
|
repo = "openzim";
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "1vkrrq929a8s3m5rri1lg0l2vd0mc9n2fsb2z1g88k4n4j2l6f19";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ automake autoconf libtool pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ file icu gumbo lzma zimlib zlib xapian ];
|
|
|
|
setSourceRoot = ''
|
|
|
|
sourceRoot=$(echo */zimwriterfs)
|
|
|
|
'';
|
|
|
|
preConfigure = "./autogen.sh";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A console tool to create ZIM files";
|
|
|
|
homepage = "http://git.wikimedia.org/log/openzim";
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ robbinch ];
|
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
platforms = with lib.platforms; [ linux ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|