nur-packages

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

commit a83ee8d0dc734bb990349b501abb9855334319f9
parent 15f454cf17c85bd57ab0e80740a86caf830d5c1c
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Mon, 27 Sep 2021 22:34:38 +0300

Add linrad

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/radio/linrad/default.nix | 31+++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -303,6 +303,7 @@ lib.makeScope newScope ( airspyhf = callPackage ./radio/airspyhf { }; libad9361 = callPackage ./radio/libad9361 { }; + linrad = callPackage ./radio/linrad { }; sdrpp = callPackage ./radio/sdrpp { }; ### SUCKLESS diff --git a/pkgs/radio/linrad/default.nix b/pkgs/radio/linrad/default.nix @@ -0,0 +1,31 @@ +{ stdenv, lib, fetchsvn, cmake, nasm, libX11 }: + +stdenv.mkDerivation rec { + pname = "linrad"; + version = "2021-09-05"; + + src = fetchsvn { + url = "https://svn.code.sf.net/p/linrad/code/trunk"; + rev = "994"; + sha256 = "sha256-eO3MLSLlwFMCz1nSw/Qv00EVxO/y7q5JJyagFZpUQtY="; + }; + + nativeBuildInputs = [ cmake nasm ]; + + buildInputs = [ libX11 ]; + + NIX_CFLAGS_COMPILE = [ "-Wno-error=unused-result" ]; + + installPhase = '' + install -Dm755 clinrad -t $out/bin + ''; + + meta = with lib; { + description = "Software defined radio receiver for x11"; + homepage = "http://www.sm5bsz.com/linuxdsp/linrad.htm"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = [ maintainers.sikmir ]; + skip.ci = stdenv.isDarwin; + }; +}