19 stdenv.mkDerivation (finalAttrs: {
23 src = fetchFromGitHub {
26 rev = "soapy-sdr-${finalAttrs.version}";
27 sha256 = "19f2x0pkxvf9figa0pl6xqlcz8fblvqb19mcnj632p0l8vk6qdv2";
31 # Fix for https://github.com/pothosware/SoapySDR/issues/352
33 url = "https://github.com/pothosware/SoapySDR/commit/10c05b3e52caaa421147d6b4623eccd3fc3be3f4.patch";
34 hash = "sha256-D7so6NSZiU6SXbzns04Q4RjSZW0FJ+MYobvvVpVMjws=";
48 ++ lib.optionals usePython [
53 propagatedBuildInputs = lib.optionals usePython [ python.pkgs.numpy ];
55 cmakeFlags = lib.optionals usePython [ "-DUSE_PYTHON_CONFIG=ON" ];
57 postFixup = lib.optionalString (extraPackages != [ ]) (
58 # Join all plugins via symlinking
59 lib.pipe extraPackages [
61 ${buildPackages.xorg.lndir}/bin/lndir -silent ${pkg} $out
66 # Needed for at least the remote plugin server
67 for file in $out/bin/*; do
68 wrapProgram "$file" --prefix SOAPY_SDR_PLUGIN_PATH : ${lib.escapeShellArg (lib.makeSearchPath finalAttrs.passthru.searchPath extraPackages)}
74 tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
75 searchPath = "lib/SoapySDR/modules${lib.versions.majorMinor finalAttrs.version}";
79 homepage = "https://github.com/pothosware/SoapySDR";
80 description = "Vendor and platform neutral SDR support library";
81 license = licenses.boost;
82 maintainers = with maintainers; [ markuskowa ];
83 mainProgram = "SoapySDRUtil";
84 pkgConfigModules = [ "SoapySDR" ];
85 platforms = platforms.unix;