depot/third_party/nixpkgs/pkgs/development/tools/continuous-integration/codeberg-pages/default.nix

31 lines
820 B
Nix
Raw Normal View History

{ 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";
};
}