about summary refs log tree commit diff
path: root/pkgs/applications/radio/soapyremote
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2019-02-09 19:34:55 +0100
committerElis Hirwing <elis@hirwing.se>2019-02-09 21:39:18 +0100
commitf986ff04d527807d5160b7443d2b51bc1a95f103 (patch)
treeb137c43d1d59ab5e7e8d694490088c9d2582c270 /pkgs/applications/radio/soapyremote
parent711275b57b2b8fec2ca3f2eefd84646817507776 (diff)
soapyremote: Move from misc to radio
Diffstat (limited to 'pkgs/applications/radio/soapyremote')
-rw-r--r--pkgs/applications/radio/soapyremote/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/applications/radio/soapyremote/default.nix b/pkgs/applications/radio/soapyremote/default.nix
new file mode 100644
index 0000000000000..f6970c156b8fb
--- /dev/null
+++ b/pkgs/applications/radio/soapyremote/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchFromGitHub, cmake, soapysdr, avahi }:
+
+let
+  version = "0.5.0";
+
+in stdenv.mkDerivation {
+  name = "soapyremote-${version}";
+
+  src = fetchFromGitHub {
+    owner = "pothosware";
+    repo = "SoapyRemote";
+    rev = "soapy-remote-${version}";
+    sha256 = "1lyjhf934zap61ky7rbk46bp8s8sjk8sgdyszhryfyf571jv9b2i";
+  };
+
+  nativeBuildInputs = [ cmake ];
+  buildInputs = [ soapysdr avahi ];
+
+  cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/pothosware/SoapyRemote;
+    description = "SoapySDR plugin for remote access to SDRs";
+    license = licenses.boost;
+    maintainers = with maintainers; [ markuskowa ];
+    platforms = platforms.linux;
+  };
+}