nixpkgs/pkgs/top-level/gnuradio-packages.nix
wucke13 e8bc2c81a0
gnuradioPackages.bladeRF: init at 0-unstable-2023-11-20 (#345249)
gr-bladeRF: init at unstable-2023-11-20

Co-authored-by: Arne Keller <2012gdwu+github@posteo.de>
2025-01-05 21:38:01 +01:00

45 lines
1.0 KiB
Nix

{ 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)
# Packages that are potentially overridden and used as deps here.
boost
volk
logLib
python
qwt
;
inherit mkDerivationWith mkDerivation;
inherit gnuradio;
inherit (gnuradio) gnuradioOlder gnuradioAtLeast;
} // lib.optionalAttrs (gnuradio.hasFeature "gr-uhd") {
inherit (gnuradio) uhd;
});
in {
inherit callPackage mkDerivation mkDerivationWith;
### Packages
bladeRF = callPackage ../development/gnuradio-modules/bladeRF/default.nix { };
osmosdr = callPackage ../development/gnuradio-modules/osmosdr/default.nix { };
fosphor = callPackage ../development/gnuradio-modules/fosphor/default.nix { };
})