Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchFromGitea, buildGoModule }: 2 3buildGoModule rec { 4 pname = "codeberg-pages"; 5 version = "4.6.2"; 6 7 src = fetchFromGitea { 8 domain = "codeberg.org"; 9 owner = "Codeberg"; 10 repo = "pages-server"; 11 rev = "ce241fa40adee2b12f8e225db98e09a45bc2acbb"; 12 sha256 = "sha256-mL2Xs7eyldoZK4zrX6WFlFtwdLN0iVyl1Qh8X6b2u9c="; 13 }; 14 15 vendorSha256 = "sha256-R/LuZkA2xHmu7SO3BVyK1C6n9U+pYn50kNkyLltn2ng="; 16 17 patches = [ ./disable_httptest.patch ]; 18 19 ldflags = [ "-s" "-w" ]; 20 21 tags = [ "sqlite" "sqlite_unlock_notify" "netgo" ]; 22 23 meta = with lib; { 24 mainProgram = "codeberg-pages"; 25 maintainers = with maintainers; [ laurent-f1z1 ]; 26 license = licenses.eupl12; 27 homepage = "https://codeberg.org/Codeberg/pages-server"; 28 description = "Static websites hosting from Gitea repositories"; 29 }; 30}