soapysdr: fix paths in pkg-config file
This commit is contained in:
parent
02f6b12ab1
commit
9d05c94462
|
@ -40,6 +40,13 @@ in stdenv.mkDerivation {
|
||||||
"-DCMAKE_BUILD_TYPE=Release"
|
"-DCMAKE_BUILD_TYPE=Release"
|
||||||
] ++ lib.optional usePython "-DUSE_PYTHON_CONFIG=ON";
|
] ++ lib.optional usePython "-DUSE_PYTHON_CONFIG=ON";
|
||||||
|
|
||||||
|
# https://github.com/pothosware/SoapySDR/issues/352
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace lib/SoapySDR.in.pc \
|
||||||
|
--replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
|
||||||
|
--replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
|
||||||
|
'';
|
||||||
|
|
||||||
postFixup = lib.optionalString (lib.length extraPackages != 0) ''
|
postFixup = lib.optionalString (lib.length extraPackages != 0) ''
|
||||||
# Join all plugins via symlinking
|
# Join all plugins via symlinking
|
||||||
for i in ${toString extraPackages}; do
|
for i in ${toString extraPackages}; do
|
||||||
|
|
Loading…
Reference in a new issue