tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
libredwg: 0.12.5.6313 -> 0.13.3
Weijia Wang
2 years ago
720094c2
a73d982d
+4
-15
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
libredwg
default.nix
+4
-15
pkgs/development/libraries/libredwg/default.nix
···
1
1
{ lib
2
2
, stdenv
3
3
, fetchFromGitHub
4
4
-
, fetchpatch
5
4
, autoreconfHook
6
5
, writeShellScript
7
6
, pkg-config
···
18
17
in
19
18
stdenv.mkDerivation rec {
20
19
pname = "libredwg";
21
21
-
version = "0.12.5.6313";
20
20
+
version = "0.13.3";
22
21
23
22
src = fetchFromGitHub {
24
23
owner = "LibreDWG";
25
24
repo = pname;
26
25
rev = version;
27
27
-
hash = "sha256-TM+cZ7N5PD6UG9cvy0XFa0sNYc3apbAJvEMh3husjRk=";
26
26
+
hash = "sha256-FlBHwNsqVSBE8dTDewoKkCbs8Jd/4d69MPpEFzg6Ruc=";
28
27
fetchSubmodules = true;
29
28
};
30
29
31
31
-
patches = [
32
32
-
(fetchpatch {
33
33
-
name = "CVE-2023-26157.patch";
34
34
-
url = "https://github.com/LibreDWG/libredwg/commit/c8cf03ce4c2315b146caf582ea061c0460193bcc.patch";
35
35
-
hash = "sha256-EEF3YYPW+6SvXRiAw3zz6tWU9w/qmGtc09Tf8wn7hVc=";
36
36
-
})
37
37
-
];
38
38
-
39
30
postPatch = let
40
31
printVersion = writeShellScript "print-version" ''
41
32
echo -n ${lib.escapeShellArg version}
···
43
34
in ''
44
35
# avoid git dependency
45
36
cp ${printVersion} build-aux/git-version-gen
46
46
-
# failing to build otherwise since glibc-2.38
47
47
-
sed '1i#include <string.h>' -i programs/dwg2SVG.c
48
37
'';
49
38
50
39
preConfigure = lib.optionalString (stdenv.isDarwin && enablePython) ''
···
64
53
# prevent python tests from running when not building with python
65
54
configureFlags = lib.optional (!enablePython) "--disable-python";
66
55
67
67
-
# example_r13.dxf roundtrip fail: expect 5286, got 5285 entities
68
68
-
doCheck = !(stdenv.isLinux && stdenv.isAarch64);
56
56
+
# FAIL: alive.test
57
57
+
doCheck = !stdenv.isLinux;
69
58
70
59
# the "xmlsuite" test requires the libxml2 c library as well as the python module
71
60
nativeCheckInputs = lib.optionals enablePython [ libxml2 libxml2.dev ];