Unverified Commit 7fd9c406 authored by Doron Behar's avatar Doron Behar Committed by GitHub
Browse files

soapysdr: fix searchPath (#383264)

parents 13d78630 959e03c7
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -17,7 +17,8 @@

stdenv.mkDerivation (finalAttrs: {
  pname = "soapysdr";
  version = "0.8.2-pre";
  # Don't forget to change passthru.abiVersion
  version = "0.8.1-unstable-2024-12-22";

  src = fetchFromGitHub {
    owner = "pothosware";
@@ -25,8 +26,8 @@ stdenv.mkDerivation (finalAttrs: {

    # Instead of applying several patches for Python 3.12 compat, just take the latest, from:
    # use old get python lib for v2 (#437)
    rev = "8c6cb7c5223fad995e355486527589c63aa3b21e";
    hash = "sha256-CKasL1mlpeuxXyPe6VDdAvb1l5a1cwWgyP7XX1aM73I=";
    rev = "309335ec6a52eb712387ed025d705a3c0f7a1e24";
    hash = "sha256-a9414gX4fUAPQaKKqrWgSlFHZH0BWqbgHzhVCKnIn2M=";
  };

  nativeBuildInputs = [
@@ -66,7 +67,9 @@ stdenv.mkDerivation (finalAttrs: {

  passthru = {
    tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
    searchPath = "lib/SoapySDR/modules${lib.versions.majorMinor finalAttrs.version}";
    # SOAPY_SDR_ABI_VERSION defined in include/SoapySDR/Version.h
    abiVersion = "0.8-3";
    searchPath = "lib/SoapySDR/modules${finalAttrs.passthru.abiVersion}";
  };

  meta = with lib; {