nur-packages

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

commit 77e8ce59c55fbd7735f6cb3649ce09e6aa950175
parent d692969e2ab4da7e8397ef5dd1ff7b5684511417
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Tue, 30 May 2023 22:12:29 +0400

Add sdr-server

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

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -455,6 +455,7 @@ lib.makeScope newScope ( gqrx-scanner = callPackage ./radio/gqrx-scanner { }; linrad = callPackage ./radio/linrad { }; rtlsdr-airband = callPackage ./radio/rtlsdr-airband { }; + sdr-server = callPackage ./radio/sdr-server { }; smallrx = callPackage ./radio/smallrx { }; ### SUCKLESS diff --git a/pkgs/radio/sdr-server/default.nix b/pkgs/radio/sdr-server/default.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, check, libconfig, librtlsdr, volk, zlib }: + +stdenv.mkDerivation (finalAttrs: { + pname = "sdr-server"; + version = "1.1.8"; + + src = fetchFromGitHub { + owner = "dernasherbrezon"; + repo = "sdr-server"; + rev = finalAttrs.version; + hash = "sha256-xPB1EgsDVc7beoCzTvSFpx5MKpvEgksU3usX1cHHldo="; + }; + + nativeBuildInputs = [ cmake pkg-config ]; + + buildInputs = [ check libconfig librtlsdr volk zlib ]; + + installPhase = '' + install -Dm755 sdr_server -t $out/bin + install -Dm644 $src/src/resources/config.conf -t $out/etc + ''; + + meta = with lib; { + description = "High performant TCP server for rtl-sdr"; + inherit (finalAttrs.src.meta) homepage; + license = licenses.gpl2; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +})