diff options
author | Robert Scott <code@humanleg.org.uk> | 2022-12-04 18:31:26 +0000 |
---|---|---|
committer | Robert Scott <code@humanleg.org.uk> | 2022-12-04 18:31:26 +0000 |
commit | a4966eecb99e8f732fe91aecc1d991ad16e5e41a (patch) | |
tree | 6b1ce2ee3f88cff4948250c72c0310535adc8a67 | |
parent | 5f6f7b474d330f4a7a5b0e75eb86e0004f56b89e (diff) | |
download | nixpkgs-a4966eecb99e8f732fe91aecc1d991ad16e5e41a.tar nixpkgs-a4966eecb99e8f732fe91aecc1d991ad16e5e41a.tar.gz nixpkgs-a4966eecb99e8f732fe91aecc1d991ad16e5e41a.tar.bz2 nixpkgs-a4966eecb99e8f732fe91aecc1d991ad16e5e41a.tar.lz nixpkgs-a4966eecb99e8f732fe91aecc1d991ad16e5e41a.tar.xz nixpkgs-a4966eecb99e8f732fe91aecc1d991ad16e5e41a.tar.zst nixpkgs-a4966eecb99e8f732fe91aecc1d991ad16e5e41a.zip |
libredwg: 0.12.4 -> 0.12.5
-rw-r--r-- | pkgs/development/libraries/libredwg/default.nix | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/pkgs/development/libraries/libredwg/default.nix b/pkgs/development/libraries/libredwg/default.nix index ad7a7e5473e..e21e43caa92 100644 --- a/pkgs/development/libraries/libredwg/default.nix +++ b/pkgs/development/libraries/libredwg/default.nix @@ -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; |