mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-14 11:20:12 +00:00
Most packages that used fetchFromGitea fetch their sources from Codeberg, so might as well migrate them.
The following command was used for this treewide:
```fish
for i in (rg 'fetchFromGitea \{\n *domain = "codeberg.org";' --multiline --files-with-matches)
sed -z 's/fetchFromGitea {\n *domain = "codeberg.org";/fetchFromCodeberg {/g' $i > $i.tmp && mv $i.tmp $i
sed -i 's/fetchFromGitea/fetchFromCodeberg/g' $i
end
```
The following paths were manually edited:
* pkgs/by-name/xr/xrsh/package.nix
* pkgs/applications/networking/browsers/librewolf/src.nix
* pkgs/by-name/go/gotosocial/package.nix
* pkgs/by-name/ka/katawa-shoujo-re-engineered/package.nix
Co-authored-by: Gutyina Gergő <gutyina.gergo.2@gmail.com>
Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
47 lines
985 B
Nix
47 lines
985 B
Nix
{
|
|
fetchFromCodeberg,
|
|
lcrq,
|
|
lib,
|
|
librecast,
|
|
libsodium,
|
|
stdenv,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "lcsync";
|
|
version = "0.3.2";
|
|
|
|
src = fetchFromCodeberg {
|
|
owner = "librecast";
|
|
repo = "lcsync";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-KirMifJ5Mc3WXuIZjFv6ZIzpz/bjGHMU2jnRGGQ2w/I=";
|
|
};
|
|
buildInputs = [
|
|
lcrq
|
|
librecast
|
|
libsodium
|
|
];
|
|
configureFlags = [ "SETCAP_PROGRAM=true" ];
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
changelog = "https://codeberg.org/librecast/lcsync/src/tag/v${finalAttrs.version}/CHANGELOG.md";
|
|
description = "Librecast File and Syncing Tool";
|
|
mainProgram = "lcsync";
|
|
homepage = "https://librecast.net/lcsync.html";
|
|
license = [
|
|
lib.licenses.gpl2
|
|
lib.licenses.gpl3
|
|
];
|
|
maintainers = with lib.maintainers; [
|
|
albertchae
|
|
aynish
|
|
DMills27
|
|
jasonodoom
|
|
jleightcap
|
|
];
|
|
platforms = lib.platforms.gnu;
|
|
};
|
|
})
|