2021-03-15 08:37:03 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, newScope
|
|
|
|
, gnuradio # unwrapped gnuradio
|
|
|
|
}:
|
|
|
|
|
|
|
|
lib.makeScope newScope ( self:
|
|
|
|
|
|
|
|
let
|
|
|
|
# Modeled after qt's
|
|
|
|
mkDerivationWith = import ../development/gnuradio-modules/mkDerivation.nix {
|
|
|
|
inherit lib;
|
|
|
|
unwrapped = gnuradio;
|
|
|
|
};
|
|
|
|
mkDerivation = mkDerivationWith stdenv.mkDerivation;
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
callPackage = self.newScope ({
|
2021-03-15 08:37:03 +00:00
|
|
|
inherit (gnuradio)
|
|
|
|
# Packages that are potentially overriden and used as deps here.
|
|
|
|
boost
|
|
|
|
volk
|
|
|
|
;
|
|
|
|
inherit mkDerivationWith mkDerivation;
|
2022-02-20 05:27:41 +00:00
|
|
|
} // lib.optionalAttrs (gnuradio.hasFeature "gr-uhd") {
|
|
|
|
inherit (gnuradio) uhd;
|
|
|
|
} // (if (lib.versionAtLeast gnuradio.versionAttr.major "3.10") then {
|
|
|
|
inherit (gnuradio) spdlog;
|
|
|
|
} else {
|
|
|
|
inherit (gnuradio) log4cpp;
|
|
|
|
}));
|
2021-03-15 08:37:03 +00:00
|
|
|
in {
|
|
|
|
|
|
|
|
inherit callPackage mkDerivation mkDerivationWith;
|
|
|
|
|
|
|
|
### Packages
|
|
|
|
|
|
|
|
inherit gnuradio;
|
2021-04-05 15:23:46 +00:00
|
|
|
inherit (gnuradio) python;
|
2021-03-15 08:37:03 +00:00
|
|
|
|
|
|
|
osmosdr = callPackage ../development/gnuradio-modules/osmosdr/default.nix { };
|
|
|
|
|
|
|
|
ais = callPackage ../development/gnuradio-modules/ais/default.nix { };
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
grnet = callPackage ../development/gnuradio-modules/grnet/default.nix { };
|
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
gsm = callPackage ../development/gnuradio-modules/gsm/default.nix { };
|
|
|
|
|
|
|
|
nacl = callPackage ../development/gnuradio-modules/nacl/default.nix { };
|
|
|
|
|
|
|
|
rds = callPackage ../development/gnuradio-modules/rds/default.nix { };
|
|
|
|
|
|
|
|
limesdr = callPackage ../development/gnuradio-modules/limesdr/default.nix { };
|
|
|
|
|
|
|
|
})
|