1{
2 lib,
3 stdenv,
4 newScope,
5 gnuradio, # unwrapped gnuradio
6}:
7
8lib.makeScope newScope (
9 self:
10
11 let
12 # Modeled after qt's
13 mkDerivationWith = import ../development/gnuradio-modules/mkDerivation.nix {
14 inherit lib;
15 unwrapped = gnuradio;
16 };
17 mkDerivation = mkDerivationWith stdenv.mkDerivation;
18
19 callPackage = self.newScope (
20 {
21 inherit (gnuradio)
22 # Packages that are potentially overridden and used as deps here.
23 boost
24 volk
25 logLib
26 python
27 qwt
28 ;
29 inherit mkDerivationWith mkDerivation;
30 inherit gnuradio;
31 inherit (gnuradio) gnuradioOlder gnuradioAtLeast;
32 }
33 // lib.optionalAttrs (gnuradio.hasFeature "gr-uhd") {
34 inherit (gnuradio) uhd;
35 }
36 );
37 in
38 {
39
40 inherit callPackage mkDerivation mkDerivationWith;
41
42 ### Packages
43
44 bladeRF = callPackage ../development/gnuradio-modules/bladeRF/default.nix { };
45
46 lora_sdr = callPackage ../development/gnuradio-modules/lora_sdr/default.nix { };
47
48 osmosdr = callPackage ../development/gnuradio-modules/osmosdr/default.nix { };
49
50 fosphor = callPackage ../development/gnuradio-modules/fosphor/default.nix { };
51
52 }
53)