Files
nixpkgs/pkgs/by-name/bi/biboumi/package.nix
Fernando Rodrigues 3562403503 treewide: fetchFromGitea -> fetchFromCodeberg
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>
2026-01-31 21:08:16 +11:00

81 lines
1.5 KiB
Nix

{
lib,
stdenv,
fetchFromCodeberg,
cmake,
libuuid,
expat,
libiconv,
botan3,
systemd,
pkg-config,
python3Packages,
withIDN ? true,
libidn,
withPostgreSQL ? false,
libpq,
withSQLite ? true,
sqlite,
withUDNS ? true,
udns,
}:
assert lib.assertMsg (
withPostgreSQL || withSQLite
) "At least one Biboumi database provider required";
stdenv.mkDerivation {
pname = "biboumi";
version = "9.0-unstable-2025-10-27";
src = fetchFromCodeberg {
owner = "poezio";
repo = "biboumi";
rev = "61242c35bc825d58c9db4301b5696bc17428bf98";
hash = "sha256-BZTqu2Qvfqag9pwymlGrItLbOXQf3VMKQS2+3pxlJbE=";
};
nativeBuildInputs = [
cmake
pkg-config
python3Packages.sphinx
];
buildInputs = [
libuuid
expat
libiconv
systemd
botan3
]
++ lib.optional withIDN libidn
++ lib.optional withPostgreSQL libpq
++ lib.optional withSQLite sqlite
++ lib.optional withUDNS udns;
buildFlags = [
"all"
"man"
];
cmakeFlags = [
# Fix breakage with CMake 4
"-DCMAKE_SKIP_RPATH=ON"
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
];
preConfigure = ''
substituteInPlace CMakeLists.txt --replace /etc/biboumi $out/etc/biboumi
'';
doCheck = true;
meta = {
description = "Modern XMPP IRC gateway";
mainProgram = "biboumi";
platforms = lib.platforms.unix;
homepage = "https://codeberg.org/poezio/biboumi";
license = lib.licenses.zlib;
maintainers = [ lib.maintainers.woffs ];
};
}