Merge pull request #41431 from lukeadams/gr-update

gnuradio: 3.7.11.1 -> 3.7.13.3

authored by

Matthew Bauer and committed by
GitHub
aea65fe7 76d1e13b

+38 -25
+9 -7
pkgs/applications/misc/gnuradio/default.nix
··· 1 1 { stdenv, fetchFromGitHub, writeText, makeWrapper 2 2 # Dependencies documented @ https://gnuradio.org/doc/doxygen/build_guide.html 3 3 # => core dependencies 4 - , cmake, pkgconfig, git, boost, cppunit, fftw 4 + , ninja, cmake, pkgconfig, git, boost, cppunit, fftw 5 5 # => python wrappers 6 6 # May be able to upgrade to swig3 7 7 , python, swig2, numpy, scipy, matplotlib 8 8 # => grc - the gnu radio companion 9 - , cheetah, pygtk 9 + , Mako, cheetah, pygtk # Note: GR is migrating to Mako. Cheetah should be removed for GR3.8 10 10 # => gr-wavelet: collection of wavelet blocks 11 11 , gsl 12 12 # => gr-qtgui: the Qt-based GUI ··· 26 26 27 27 stdenv.mkDerivation rec { 28 28 name = "gnuradio-${version}"; 29 - version = "3.7.11.1"; 29 + version = "3.7.13.3"; 30 30 31 31 src = fetchFromGitHub { 32 32 owner = "gnuradio"; 33 33 repo = "gnuradio"; 34 - rev = "6d2221196082a4954c249dc6955e33d5832a56f2"; 35 - sha256 = "1fkrb8cnjbriy2x94lz73q6aqxar1rkvfbafp266ykdpm29b4xgm"; 34 + rev = "v${version}"; 35 + sha256 = "0fqxn1k41xqd52i5z528zdhkn52i9z5hl6cc75ggdx9iqxhvb3jj"; 36 36 fetchSubmodules = true; 37 37 }; 38 38 39 39 nativeBuildInputs = [ 40 - cmake pkgconfig git makeWrapper cppunit orc 40 + cmake pkgconfig git makeWrapper cppunit orc ninja 41 41 ]; 42 42 43 43 buildInputs = [ ··· 47 47 ++ stdenv.lib.optionals stdenv.isDarwin [ CoreAudio ]; 48 48 49 49 propagatedBuildInputs = [ 50 - cheetah numpy scipy matplotlib pyqt4 pygtk wxPython pyopengl 50 + Mako cheetah numpy scipy matplotlib pyqt4 pygtk wxPython pyopengl 51 51 ]; 52 52 53 53 enableParallelBuilding = true; ··· 69 69 setupHook = [ grcSetupHook ]; 70 70 71 71 # patch wxgui and pygtk check due to python importerror in a headless environment 72 + # wxgtk gui will be removed in GR3.8 73 + # c++11 hack may not be necessary anymore 72 74 preConfigure = '' 73 75 export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Wno-unused-variable ${stdenv.lib.optionalString (!stdenv.isDarwin) "-std=c++11"}" 74 76 sed -i 's/.*wx\.version.*/set(WX_FOUND TRUE)/g' gr-wxgui/CMakeLists.txt
+8 -2
pkgs/applications/misc/rtl-sdr/default.nix
··· 1 - { stdenv, fetchgit, cmake, pkgconfig, libusb1 }: 1 + { stdenv, lib, fetchpatch, fetchgit, cmake, pkgconfig, libusb1 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "rtl-sdr-${version}"; ··· 26 26 grep -q "Requires:" "$pcfile" && { echo "Upstream has added 'Requires:' in $(basename "$pcfile"); update nix expression."; exit 1; } 27 27 echo "Requires: libusb-1.0" >> "$pcfile" 28 28 ''; 29 - 29 + patches = lib.optionals stdenv.isDarwin [ 30 + (fetchpatch { 31 + name = "linker-fix.patch"; 32 + url = "https://github.com/lukeadams/rtl-sdr/commit/7a66dcf268305b5aa507d1756799942c74549b72.patch"; 33 + sha256 = "0cn9fyf4ay4i3shvxj1ivgyxjvfm401irk560jdjl594nzadrcsl"; 34 + }) 35 + ]; 30 36 meta = with stdenv.lib; { 31 37 description = "Turns your Realtek RTL2832 based DVB dongle into a SDR receiver"; 32 38 homepage = http://sdr.osmocom.org/trac/wiki/rtl-sdr;
+12 -7
pkgs/development/libraries/libbladeRF/default.nix
··· 1 - { stdenv, fetchFromGitHub, pkgconfig, cmake, git, doxygen, help2man, tecla 1 + { stdenv, lib, fetchFromGitHub, pkgconfig, cmake, git, doxygen, help2man, ncurses, tecla 2 2 , libusb1, udev }: 3 3 4 4 stdenv.mkDerivation rec { ··· 13 13 }; 14 14 15 15 nativeBuildInputs = [ pkgconfig ]; 16 - buildInputs = [ cmake git doxygen help2man tecla libusb1 udev ]; 16 + # ncurses used due to https://github.com/Nuand/bladeRF/blob/ab4fc672c8bab4f8be34e8917d3f241b1d52d0b8/host/utilities/bladeRF-cli/CMakeLists.txt#L208 17 + buildInputs = [ cmake git doxygen help2man tecla libusb1 ] 18 + ++ lib.optionals stdenv.isLinux [ udev ] 19 + ++ lib.optionals stdenv.isDarwin [ ncurses ]; 17 20 18 21 # Fixup shebang 19 22 prePatch = "patchShebangs host/utilities/bladeRF-cli/src/cmd/doc/generate.bash"; ··· 24 27 ''; 25 28 26 29 cmakeFlags = [ 27 - "-DCMAKE_BUILD_TYPE=Debug" 30 + "-DBUILD_DOCUMENTATION=ON" 31 + ] ++ lib.optionals stdenv.isLinux [ 28 32 "-DUDEV_RULES_PATH=etc/udev/rules.d" 29 33 "-DINSTALL_UDEV_RULES=ON" 30 - "-DBUILD_DOCUMENTATION=ON" 31 34 ]; 32 35 33 - meta = with stdenv.lib; { 34 - homepage = https://www.nuand.com/; 36 + hardeningDisable = [ "fortify" ]; 37 + 38 + meta = with lib; { 39 + homepage = https://nuand.com/libbladeRF-doc; 35 40 description = "Supporting library of the BladeRF SDR opensource hardware"; 36 41 license = licenses.lgpl21; 37 42 maintainers = with maintainers; [ funfunctor ]; 38 - platforms = with platforms; linux; 43 + platforms = platforms.unix; 39 44 }; 40 45 }
+8 -8
pkgs/development/tools/misc/uhd/default.nix
··· 9 9 10 10 let 11 11 uhdVer = "v" + version; 12 - ImgVer = "uhd-images_3.11.0.git-227-g9277fc58.tar.xz"; 13 12 14 13 # UHD seems to use three different version number styles: x.y.z, xxx_yyy_zzz 15 14 # and xxx.yyy.zzz. Hrmpf... style keeps changing 16 - version = "3.11.0.0"; 15 + version = "3.12.0.0"; 17 16 18 - # Firmware images are downloaded (pre-built) from: 19 - # http://files.ettus.com/binaries/images/ 17 + # Firmware images are downloaded (pre-built) from the respective release on Github 20 18 uhdImagesSrc = fetchurl { 21 - url = "http://files.ettus.com/binaries/images/${ImgVer}"; 22 - sha256 = "1z8isnlxc5h0168jjpdvdv7rkd55x4dkfh14m8pc501zsf8azd6z"; 19 + url = "https://github.com/EttusResearch/uhd/releases/download/${uhdVer}/uhd-images_${version}.tar.xz"; 20 + sha256 = "1glf2qay4asajbl92fy432idqk0sj5h603najr8sgkbdyyyr933p"; 23 21 }; 24 22 25 23 in stdenv.mkDerivation { ··· 29 27 owner = "EttusResearch"; 30 28 repo = "uhd"; 31 29 rev = "${uhdVer}"; 32 - sha256 = "1ilx1a8k5zygfq7acm9yk2fi368b1a1l7ll21kmmxjv6ifz8ds5q"; 30 + sha256 = "0m7vw7dmvn7d01kkzphayzi0bk50m5v9a17rpnxhn0bqhw282ksv"; 33 31 }; 34 32 35 33 enableParallelBuilding = true; ··· 49 47 50 48 postPhases = [ "installFirmware" ]; 51 49 50 + # UHD expects images in `$CMAKE_INSTALL_PREFIX/share/uhd/images` 52 51 installFirmware = '' 53 - tar --strip-components=1 -xvf "${uhdImagesSrc}" -C "$out" 52 + mkdir -p "$out/share/uhd/images" 53 + tar --strip-components=1 -xvf "${uhdImagesSrc}" -C "$out/share/uhd/images" 54 54 ''; 55 55 56 56 meta = with stdenv.lib; {
+1 -1
pkgs/top-level/all-packages.nix
··· 15946 15946 gnss-sdr = callPackage ../applications/misc/gnss-sdr { }; 15947 15947 15948 15948 gnuradio = callPackage ../applications/misc/gnuradio { 15949 - inherit (python2Packages) cheetah lxml matplotlib numpy python pyopengl pyqt4 scipy wxPython pygtk; 15949 + inherit (python2Packages) cheetah lxml Mako matplotlib numpy python pyopengl pyqt4 scipy wxPython pygtk; 15950 15950 inherit (darwin.apple_sdk.frameworks) CoreAudio; 15951 15951 fftw = fftwFloat; 15952 15952 qwt = qwt6_qt4;