tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
zimlib: 1.4 -> 6.3.0
ajs124
4 years ago
8e304bd0
d07b2182
+40
-8
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
zimlib
default.nix
+40
-8
pkgs/development/libraries/zimlib/default.nix
···
1
-
{ lib, stdenv, fetchurl, lzma }:
0
0
0
0
0
0
0
0
0
2
3
stdenv.mkDerivation rec {
4
pname = "zimlib";
5
-
version = "1.4";
6
7
-
src = fetchurl {
8
-
url = "http://www.openzim.org/download/${pname}-${version}.tar.gz";
9
-
sha256 = "14ra3iq42x53k1nqxb5lsg4gadlkpkgv6cbjjl6305ajmbrghcdq";
0
0
10
};
11
12
-
buildInputs = [ lzma ];
0
0
0
0
0
13
14
-
enableParallelBuilding = true;
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
15
16
meta = with lib; {
17
description = "Library for reading and writing ZIM files";
18
homepage = "https://www.openzim.org/wiki/Zimlib";
19
license = licenses.gpl2;
20
-
maintainers = with maintainers; [ robbinch ];
21
platforms = platforms.linux;
22
};
23
}
···
1
+
{ lib, stdenv, fetchFromGitHub
2
+
, meson, ninja, pkg-config
3
+
, python3
4
+
, icu
5
+
, libuuid
6
+
, xapian
7
+
, xz
8
+
, zstd
9
+
, gtest
10
+
}:
11
12
stdenv.mkDerivation rec {
13
pname = "zimlib";
14
+
version = "6.3.0";
15
16
+
src = fetchFromGitHub {
17
+
owner = "openzim";
18
+
repo = "libzim";
19
+
rev = version;
20
+
sha256 = "0iy0f1clhihq277x218ccx3mszgpr3h9l0by48b9ykr115nffw3s";
21
};
22
23
+
nativeBuildInputs = [
24
+
meson
25
+
pkg-config
26
+
ninja
27
+
python3
28
+
];
29
30
+
propagatedBuildInputs = [
31
+
icu
32
+
libuuid
33
+
xapian
34
+
xz
35
+
zstd
36
+
];
37
+
38
+
postPatch = ''
39
+
patchShebangs scripts
40
+
'';
41
+
42
+
checkInputs = [
43
+
gtest
44
+
];
45
+
46
+
doCheck = true;
47
48
meta = with lib; {
49
description = "Library for reading and writing ZIM files";
50
homepage = "https://www.openzim.org/wiki/Zimlib";
51
license = licenses.gpl2;
52
+
maintainers = with maintainers; [ ajs124 ];
53
platforms = platforms.linux;
54
};
55
}