gnuradioPackages.osmosdr: enable for gnuradio 3.9 and 3.10
Add the latest gr-osmosdr version, 0.2.4, for use with gnuradio 3.9 and 3.10. Add new deps as needed. Closes https://github.com/NixOS/nixpkgs/issues/226296.
This commit is contained in:
parent
2634268fa6
commit
a1fb8a399c
|
@ -7,6 +7,7 @@
|
||||||
, cmake
|
, cmake
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, logLib
|
, logLib
|
||||||
|
, libsndfile
|
||||||
, mpir
|
, mpir
|
||||||
, boost
|
, boost
|
||||||
, gmp
|
, gmp
|
||||||
|
@ -27,6 +28,8 @@ let
|
||||||
version = {
|
version = {
|
||||||
"3.7" = "0.1.5";
|
"3.7" = "0.1.5";
|
||||||
"3.8" = "0.2.3";
|
"3.8" = "0.2.3";
|
||||||
|
"3.9" = "0.2.4";
|
||||||
|
"3.10" = "0.2.4";
|
||||||
}.${gnuradio.versionAttr.major};
|
}.${gnuradio.versionAttr.major};
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "git://git.osmocom.org/gr-osmosdr";
|
url = "git://git.osmocom.org/gr-osmosdr";
|
||||||
|
@ -34,12 +37,14 @@ let
|
||||||
sha256 = {
|
sha256 = {
|
||||||
"3.7" = "0bf9bnc1c3c4yqqqgmg3nhygj6rcfmyk6pybi27f7461d2cw1drv";
|
"3.7" = "0bf9bnc1c3c4yqqqgmg3nhygj6rcfmyk6pybi27f7461d2cw1drv";
|
||||||
"3.8" = "sha256-ZfI8MshhZOdJ1U5FlnZKXsg2Rsvb6oKg943ZVYd/IWo=";
|
"3.8" = "sha256-ZfI8MshhZOdJ1U5FlnZKXsg2Rsvb6oKg943ZVYd/IWo=";
|
||||||
|
"3.9" = "sha256-d0hbiJ44lEu8V4XX7JpZVSTQwwykwKPUfiqetRBI6uI=";
|
||||||
|
"3.10" = "sha256-d0hbiJ44lEu8V4XX7JpZVSTQwwykwKPUfiqetRBI6uI=";
|
||||||
}.${gnuradio.versionAttr.major};
|
}.${gnuradio.versionAttr.major};
|
||||||
};
|
};
|
||||||
in mkDerivation {
|
in mkDerivation {
|
||||||
pname = "gr-osmosdr";
|
pname = "gr-osmosdr";
|
||||||
inherit version src;
|
inherit version src;
|
||||||
disabledForGRafter = "3.9";
|
disabledForGRafter = "3.11";
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
|
@ -55,11 +60,16 @@ in mkDerivation {
|
||||||
libbladeRF
|
libbladeRF
|
||||||
rtl-sdr
|
rtl-sdr
|
||||||
soapysdr-with-plugins
|
soapysdr-with-plugins
|
||||||
|
] ++ lib.optionals (gnuradio.hasFeature "gr-blocks") [
|
||||||
|
libsndfile
|
||||||
] ++ lib.optionals (gnuradio.hasFeature "gr-uhd") [
|
] ++ lib.optionals (gnuradio.hasFeature "gr-uhd") [
|
||||||
uhd
|
uhd
|
||||||
] ++ lib.optionals (gnuradio.hasFeature "gr-ctrlport") [
|
] ++ lib.optionals (gnuradio.hasFeature "gr-ctrlport") [
|
||||||
thrift
|
thrift
|
||||||
python.pkgs.thrift
|
python.pkgs.thrift
|
||||||
|
] ++ lib.optionals (gnuradio.hasFeature "python-support") [
|
||||||
|
python.pkgs.numpy
|
||||||
|
python.pkgs.pybind11
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
darwin.apple_sdk.frameworks.IOKit
|
darwin.apple_sdk.frameworks.IOKit
|
||||||
darwin.apple_sdk.frameworks.Security
|
darwin.apple_sdk.frameworks.Security
|
||||||
|
|
Loading…
Reference in New Issue
Block a user