libredwg: 0.12.4 -> 0.12.5
This commit is contained in:
@@ -1,21 +1,41 @@
|
||||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, texinfo, pcre2
|
||||
, enablePython ? false, python ? null, swig, libxml2, ncurses
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, writeShellScript
|
||||
, pkg-config
|
||||
, texinfo
|
||||
, pcre2
|
||||
, swig
|
||||
, libxml2
|
||||
, ncurses
|
||||
, enablePython ? false
|
||||
, python ? null
|
||||
}:
|
||||
let
|
||||
isPython3 = enablePython && python.pythonAtLeast "3";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libredwg";
|
||||
version = "0.12.4";
|
||||
version = "0.12.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "LibreDWG";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-CZZ5/uCls2tY3PKmD+hBBvp7d7KX8nZuCPf03sa4iXc=";
|
||||
sha256 = "sha256-s9aiOKSM7+3LJNE+jRrEMcL1QKRWrlTKbwO7oL9VhuE=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
postPatch = let
|
||||
printVersion = writeShellScript "print-version" ''
|
||||
echo ${lib.escapeShellArg version}
|
||||
'';
|
||||
in ''
|
||||
# avoid git dependency
|
||||
cp ${printVersion} build-aux/git-version-gen
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkg-config texinfo ]
|
||||
++ lib.optional enablePython swig;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user