diff options
author | Doron Behar <doron.behar@gmail.com> | 2020-10-16 23:31:20 +0300 |
---|---|---|
committer | Doron Behar <doron.behar@gmail.com> | 2021-03-13 12:46:59 +0200 |
commit | 2d08e55e9b8f96cf00466bd55fe0d132f1abd008 (patch) | |
tree | 1be9003486550aea9f8d92e6bf14eb3ca54af7df /pkgs/applications/radio/qradiolink | |
parent | 7690f9a312e49e56b6df443169e5bf2ea420e0a7 (diff) |
gnuradio.pkgs: init
- 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>
Diffstat (limited to 'pkgs/applications/radio/qradiolink')
-rw-r--r-- | pkgs/applications/radio/qradiolink/default.nix | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/pkgs/applications/radio/qradiolink/default.nix b/pkgs/applications/radio/qradiolink/default.nix index 24c5f987f1764..1688d0010fe23 100644 --- a/pkgs/applications/radio/qradiolink/default.nix +++ b/pkgs/applications/radio/qradiolink/default.nix @@ -1,13 +1,22 @@ -{ lib, stdenv, fetchFromGitHub, alsaLib, boost -, qt4, libpulseaudio, codec2, libconfig -, gnuradio, gr-osmosdr, gsm -, libopus, libjpeg, protobuf, qwt, speex +{ lib +, mkDerivation +, fetchFromGitHub +, libpulseaudio +, libconfig +, gnuradio +, gnuradioPackages +, gsm +, libopus +, libjpeg +, protobuf +, speex +, qmake4Hook } : let version = "0.5.0"; -in stdenv.mkDerivation { +in mkDerivation { pname = "qradiolink"; inherit version; @@ -32,20 +41,17 @@ in stdenv.mkDerivation { ''; buildInputs = [ - qt4 - alsaLib - boost libpulseaudio - codec2 libconfig gsm - gnuradio - gr-osmosdr + gnuradioPackages.osmosdr libopus libjpeg - protobuf speex - qwt + ]; + nativeBuildInputs = [ + protobuf + qmake4Hook ]; enableParallelBuilding = true; |