libredwg: 0.12.5 -> 0.12.5.6248
This commit is contained in:
parent
736ec7287e
commit
91bd90fa6c
|
@ -1,6 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
, writeShellScript
|
, writeShellScript
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
@ -17,19 +18,28 @@ let
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libredwg";
|
pname = "libredwg";
|
||||||
version = "0.12.5";
|
version = "0.12.5.6248";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "LibreDWG";
|
owner = "LibreDWG";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-s9aiOKSM7+3LJNE+jRrEMcL1QKRWrlTKbwO7oL9VhuE=";
|
hash = "sha256-EHfqj+FeZZpQzF9/LFWg+onTMz2/9tvXNcdpZrdjry0=";
|
||||||
fetchSubmodules = true;
|
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
|
postPatch = let
|
||||||
printVersion = writeShellScript "print-version" ''
|
printVersion = writeShellScript "print-version" ''
|
||||||
echo ${lib.escapeShellArg version}
|
echo -n ${lib.escapeShellArg version}
|
||||||
'';
|
'';
|
||||||
in ''
|
in ''
|
||||||
# avoid git dependency
|
# avoid git dependency
|
||||||
|
|
Loading…
Reference in a new issue