2023-04-18 19:38:16 +00:00
|
|
|
{ lib, fetchFromGitea, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "codeberg-pages";
|
2024-07-07 15:59:28 +00:00
|
|
|
version = "5.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}";
|
|
|
|
hash = "sha256-txWRYQnJCGVZ0/6pZdKkRFsdUe2B+A0Fy0/WJCiBVa0=";
|
2023-04-18 19:38:16 +00:00
|
|
|
};
|
|
|
|
|
2024-07-07 15:59:28 +00:00
|
|
|
vendorHash = "sha256-0JPnBf4NA4t+63cNMZYnB56y93nOc8Wn7TstRiHgvhk=";
|
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" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
mainProgram = "codeberg-pages";
|
|
|
|
maintainers = with maintainers; [ laurent-f1z1 ];
|
|
|
|
license = licenses.eupl12;
|
|
|
|
homepage = "https://codeberg.org/Codeberg/pages-server";
|
|
|
|
description = "Static websites hosting from Gitea repositories";
|
|
|
|
};
|
|
|
|
}
|