2020-10-16 20:31:20 +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;
|
|
|
|
|
|
|
|
callPackage = self.newScope {
|
|
|
|
inherit (gnuradio)
|
2021-03-13 11:50:15 +00:00
|
|
|
# Packages that are potentially overriden and used as deps here.
|
2020-10-16 20:31:20 +00:00
|
|
|
boost
|
|
|
|
uhd
|
2021-03-13 11:50:15 +00:00
|
|
|
volk
|
2020-10-16 20:31:20 +00:00
|
|
|
;
|
|
|
|
inherit mkDerivationWith mkDerivation;
|
|
|
|
};
|
|
|
|
|
|
|
|
in {
|
|
|
|
|
|
|
|
inherit callPackage mkDerivation mkDerivationWith;
|
|
|
|
|
|
|
|
### Packages
|
|
|
|
|
|
|
|
inherit gnuradio;
|
2021-03-25 14:50:26 +00:00
|
|
|
inherit (gnuradio) python;
|
2020-10-16 20:31:20 +00:00
|
|
|
|
|
|
|
osmosdr = callPackage ../development/gnuradio-modules/osmosdr/default.nix { };
|
|
|
|
|
|
|
|
ais = callPackage ../development/gnuradio-modules/ais/default.nix { };
|
|
|
|
|
|
|
|
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 { };
|
|
|
|
|
|
|
|
})
|