mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 06:27:55 +00:00
lib3mf: fix include paths in pkg-config file
Multi-output `includedir` magic for `pkg-config` was not working, as not only `libdir` was affected by `postPatch` script. And absolute path to include directory is not compatibe with this magic either. So the pkg-config file contained a path to non-existing directory (`include`, but in the main `out` output). The only package to use this library is openscad, but it's currently not picking it - will fix it in a separate PR.
This commit is contained in:
parent
9f0a7e9e05
commit
ac7b8b85ab
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_INSTALL_INCLUDEDIR=${placeholder "out"}/include/lib3mf"
|
||||
"-DCMAKE_INSTALL_INCLUDEDIR=include/lib3mf"
|
||||
"-DUSE_INCLUDED_ZLIB=OFF"
|
||||
"-DUSE_INCLUDED_LIBZIP=OFF"
|
||||
"-DUSE_INCLUDED_GTEST=OFF"
|
||||
@ -30,7 +30,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
postPatch = ''
|
||||
# fix libdir=''${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
|
||||
sed -i 's,=''${\(exec_\)\?prefix}/,=,' lib3mf.pc.in
|
||||
sed -i 's,libdir=''${\(exec_\)\?prefix}/,libdir=,' lib3mf.pc.in
|
||||
|
||||
|
||||
# replace bundled binaries
|
||||
for i in AutomaticComponentToolkit/bin/act.*; do
|
||||
|
Loading…
Reference in New Issue
Block a user