From e719d83cb052c5fc8fd051fbdfd6b78ea4127b0c Mon Sep 17 00:00:00 2001 From: Albert Chae Date: Tue, 8 Aug 2023 14:20:40 -0700 Subject: [PATCH] librecast: package lcsync Co-authored-by: Jason Odoom Co-authored-by: Anish Lakhwara Co-authored-by: Dominic Mills Co-authored-by: Albert Chae Co-authored-by: Jack Leightcap Signed-off-by: Jack Leightcap --- all-packages.nix | 1 + pkgs/lcrq/default.nix | 2 +- pkgs/lcsync/default.nix | 32 ++++++++++++++++++++++++++++++++ pkgs/librecast/default.nix | 12 ++++++++++-- 4 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 pkgs/lcsync/default.nix diff --git a/all-packages.nix b/all-packages.nix index 3aa892b2..9e467c1a 100644 --- a/all-packages.nix +++ b/all-packages.nix @@ -4,6 +4,7 @@ gnunet-messenger-cli = callPackage ./pkgs/gnunet-messenger-cli {}; kikit = callPackage ./pkgs/kikit {}; lcrq = callPackage ./pkgs/lcrq {}; + lcsync = callPackage ./pkgs/lcsync {inherit lcrq librecast;}; liberaforms = callPackage ./pkgs/liberaforms {}; liberaforms-env = callPackage ./pkgs/liberaforms/env.nix {}; libgnunetchat = callPackage ./pkgs/libgnunetchat {}; diff --git a/pkgs/lcrq/default.nix b/pkgs/lcrq/default.nix index da932e53..892453d0 100644 --- a/pkgs/lcrq/default.nix +++ b/pkgs/lcrq/default.nix @@ -20,7 +20,7 @@ stdenv.mkDerivation rec { meta = with lib; { homepage = "https://librecast.net/lcrq.html"; - changelog = "https://codeberg.org/librecast/lcrq/src/branch/main/CHANGELOG.md"; + changelog = "https://codeberg.org/librecast/lcrq/src/tag/v${version}/CHANGELOG.md"; description = "Librecast RaptorQ library."; license = [licenses.gpl2 licenses.gpl3]; }; diff --git a/pkgs/lcsync/default.nix b/pkgs/lcsync/default.nix new file mode 100644 index 00000000..28efbe40 --- /dev/null +++ b/pkgs/lcsync/default.nix @@ -0,0 +1,32 @@ +{ + stdenv, + pkgs, + fetchFromGitea, + lcrq, + librecast, + lib, + ... +}: +stdenv.mkDerivation rec { + name = "lcsync"; + version = "0.2.1"; + + src = fetchFromGitea { + domain = "codeberg.org"; + owner = "librecast"; + repo = "lcsync"; + rev = "v${version}"; + sha256 = "sha256-RVfa0EmCPPT7ndy94YwD24S9pj7L11ztISaKHGcbTS8="; + }; + buildInputs = [lcrq librecast pkgs.libsodium]; + configureFlags = ["SETCAP_PROGRAM=true"]; + installFlags = ["PREFIX=$(out)"]; + doCheck = true; + + meta = with lib; { + homepage = "https://librecast.net/lcsync.html"; + changelog = "https://codeberg.org/librecast/lcsync/src/tag/v${version}/CHANGELOG.md"; + description = "Librecast File and Syncing Tool"; + license = [licenses.gpl2 licenses.gpl3]; + }; +} diff --git a/pkgs/librecast/default.nix b/pkgs/librecast/default.nix index 7a05feaf..d192e9c4 100644 --- a/pkgs/librecast/default.nix +++ b/pkgs/librecast/default.nix @@ -3,19 +3,27 @@ pkgs, fetchFromGitea, lcrq, + lib, ... }: stdenv.mkDerivation rec { name = "librecast"; - version = "0.6.1"; + version = "0.7-RC3"; src = fetchFromGitea { domain = "codeberg.org"; owner = "librecast"; repo = "librecast"; rev = "v${version}"; - sha256 = "sha256-o7ZPczQOw45kAAyu0fHCTKTUC78W0gkuL2Qge0+1Pc4="; + sha256 = "sha256-AD3MpWg8Lp+VkizwYTuuS2YWM8e0xaMEavVIvwhSZRo="; }; buildInputs = [lcrq pkgs.libsodium]; installFlags = ["PREFIX=$(out)"]; + + meta = with lib; { + homepage = "https://librecast.net/librecast.html"; + changelog = "https://codeberg.org/librecast/librecast/src/tag/v${version}/CHANGELOG.md"; + description = "IPv6 multicast library"; + license = [licenses.gpl2 licenses.gpl3]; + }; }