Merge pull request #182762 from luizribeiro/soapyrtlsdr

soapyrtlsdr: 0.3.0 -> 0.3.3
This commit is contained in:
Winter 2022-07-24 23:44:41 -04:00 committed by GitHub
commit e61492bc46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 14 deletions

View file

@ -7501,6 +7501,16 @@
githubId = 22085373;
name = "Luis Hebendanz";
};
luizribeiro = {
email = "nixpkgs@l9o.dev";
matrix = "@luizribeiro:matrix.org";
name = "Luiz Ribeiro";
github = "luizribeiro";
githubId = 112069;
keys = [{
fingerprint = "97A0 AE5E 03F3 499B 7D7A 65C6 76A4 1432 37EF 5817";
}];
};
lunarequest = {
email = "nullarequest@vivlaid.net";
github = "Lunarequest";

View file

@ -1,23 +1,29 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
, rtl-sdr, soapysdr
} :
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, rtl-sdr
, soapysdr
, libobjc
, IOKit
, Security
}:
let
version = "0.3.0";
in stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
pname = "soapyrtlsdr";
inherit version;
version = "0.3.3";
src = fetchFromGitHub {
owner = "pothosware";
repo = "SoapyRTLSDR";
rev = "soapy-rtlsdr-${version}";
sha256 = "15j0s7apbg9cjr6rcbr058kl0r3szwzf00ixcbykxb77fh7c6r9w";
rev = "soapy-rtl-sdr-${finalAttrs.version}";
sha256 = "sha256-IapdrBE8HhibY52Anm76/mVAoA0GghwnRCxxfGkyLTw=";
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ rtl-sdr soapysdr ];
buildInputs = [ rtl-sdr soapysdr ]
++ lib.optionals stdenv.isDarwin [ libobjc IOKit Security ];
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
@ -25,7 +31,7 @@ in stdenv.mkDerivation {
homepage = "https://github.com/pothosware/SoapyRTLSDR";
description = "SoapySDR plugin for RTL-SDR devices";
license = licenses.mit;
maintainers = with maintainers; [ ragge ];
maintainers = with maintainers; [ ragge luizribeiro ];
platforms = platforms.unix;
};
}
})

View file

@ -21100,7 +21100,10 @@ with pkgs;
];
};
soapyrtlsdr = callPackage ../applications/radio/soapyrtlsdr { };
soapyrtlsdr = callPackage ../applications/radio/soapyrtlsdr {
inherit (darwin) libobjc;
inherit (darwin.apple_sdk.frameworks) IOKit Security;
};
soapyuhd = callPackage ../applications/radio/soapyuhd { };