nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 0057f68422efce2cf8b5c0139c0c2df00eb72fe8
parent 55ae8eb0a2589b7db6f631ff7c0f185cc56baa94
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Sat, 10 Jul 2021 02:36:11 +0300

Add airspyhf

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/radio/airspyhf/default.nix | 25+++++++++++++++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -271,6 +271,7 @@ lib.makeScope newScope ( ### RADIO + airspyhf = callPackage ./radio/airspyhf { }; libad9361 = callPackage ./radio/libad9361 { }; ### SUCKLESS diff --git a/pkgs/radio/airspyhf/default.nix b/pkgs/radio/airspyhf/default.nix @@ -0,0 +1,25 @@ +{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libusb }: + +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 = [ libusb ]; + + meta = with lib; { + description = "User mode driver for Airspy HF+"; + inherit (src.meta) homepage; + license = licenses.bsd3; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}