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>
59 lines
1.0 KiB
Nix
59 lines
1.0 KiB
Nix
{
|
|
mkDerivation,
|
|
base,
|
|
bytestring,
|
|
cabal-install-parsers,
|
|
Cabal-syntax,
|
|
containers,
|
|
directory,
|
|
fetchFromCodeberg,
|
|
filepath,
|
|
generic-lens-lite,
|
|
lib,
|
|
mtl,
|
|
optparse-applicative,
|
|
parsec,
|
|
pretty,
|
|
regex-applicative,
|
|
frontmatter,
|
|
}:
|
|
mkDerivation rec {
|
|
pname = "changelog-d";
|
|
version = "1.0.2";
|
|
src = fetchFromCodeberg {
|
|
owner = "fgaz";
|
|
repo = "changelog-d";
|
|
rev = "v${version}";
|
|
hash = "sha256-nPvuAkcFfK/NKXNBv8D2ePnB88WnjvmAIbzQHVvEXtk=";
|
|
};
|
|
isLibrary = false;
|
|
isExecutable = true;
|
|
libraryHaskellDepends = [
|
|
base
|
|
bytestring
|
|
cabal-install-parsers
|
|
Cabal-syntax
|
|
containers
|
|
directory
|
|
filepath
|
|
generic-lens-lite
|
|
mtl
|
|
parsec
|
|
pretty
|
|
regex-applicative
|
|
frontmatter
|
|
];
|
|
executableHaskellDepends = [
|
|
base
|
|
bytestring
|
|
Cabal-syntax
|
|
directory
|
|
filepath
|
|
optparse-applicative
|
|
];
|
|
doHaddock = false;
|
|
description = "Concatenate changelog entries into a single one";
|
|
license = lib.licenses.gpl3Plus;
|
|
mainProgram = "changelog-d";
|
|
}
|