diff options
author | Robert Scott <code@humanleg.org.uk> | 2023-08-20 13:12:23 +0100 |
---|---|---|
committer | Robert Scott <code@humanleg.org.uk> | 2023-08-28 21:06:31 +0100 |
commit | 91bd90fa6c1b12dc7d6fcf81cfa32c0ea77f6232 (patch) | |
tree | 45dbdd7d43bcd692c1f2cc977c181fa6c84b87b9 /pkgs/development/libraries/libredwg | |
parent | 736ec7287e444cdafa7c55d9d3a01f7afbb6b138 (diff) |
libredwg: 0.12.5 -> 0.12.5.6248
Diffstat (limited to 'pkgs/development/libraries/libredwg')
-rw-r--r-- | pkgs/development/libraries/libredwg/default.nix | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/pkgs/development/libraries/libredwg/default.nix b/pkgs/development/libraries/libredwg/default.nix index 8a01ace464150..9630479872b05 100644 --- a/pkgs/development/libraries/libredwg/default.nix +++ b/pkgs/development/libraries/libredwg/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , autoreconfHook , writeShellScript , pkg-config @@ -17,19 +18,28 @@ let in stdenv.mkDerivation rec { pname = "libredwg"; - version = "0.12.5"; + version = "0.12.5.6248"; src = fetchFromGitHub { owner = "LibreDWG"; repo = pname; rev = version; - sha256 = "sha256-s9aiOKSM7+3LJNE+jRrEMcL1QKRWrlTKbwO7oL9VhuE="; + hash = "sha256-EHfqj+FeZZpQzF9/LFWg+onTMz2/9tvXNcdpZrdjry0="; fetchSubmodules = true; }; + patches = [ + (fetchpatch { + name = "dwg2svg-strcasestr-musl-fix.patch"; + # https://github.com/LibreDWG/libredwg/pull/822 + url = "https://github.com/LibreDWG/libredwg/commit/eec0b7aac6d2f695b7b258f47c3bde3f71f963ee.patch"; + hash = "sha256-TjpJuhRl9t0b9NOJ1FEOO0/y586WwaJcNzTM0cTwmYI="; + }) + ]; + postPatch = let printVersion = writeShellScript "print-version" '' - echo ${lib.escapeShellArg version} + echo -n ${lib.escapeShellArg version} ''; in '' # avoid git dependency |