From cbd996f1f620781445b585821a2ef1e0253c5fc9 Mon Sep 17 00:00:00 2001 From: Jack Leightcap Date: Fri, 4 Jul 2025 21:11:15 -0400 Subject: [PATCH] lcagent: init at 0.1.0 Co-authored-by: Jason Odoom --- pkgs/by-name/lc/lcagent/package.nix | 51 +++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 pkgs/by-name/lc/lcagent/package.nix diff --git a/pkgs/by-name/lc/lcagent/package.nix b/pkgs/by-name/lc/lcagent/package.nix new file mode 100644 index 000000000000..47e2b02d263f --- /dev/null +++ b/pkgs/by-name/lc/lcagent/package.nix @@ -0,0 +1,51 @@ +{ + fetchFromGitea, + lib, + stdenv, + flex, + bison, + librecast, + libsodium, + lcrq, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "lcagent"; + version = "0.1.0"; + + src = fetchFromGitea { + domain = "codeberg.org"; + owner = "librecast"; + repo = "lcagent"; + tag = finalAttrs.version; + hash = "sha256-Kr3VQ56V+Neo4CrKX5AasuftXNNJCx4NnsPz1UBBCog="; + }; + + nativeBuildInputs = [ + bison + flex + ]; + + buildInputs = [ + lcrq + librecast + libsodium + ]; + installFlags = [ "PREFIX=$(out)" ]; + doCheck = true; + + meta = { + changelog = "https://codeberg.org/librecast/lcagent/src/tag/v${finalAttrs.version}/CHANGELOG.md"; + description = "Librecast multicast agent"; + homepage = "https://librecast.net/lcagent.html"; + license = [ + lib.licenses.gpl2Only + lib.licenses.gpl3Only + ]; + mainProgram = "lcagent"; + maintainers = with lib.maintainers; [ + jleightcap + jasonodoom + ]; + platforms = lib.platforms.gnu; + }; +})