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
1
-
{ lib, stdenv, fetchurl, lzma }:
1
1
+
{ lib, stdenv, fetchFromGitHub
2
2
+
, meson, ninja, pkg-config
3
3
+
, python3
4
4
+
, icu
5
5
+
, libuuid
6
6
+
, xapian
7
7
+
, xz
8
8
+
, zstd
9
9
+
, gtest
10
10
+
}:
2
11
3
12
stdenv.mkDerivation rec {
4
13
pname = "zimlib";
5
5
-
version = "1.4";
14
14
+
version = "6.3.0";
6
15
7
7
-
src = fetchurl {
8
8
-
url = "http://www.openzim.org/download/${pname}-${version}.tar.gz";
9
9
-
sha256 = "14ra3iq42x53k1nqxb5lsg4gadlkpkgv6cbjjl6305ajmbrghcdq";
16
16
+
src = fetchFromGitHub {
17
17
+
owner = "openzim";
18
18
+
repo = "libzim";
19
19
+
rev = version;
20
20
+
sha256 = "0iy0f1clhihq277x218ccx3mszgpr3h9l0by48b9ykr115nffw3s";
10
21
};
11
22
12
12
-
buildInputs = [ lzma ];
23
23
+
nativeBuildInputs = [
24
24
+
meson
25
25
+
pkg-config
26
26
+
ninja
27
27
+
python3
28
28
+
];
13
29
14
14
-
enableParallelBuilding = true;
30
30
+
propagatedBuildInputs = [
31
31
+
icu
32
32
+
libuuid
33
33
+
xapian
34
34
+
xz
35
35
+
zstd
36
36
+
];
37
37
+
38
38
+
postPatch = ''
39
39
+
patchShebangs scripts
40
40
+
'';
41
41
+
42
42
+
checkInputs = [
43
43
+
gtest
44
44
+
];
45
45
+
46
46
+
doCheck = true;
15
47
16
48
meta = with lib; {
17
49
description = "Library for reading and writing ZIM files";
18
50
homepage = "https://www.openzim.org/wiki/Zimlib";
19
51
license = licenses.gpl2;
20
20
-
maintainers = with maintainers; [ robbinch ];
52
52
+
maintainers = with maintainers; [ ajs124 ];
21
53
platforms = platforms.linux;
22
54
};
23
55
}