nur-packages

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

commit afbe0176394393df0e0dfa0733e1599570a9ed47
parent 03af4708d4d0ddfb41e1efe62664f2a21d003ba2
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sun, 21 Jan 2024 00:29:31 +0400

Add sdr-modem

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

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -502,6 +502,7 @@ lib.makeScope newScope ( linrad = callPackage ./radio/linrad { }; rtlsdr-airband = callPackage ./radio/rtlsdr-airband { }; rtltcp = callPackage ./radio/rtltcp { }; + sdr-modem = callPackage ./radio/sdr-modem { }; sdr-server = callPackage ./radio/sdr-server { }; smallrx = callPackage ./radio/smallrx { }; diff --git a/pkgs/radio/sdr-modem/default.nix b/pkgs/radio/sdr-modem/default.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, check, libconfig, libiio, volk, protobufc }: + +stdenv.mkDerivation (finalAttrs: { + pname = "sdr-modem"; + version = "1.0.108"; + + src = fetchFromGitHub { + owner = "dernasherbrezon"; + repo = "sdr-modem"; + rev = finalAttrs.version; + hash = "sha256-9uQeTnamFJD8UpwJ7Kj6TRJquWQ9fp6xa5gvi/NNn0U="; + }; + + nativeBuildInputs = [ cmake pkg-config ]; + + buildInputs = [ check libconfig libiio volk protobufc ]; + + installPhase = '' + install -Dm755 sdr_modem -t $out/bin + install -Dm644 $src/src/resources/config.conf -t $out/etc + ''; + + meta = with lib; { + description = "Modem based on software defined radios"; + inherit (finalAttrs.src.meta) homepage; + license = licenses.gpl2; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +})