about summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authormarkuskowa <markus.kowalewski@gmail.com>2018-09-23 10:08:50 +0200
committerxeji <36407913+xeji@users.noreply.github.com>2018-09-23 10:08:50 +0200
commit3f883b443cfcbaede0cc8b8171c14178496ea003 (patch)
treedcf69de562c1f95bf9e6001518e56eafec300cb3 /pkgs/applications/misc
parente141f7cd2fdd4d81dd4fd6717c9a0172f20c2c2b (diff)
gnuradio-limesdr: init at 1.0.0-RC (#47176)
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/gnuradio/limesdr.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/applications/misc/gnuradio/limesdr.nix b/pkgs/applications/misc/gnuradio/limesdr.nix
new file mode 100644
index 0000000000000..535dbfa3c53d7
--- /dev/null
+++ b/pkgs/applications/misc/gnuradio/limesdr.nix
@@ -0,0 +1,38 @@
+{ stdenv, fetchFromGitHub, cmake, boost, gnuradio
+, pythonSupport ? true, python, swig, limesuite
+} :
+
+assert pythonSupport -> python != null && swig != null;
+
+let
+  version = "1.0.0-RC";
+
+in stdenv.mkDerivation rec {
+  name = "gnuradio-limesdr-${version}";
+
+  src = fetchFromGitHub {
+    owner = "myriadrf";
+    repo = "gr-limesdr";
+    rev = "v${version}";
+    sha256 = "0b34mg9nfar2gcir98004ixrxmxi8p3p2hrvvi1razd869x2a0lf";
+  };
+
+  nativeBuildInputs = [
+    cmake
+  ] ++ stdenv.lib.optionals pythonSupport [ swig ];
+
+  buildInputs = [
+    boost gnuradio limesuite
+  ] ++ stdenv.lib.optionals pythonSupport [ python ];
+
+
+  enableParallelBuilding = true;
+
+  meta = with stdenv.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 ++ platforms.darwin;
+    maintainers = [ maintainers.markuskowa ];
+  };
+}