libredwg: 0.12.5.6313 -> 0.13.3

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