2024-07-07 15:59:40 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitea,
|
|
|
|
buildGoModule,
|
|
|
|
nix-update-script,
|
|
|
|
}:
|
2023-04-18 19:38:16 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "codeberg-pages";
|
2024-11-22 23:09:01 +00:00
|
|
|
version = "6.1";
|
2023-04-18 19:38:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
|
|
|
owner = "Codeberg";
|
|
|
|
repo = "pages-server";
|
2024-07-07 15:59:28 +00:00
|
|
|
rev = "v${version}";
|
2024-11-22 23:09:01 +00:00
|
|
|
hash = "sha256-zG+OicdwtiHm/Ji+xfB61leCq9Ni0ysXkh4pQRju7IA=";
|
2023-04-18 19:38:16 +00:00
|
|
|
};
|
|
|
|
|
2024-11-22 23:09:01 +00:00
|
|
|
vendorHash = "sha256-OmrkO++2vnIY7ay4q3oplDYDPWH1d5VSpDCBM6nD4rk=";
|
2023-04-18 19:38:16 +00:00
|
|
|
|
2024-04-30 23:45:06 +00:00
|
|
|
postPatch = ''
|
|
|
|
# disable httptest
|
|
|
|
rm server/handler/handler_test.go
|
|
|
|
'';
|
2023-04-18 19:38:16 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
];
|
|
|
|
|
|
|
|
tags = [
|
|
|
|
"sqlite"
|
|
|
|
"sqlite_unlock_notify"
|
|
|
|
"netgo"
|
|
|
|
];
|
|
|
|
|
2024-07-07 15:59:40 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
2023-04-18 19:38:16 +00:00
|
|
|
meta = with lib; {
|
2024-07-07 15:59:51 +00:00
|
|
|
mainProgram = "pages";
|
2024-07-07 19:06:29 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
laurent-f1z1
|
|
|
|
christoph-heiss
|
|
|
|
];
|
2023-04-18 19:38:16 +00:00
|
|
|
license = licenses.eupl12;
|
|
|
|
homepage = "https://codeberg.org/Codeberg/pages-server";
|
|
|
|
description = "Static websites hosting from Gitea repositories";
|
2024-07-07 16:01:34 +00:00
|
|
|
changelog = "https://codeberg.org/Codeberg/pages-server/releases/tag/v${version}";
|
2023-04-18 19:38:16 +00:00
|
|
|
};
|
|
|
|
}
|