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/development/gnuradio-modules/limesdr | |
parent | 7690f9a312e49e56b6df443169e5bf2ea420e0a7 (diff) | |
download | nixpkgs-2d08e55e9b8f96cf00466bd55fe0d132f1abd008.tar nixpkgs-2d08e55e9b8f96cf00466bd55fe0d132f1abd008.tar.gz nixpkgs-2d08e55e9b8f96cf00466bd55fe0d132f1abd008.tar.bz2 nixpkgs-2d08e55e9b8f96cf00466bd55fe0d132f1abd008.tar.lz nixpkgs-2d08e55e9b8f96cf00466bd55fe0d132f1abd008.tar.xz nixpkgs-2d08e55e9b8f96cf00466bd55fe0d132f1abd008.tar.zst nixpkgs-2d08e55e9b8f96cf00466bd55fe0d132f1abd008.zip |
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/development/gnuradio-modules/limesdr')
-rw-r--r-- | pkgs/development/gnuradio-modules/limesdr/default.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/development/gnuradio-modules/limesdr/default.nix b/pkgs/development/gnuradio-modules/limesdr/default.nix new file mode 100644 index 00000000000..63136b33d65 --- /dev/null +++ b/pkgs/development/gnuradio-modules/limesdr/default.nix @@ -0,0 +1,59 @@ +{ lib +, mkDerivation +, fetchFromGitHub +, gnuradio +, cmake +, pkg-config +, doxygen +, swig +, python +, log4cpp +, mpir +, boost +, gmp +, icu +, limesuite +}: + +let + version = { + "3.7" = "2.0.0"; + "3.8" = "3.0.1"; + }.${gnuradio.versionAttr.major}; + src = fetchFromGitHub { + owner = "myriadrf"; + repo = "gr-limesdr"; + rev = "v${version}"; + sha256 = { + "3.7" = "0ldqvfwl0gil89l9s31fjf9d7ki0dk572i8vna336igfaz348ypq"; + "3.8" = "ffs+8TU0yr6IW1xZJ/abQ1CQWGZM+zYqPRJxy3ZvM9U="; + }.${gnuradio.versionAttr.major}; + }; +in mkDerivation { + pname = "gr-limesdr"; + inherit version src; + disabledForGRafter = "3.9"; + + nativeBuildInputs = [ + cmake + pkg-config + swig + python + ]; + buildInputs = [ + log4cpp + mpir + boost + gmp + icu + limesuite + ]; + + meta = with lib; { + description = "Gnuradio source and sink blocks for LimeSDR"; + homepage = "https://wiki.myriadrf.org/Gr-limesdr_Plugin_for_GNURadio"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = [ maintainers.markuskowa ]; + }; +} |