mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
8904ce343a
These have changed following commit
c3255fe8ec
.
See also:
- https://github.com/NixOS/nixpkgs/pull/31004
- https://github.com/NixOS/nixpkgs/pull/31106
42 lines
840 B
Nix
42 lines
840 B
Nix
{ 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;
|
|
};
|
|
}
|