lib3mf: fix building tests on aarch64-darwin
This commit is contained in:
parent
366c42ffb0
commit
45170fdb53
|
@ -29,10 +29,13 @@ stdenv.mkDerivation rec {
|
||||||
] ++ (if stdenv.isDarwin then [ libossp_uuid ] else [ libuuid ]);
|
] ++ (if stdenv.isDarwin then [ libossp_uuid ] else [ libuuid ]);
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
# This lets us build the tests properly on aarch64-darwin.
|
||||||
|
substituteInPlace CMakeLists.txt \
|
||||||
|
--replace 'SET(CMAKE_OSX_ARCHITECTURES "x86_64")' ""
|
||||||
|
|
||||||
# fix libdir=''${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
|
# fix libdir=''${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
|
||||||
sed -i 's,libdir=''${\(exec_\)\?prefix}/,libdir=,' lib3mf.pc.in
|
sed -i 's,libdir=''${\(exec_\)\?prefix}/,libdir=,' lib3mf.pc.in
|
||||||
|
|
||||||
|
|
||||||
# replace bundled binaries
|
# replace bundled binaries
|
||||||
for i in AutomaticComponentToolkit/bin/act.*; do
|
for i in AutomaticComponentToolkit/bin/act.*; do
|
||||||
ln -sf ${automaticcomponenttoolkit}/bin/act $i
|
ln -sf ${automaticcomponenttoolkit}/bin/act $i
|
||||||
|
|
Loading…
Reference in a new issue