diff options
author | Alexander Shpilkin <ashpilkin@gmail.com> | 2022-05-18 22:31:38 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2022-09-07 21:49:33 +0300 |
commit | 9d05c944628c016a9f0accb74aa35b22f46b5683 (patch) | |
tree | 351a495a13c5a2ddd49c1d126cbb19faf667f313 /pkgs/applications | |
parent | 02f6b12ab18206c17fa9e2e5f4d7f5d7068450f9 (diff) |
soapysdr: fix paths in pkg-config file
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/radio/soapysdr/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/applications/radio/soapysdr/default.nix b/pkgs/applications/radio/soapysdr/default.nix index 422e665b9372b..adf997773eccf 100644 --- a/pkgs/applications/radio/soapysdr/default.nix +++ b/pkgs/applications/radio/soapysdr/default.nix @@ -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 |