Skip to content

Commit

Permalink
Merge pull request #37 from ngi-nix/moss-lcsync
Browse files Browse the repository at this point in the history
librecast: package lcsync

Towards #3.

This PR packages `lcsync`. We previously packaged its 2 dependencies [`lcrq`](#35) and [`librecast`](#36).

According to [this comment by @cleeyv](ngi-nix/ngi#122 (comment)), these 3 packages were the main targets. We will now reach out to Librecast maintainers for guidance on any other packages in their project that we should work on.
  • Loading branch information
albertchae authored Aug 8, 2023
2 parents c12e5b5 + e719d83 commit ab5adea
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 3 deletions.
1 change: 1 addition & 0 deletions all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
Expand Down
2 changes: 1 addition & 1 deletion pkgs/lcrq/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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];
};
Expand Down
32 changes: 32 additions & 0 deletions pkgs/lcsync/default.nix
Original file line number Diff line number Diff line change
@@ -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];
};
}
12 changes: 10 additions & 2 deletions pkgs/librecast/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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];
};
}

0 comments on commit ab5adea

Please sign in to comment.