tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
pugixml: modernize
Nikolay Korotkiy
1 year ago
fc5f292e
1671ec91
+8
-8
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
pu
pugixml
package.nix
+8
-8
pkgs/by-name/pu/pugixml/package.nix
···
15
15
src = fetchFromGitHub {
16
16
owner = "zeux";
17
17
repo = "pugixml";
18
18
-
rev = "v${version}";
19
19
-
sha256 = "sha256-t/57lg32KgKPc7qRGQtO/GOwHRqoj78lllSaE/A8Z9Q=";
18
18
+
tag = "v${version}";
19
19
+
hash = "sha256-t/57lg32KgKPc7qRGQtO/GOwHRqoj78lllSaE/A8Z9Q=";
20
20
};
21
21
22
22
outputs = [ "out" ] ++ lib.optionals shared [ "dev" ];
···
27
27
];
28
28
29
29
cmakeFlags = [
30
30
-
"-DBUILD_TESTS=ON"
31
31
-
"-DBUILD_SHARED_LIBS=${if shared then "ON" else "OFF"}"
30
30
+
(lib.cmakeBool "BUILD_TESTS" true)
31
31
+
(lib.cmakeBool "BUILD_SHARED_LIBS" shared)
32
32
];
33
33
34
34
nativeCheckInputs = [ check ];
···
38
38
sed -i -e '/PUGIXML_HAS_LONG_LONG/ s/^\/\///' src/pugiconfig.hpp
39
39
'';
40
40
41
41
-
meta = with lib; {
41
41
+
meta = {
42
42
description = "Light-weight, simple and fast XML parser for C++ with XPath support";
43
43
homepage = "https://pugixml.org";
44
44
-
license = licenses.mit;
45
45
-
maintainers = with maintainers; [ pSub ];
46
46
-
platforms = platforms.unix;
44
44
+
license = lib.licenses.mit;
45
45
+
maintainers = with lib.maintainers; [ pSub ];
46
46
+
platforms = lib.platforms.unix;
47
47
};
48
48
}