about summary refs log tree commit diff
path: root/pkgs/applications/radio/airspyhf/default.nix
diff options
context:
space:
mode:
authorNikolay Korotkiy <sikmir@gmail.com>2021-10-18 10:26:23 +0300
committerNikolay Korotkiy <sikmir@gmail.com>2021-10-20 09:44:10 +0300
commitdf330f0407765626475725bec364b5d51dcf123b (patch)
treefe3e3279fc970ce07335f62017ba2d46e2e9592e /pkgs/applications/radio/airspyhf/default.nix
parentd4a0547fedb48b028cccba6c34fa2aedde834f38 (diff)
airspyhf: init at 1.6.8
Diffstat (limited to 'pkgs/applications/radio/airspyhf/default.nix')
-rw-r--r--pkgs/applications/radio/airspyhf/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/applications/radio/airspyhf/default.nix b/pkgs/applications/radio/airspyhf/default.nix
new file mode 100644
index 0000000000000..a54e8441e36ba
--- /dev/null
+++ b/pkgs/applications/radio/airspyhf/default.nix
@@ -0,0 +1,25 @@
+{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libusb1 }:
+
+stdenv.mkDerivation rec {
+  pname = "airspyhf";
+  version = "1.6.8";
+
+  src = fetchFromGitHub {
+    owner = "airspy";
+    repo = pname;
+    rev = version;
+    hash = "sha256-RKTMEDPeKcerJZtXTn8eAShxDcZUMgeQg/+7pEpMyVg=";
+  };
+
+  nativeBuildInputs = [ cmake pkg-config ];
+
+  buildInputs = [ libusb1 ];
+
+  meta = with lib; {
+    description = "User mode driver for Airspy HF+";
+    homepage = "https://github.com/airspy/airspyhf";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ sikmir ];
+    platforms = platforms.unix;
+  };
+}