nur-packages

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

commit 55ae8eb0a2589b7db6f631ff7c0f185cc56baa94
parent afc48ffe5867b33d1b63cb7ff1bcc363f6f89917
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Sat, 10 Jul 2021 01:07:07 +0300

Add libad9361

Diffstat:
Mpkgs/default.nix | 4++++
Apkgs/radio/libad9361/default.nix | 25+++++++++++++++++++++++++
2 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -269,6 +269,10 @@ lib.makeScope newScope ( smrender = callPackage ./osm/smrender { }; taginfo-tools = callPackage ./osm/taginfo-tools { }; + ### RADIO + + libad9361 = callPackage ./radio/libad9361 { }; + ### SUCKLESS blind = callPackage ./suckless/blind { }; diff --git a/pkgs/radio/libad9361/default.nix b/pkgs/radio/libad9361/default.nix @@ -0,0 +1,25 @@ +{ lib, stdenv, fetchFromGitHub, cmake, libiio }: + +stdenv.mkDerivation rec { + pname = "libad9361"; + version = "0.2"; + + src = fetchFromGitHub { + owner = "analogdevicesinc"; + repo = "libad9361-iio"; + rev = "v${version}"; + hash = "sha256-dYoFWRnREvlOC514ZpmmvoS37DmIkVqfq7JPpTXqXd8="; + }; + + nativeBuildInputs = [ cmake ]; + + buildInputs = [ libiio ]; + + meta = with lib; { + description = "IIO AD9361 library for filter design and handling, multi-chip sync, etc"; + inherit (src.meta) homepage; + license = licenses.lgpl21Plus; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}