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

44 lines
873 B
Nix
Raw Normal View History

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