3562403503
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>
50 lines
937 B
Nix
50 lines
937 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
fetchFromCodeberg,
|
|
gitUpdater,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "highctidh";
|
|
version = "1.0.2025051200";
|
|
pyproject = true;
|
|
|
|
src = fetchFromCodeberg {
|
|
owner = "vula";
|
|
repo = "highctidh";
|
|
tag = "v${version}";
|
|
hash = "sha256-wGJv9UHAFfCOpTrr8THVk0DC+JUtj3gYYOf6o3EaSqg=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/src";
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"highctidh"
|
|
];
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
rev-prefix = "v";
|
|
};
|
|
|
|
meta = {
|
|
description = "Fork of high-ctidh as as a portable shared library with Python bindings";
|
|
homepage = "https://codeberg.org/vula/highctidh";
|
|
license = lib.licenses.publicDomain;
|
|
teams = with lib.teams; [ ngi ];
|
|
maintainers = with lib.maintainers; [
|
|
lorenzleutgeb
|
|
mightyiam
|
|
];
|
|
};
|
|
}
|