gitolite: update source

Upstream switched to Codeberg.
https://groups.google.com/g/gitolite/c/l93EXDfX0cg/m/Pp5ZtYImAQAJ
This commit is contained in:
Thomas Gerbet
2025-10-10 14:28:01 +02:00
parent d8c903a0ad
commit a58183af15

View File

@@ -1,7 +1,7 @@
{
stdenv,
coreutils,
fetchFromGitHub,
fetchFromGitea,
git,
lib,
makeWrapper,
@@ -10,14 +10,15 @@
nixosTests,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "gitolite";
version = "3.6.14";
src = fetchFromGitHub {
src = fetchFromGitea {
domain = "codeberg.org";
owner = "sitaramc";
repo = "gitolite";
rev = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-BwpqvjpHzoypV91W/QReAgiNrmpxZ0IE3W/bpCVO1GE=";
};
@@ -55,7 +56,7 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out/bin
perl ./install -to $out/bin
echo ${version} > $out/bin/VERSION
echo ${finalAttrs.version} > $out/bin/VERSION
'';
passthru.tests = {
@@ -73,4 +74,4 @@ stdenv.mkDerivation rec {
maintainers.tomberek
];
};
}
})