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;
|
|
|
|
|
2022-02-18 08:13:16 +00:00
|
|
|
callPackage = self.newScope ({
|
2020-10-16 20:31:20 +00:00
|
|
|
inherit (gnuradio)
|
2022-12-18 00:39:44 +00:00
|
|
|
# Packages that are potentially overridden and used as deps here.
|
2020-10-16 20:31:20 +00:00
|
|
|
boost
|
2021-03-13 11:50:15 +00:00
|
|
|
volk
|
2023-04-21 09:48:49 +00:00
|
|
|
logLib
|
2023-10-04 10:05:26 +00:00
|
|
|
python
|
2024-10-18 08:58:31 +00:00
|
|
|
qwt
|
2020-10-16 20:31:20 +00:00
|
|
|
;
|
|
|
|
inherit mkDerivationWith mkDerivation;
|
2023-10-04 10:05:26 +00:00
|
|
|
inherit gnuradio;
|
2024-01-16 22:19:41 +00:00
|
|
|
inherit (gnuradio) gnuradioOlder gnuradioAtLeast;
|
2022-02-18 08:13:16 +00:00
|
|
|
} // lib.optionalAttrs (gnuradio.hasFeature "gr-uhd") {
|
|
|
|
inherit (gnuradio) uhd;
|
2023-04-21 09:48:49 +00:00
|
|
|
});
|
2020-10-16 20:31:20 +00:00
|
|
|
in {
|
|
|
|
|
|
|
|
inherit callPackage mkDerivation mkDerivationWith;
|
|
|
|
|
|
|
|
### Packages
|
|
|
|
|
|
|
|
osmosdr = callPackage ../development/gnuradio-modules/osmosdr/default.nix { };
|
|
|
|
|
|
|
|
ais = callPackage ../development/gnuradio-modules/ais/default.nix { };
|
|
|
|
|
2024-01-29 12:30:14 +00:00
|
|
|
fosphor = callPackage ../development/gnuradio-modules/fosphor/default.nix { };
|
|
|
|
|
2021-12-08 23:13:38 +00:00
|
|
|
grnet = callPackage ../development/gnuradio-modules/grnet/default.nix { };
|
|
|
|
|
2020-10-16 20:31:20 +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 { };
|
|
|
|
|
|
|
|
})
|