lib3mf: 1.8.1 → 2.0.0

This commit is contained in:
Sandro Jäckel 2020-10-20 01:14:53 +02:00
parent fba7eaeb63
commit 5584227701
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "lib3mf"; pname = "lib3mf";
version = "1.8.1"; version = "2.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "3MFConsortium"; owner = "3MFConsortium";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "11wpk6n9ga2p57h1dcrp37w77mii0r7r6mlrgmykf7rvii1rzgqd"; sha256 = "0w4d9zvl95g1x3r5nyd6cr27g6fwhhwaivh8a5r1xs5l6if21x19";
}; };
nativeBuildInputs = [ cmake ninja ]; nativeBuildInputs = [ cmake ninja ];
@ -16,8 +16,8 @@ stdenv.mkDerivation rec {
buildInputs = if stdenv.isDarwin then [ libossp_uuid ] else [ libuuid ]; buildInputs = if stdenv.isDarwin then [ libossp_uuid ] else [ libuuid ];
postPatch = '' postPatch = ''
rmdir UnitTests/googletest rmdir Tests/googletest
ln -s ${gtest.src} UnitTests/googletest ln -s ${gtest.src} Tests/googletest
# fix libdir=''${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ # fix libdir=''${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
sed -i 's,=''${\(exec_\)\?prefix}/,=,' lib3MF.pc.in sed -i 's,=''${\(exec_\)\?prefix}/,=,' lib3MF.pc.in