nixpkgs/pkgs/tools/text/zimwriterfs/default.nix

44 lines
878 B
Nix
Raw Normal View History

2017-03-07 12:49:30 +00:00
{ stdenv
, fetchFromGitHub
2017-03-07 12:49:30 +00:00
, autoconf
, automake
, libtool
, pkgconfig
2017-03-07 12:49:30 +00:00
, file
, icu
, gumbo
2017-03-07 12:49:30 +00:00
, lzma
, xapian
, zimlib
, zlib
}:
stdenv.mkDerivation rec {
name = "zimwriterfs-${version}";
version = "1.0";
src = fetchFromGitHub {
owner = "wikimedia";
repo = "openzim";
rev = name;
sha256 = "1vkrrq929a8s3m5rri1lg0l2vd0mc9n2fsb2z1g88k4n4j2l6f19";
};
2017-03-07 12:49:30 +00:00
nativeBuildInputs = [ automake autoconf libtool pkgconfig ];
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;
maintainers = with stdenv.lib.maintainers; [ robbinch ];
license = stdenv.lib.licenses.gpl3;
2018-07-22 15:39:05 +01:00
platforms = with stdenv.lib.platforms; [ linux ];
};
}