diff options
author | Doron Behar <doron.behar@gmail.com> | 2020-12-10 22:49:07 +0200 |
---|---|---|
committer | Doron Behar <doron.behar@gmail.com> | 2021-03-13 12:47:00 +0200 |
commit | fea0ac887eaa649dfc0d45cf58cb37d767f5071e (patch) | |
tree | e04277882d47f1597fe177099ea162b10d75cf8f /pkgs/applications/radio/qradiolink | |
parent | b944ca935012fb48c7f801fcc5edd745ad1639da (diff) |
qradiolink: 0.5.0 -> 0.8.5-2
Use gnuradio.pkgs.mkDerivation (gnuradio 3.8) and updated deps.
Diffstat (limited to 'pkgs/applications/radio/qradiolink')
-rw-r--r-- | pkgs/applications/radio/qradiolink/default.nix | 48 |
1 files changed, 31 insertions, 17 deletions
diff --git a/pkgs/applications/radio/qradiolink/default.nix b/pkgs/applications/radio/qradiolink/default.nix index 1688d0010fe23..db459eb3bb346 100644 --- a/pkgs/applications/radio/qradiolink/default.nix +++ b/pkgs/applications/radio/qradiolink/default.nix @@ -1,57 +1,71 @@ { lib -, mkDerivation , fetchFromGitHub , libpulseaudio , libconfig +# Needs a gnuradio built with qt gui support , gnuradio -, gnuradioPackages +# Not gnuradioPackages' +, codec2 +, log4cpp +, gmp , gsm , libopus , libjpeg +, libsndfile +, libftdi , protobuf , speex -, qmake4Hook -} : +, speexdsp +}: -let - version = "0.5.0"; - -in mkDerivation { +gnuradio.pkgs.mkDerivation rec { pname = "qradiolink"; - inherit version; + version = "0.8.5-2"; src = fetchFromGitHub { - owner = "kantooon"; + owner = "qradiolink"; repo = "qradiolink"; rev = version; - sha256 = "0xhg5zhjznmls5m3rhpk1qx0dipxmca12s85w15d0i7qwva2f1gi"; + sha256 = "MgHfKR3AJW3pIN9oCBr4BWxk1fGSCpLmMzjxvuTmuFA="; }; preBuild = '' - cd ext + cd src/ext protoc --cpp_out=. Mumble.proto protoc --cpp_out=. QRadioLink.proto - cd .. + cd ../.. qmake ''; installPhase = '' - mkdir -p $out/bin - cp qradiolink $out/bin + install -D qradiolink $out/bin/qradiolink + install -Dm644 src/res/icon.png $out/share/pixmaps/qradiolink.png + install -Dm644 qradiolink.desktop $out/share/applications/qradiolink.desktop ''; buildInputs = [ + gnuradio.unwrapped.boost + codec2 + log4cpp + gmp libpulseaudio libconfig gsm - gnuradioPackages.osmosdr + gnuradio.pkgs.osmosdr libopus libjpeg speex + speexdsp + gnuradio.qt.qtbase + gnuradio.qt.qtmultimedia + libftdi + libsndfile + gnuradio.qwt ]; nativeBuildInputs = [ protobuf - qmake4Hook + gnuradio.qt.qmake + gnuradio.qt.wrapQtAppsHook ]; enableParallelBuilding = true; |