summary refs log tree commit diff
path: root/pkgs/tools/text/zimwriterfs/default.nix
blob: 5a5757bf2f2d062fc0ee9261b13fa778c8362d79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ stdenv
, fetchFromGitHub

, autoconf
, automake
, libtool
, pkgconfig

, 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";
  };

  nativeBuildInputs = [ automake autoconf libtool pkgconfig ];
  buildInputs = [ file icu libgumbo 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 ];
    platforms = with stdenv.lib.platforms; linux;
  };
}