infrastructure/machines/compute01/codeberg-pages-custom.nix
Julien Malka 53ee0a569b
All checks were successful
Check meta / check_dns (pull_request) Successful in 20s
Check meta / check_meta (pull_request) Successful in 20s
lint / check (push) Successful in 23s
build configuration / build_and_cache_geo01 (pull_request) Successful in 1m8s
build configuration / build_and_cache_storage01 (pull_request) Successful in 1m14s
build configuration / build_and_cache_rescue01 (pull_request) Successful in 1m17s
build configuration / build_and_cache_krz01 (pull_request) Successful in 2m8s
build configuration / build_and_cache_geo02 (pull_request) Successful in 1m4s
build configuration / build_and_cache_vault01 (pull_request) Successful in 1m20s
lint / check (pull_request) Successful in 24s
build configuration / build_and_cache_web01 (pull_request) Successful in 1m47s
build configuration / build_and_cache_web02 (pull_request) Successful in 1m18s
build configuration / build_and_cache_bridge01 (pull_request) Successful in 1m2s
build configuration / build_and_cache_compute01 (pull_request) Successful in 5m43s
feat(compute01): init pages server
2024-10-11 01:25:26 +02:00

51 lines
1 KiB
Nix

{
lib,
fetchFromGitea,
buildGoModule,
nix-update-script,
}:
buildGoModule rec {
pname = "codeberg-pages";
version = "5.1";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "Codeberg";
repo = "pages-server";
rev = "9524b1eb12f77fa345cc8a220f67ae244da0ab12";
hash = "sha256-RZjwy0Vdqu2XdF14hwXvQ7Bj11+1Q2VxDm1GTU1brA8=";
};
vendorHash = "sha256-xfn3uMeea25dG7On28mU38i5Izo9YVKDXNFT7WipiYI=";
postPatch = ''
# disable httptest
rm server/handler/handler_test.go
'';
ldflags = [
"-s"
"-w"
];
tags = [
"sqlite"
"sqlite_unlock_notify"
"netgo"
];
passthru.updateScript = nix-update-script { };
meta = with lib; {
mainProgram = "pages";
maintainers = with maintainers; [
laurent-f1z1
christoph-heiss
];
license = licenses.eupl12;
homepage = "https://codeberg.org/Codeberg/pages-server";
description = "Static websites hosting from Gitea repositories";
changelog = "https://codeberg.org/Codeberg/pages-server/releases/tag/v${version}";
};
}