From e832834a14edbb7d2aa1f31a0b3ce16e2f549db2 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Wed, 6 Dec 2017 00:37:05 -0800 Subject: [PATCH] airspy: init at 1.0.9 --- lib/maintainers.nix | 1 + pkgs/applications/misc/airspy/default.nix | 31 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 34 insertions(+) create mode 100644 pkgs/applications/misc/airspy/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 4d85ad9a2b28..27e62c30517b 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -390,6 +390,7 @@ manveru = "Michael Fellinger "; marcweber = "Marc Weber "; markus1189 = "Markus Hauck "; + markuskowa = "Markus Kowalewski "; markWot = "Markus Wotringer "; martijnvermaat = "Martijn Vermaat "; martingms = "Martin Gammelsæter "; diff --git a/pkgs/applications/misc/airspy/default.nix b/pkgs/applications/misc/airspy/default.nix new file mode 100644 index 000000000000..b73cc09eaec0 --- /dev/null +++ b/pkgs/applications/misc/airspy/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchFromGitHub +, cmake , pkgconfig, libusb +}: + +let + version = "1.0.9"; +in + stdenv.mkDerivation { + name = "airspy-${version}"; + + src = fetchFromGitHub { + owner = "airspy"; + repo = "airspyone_host"; + rev = "v${version}"; + sha256 = "04kx2p461sqd4q354n1a99zcabg9h29dwcnyhakykq8bpg3mgf1x"; + }; + + nativeBuildInputs = [ cmake pkgconfig ]; + buildInputs = [ libusb ]; + + cmakeFlags = [ "-DINSTALL_UDEV_RULES=OFF" ]; + + meta = with stdenv.lib; { + homepage = http://github.com/airspy/airspyone_host; + description = "Host tools and driver library for the AirSpy SDR"; + license = licenses.free; + platforms = platforms.linux; + maintainer = with maintainers; [ markuskowa ]; + }; + } + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cbd8327121ff..475065d2d02c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -430,6 +430,8 @@ with pkgs; airsonic = callPackage ../servers/misc/airsonic { }; + airspy = callPackage ../applications/misc/airspy { }; + aj-snapshot = callPackage ../applications/audio/aj-snapshot { }; albert = libsForQt5.callPackage ../applications/misc/albert {};