soapysdr: fix pkg-config paths
This commit is contained in:
parent
92dd57f4af
commit
20fb8cb774
|
@ -25,6 +25,11 @@ in stdenv.mkDerivation {
|
||||||
sha256 = "19f2x0pkxvf9figa0pl6xqlcz8fblvqb19mcnj632p0l8vk6qdv2";
|
sha256 = "19f2x0pkxvf9figa0pl6xqlcz8fblvqb19mcnj632p0l8vk6qdv2";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# see https://github.com/pothosware/SoapySDR/issues/352 for upstream issue
|
||||||
|
./fix-pkgconfig.patch
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake makeWrapper pkg-config ];
|
nativeBuildInputs = [ cmake makeWrapper pkg-config ];
|
||||||
buildInputs = [ libusb-compat-0_1 ncurses ]
|
buildInputs = [ libusb-compat-0_1 ncurses ]
|
||||||
++ lib.optionals usePython [ python swig2 ];
|
++ lib.optionals usePython [ python swig2 ];
|
||||||
|
|
14
pkgs/applications/radio/soapysdr/fix-pkgconfig.patch
Normal file
14
pkgs/applications/radio/soapysdr/fix-pkgconfig.patch
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
diff --git a/lib/SoapySDR.in.pc b/lib/SoapySDR.in.pc
|
||||||
|
index a1ca698..fd2f4c0 100644
|
||||||
|
--- a/lib/SoapySDR.in.pc
|
||||||
|
+++ b/lib/SoapySDR.in.pc
|
||||||
|
@@ -1,7 +1,5 @@
|
||||||
|
-prefix=@CMAKE_INSTALL_PREFIX@
|
||||||
|
-exec_prefix=${prefix}
|
||||||
|
-libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
|
||||||
|
-includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
|
||||||
|
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@
|
||||||
|
+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
|
||||||
|
|
||||||
|
Name: Soapy SDR
|
||||||
|
Description: Vendor and platform neutral SDR interface library.
|
Loading…
Reference in a new issue