mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
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"
|
||||
] ++ 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) ''
|
||||
# Join all plugins via symlinking
|
||||
for i in ${toString extraPackages}; do
|
||||
|
Loading…
Reference in New Issue
Block a user