mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 08:39:08 +03:00
2d08e55e9b
- Write a `mkDerivation` and `mkDerivationWith` function for gnuradio, like qt5. - qradiolink, gqrx: Use gnuradio's callPackage and mkDerivation. - Use gnuradio.callPackage to define all gnuradio.pkgs. - Move all gnuradio packages expressions to pkgs/development/gnuradio-modules/ - modeled after Python's. - Add more paths to gnuradio's wrapper - add the extra packages as python modules, and add their executables with proper env vars wrapping. Co-authored-by: Frederik Rietdijk <fridh@fridh.nl>
47 lines
1.0 KiB
Nix
47 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 overriden and commonly
|
|
boost
|
|
uhd
|
|
;
|
|
inherit mkDerivationWith mkDerivation;
|
|
};
|
|
|
|
in {
|
|
|
|
inherit callPackage mkDerivation mkDerivationWith;
|
|
|
|
### Packages
|
|
|
|
inherit gnuradio;
|
|
|
|
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 { };
|
|
|
|
})
|