5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
30 lines
820 B
Nix
30 lines
820 B
Nix
{ lib, fetchFromGitea, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "codeberg-pages";
|
|
version = "4.6.2";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "Codeberg";
|
|
repo = "pages-server";
|
|
rev = "ce241fa40adee2b12f8e225db98e09a45bc2acbb";
|
|
sha256 = "sha256-mL2Xs7eyldoZK4zrX6WFlFtwdLN0iVyl1Qh8X6b2u9c=";
|
|
};
|
|
|
|
vendorHash = "sha256-R/LuZkA2xHmu7SO3BVyK1C6n9U+pYn50kNkyLltn2ng=";
|
|
|
|
patches = [ ./disable_httptest.patch ];
|
|
|
|
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";
|
|
};
|
|
}
|