nixpkgs/pkgs/by-name/co/codeberg-pages/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.0 KiB
Nix
Raw Normal View History

{
lib,
fetchFromGitea,
buildGoModule,
nix-update-script,
}:
2023-04-18 19:38:16 +00:00
buildGoModule rec {
pname = "codeberg-pages";
2024-11-22 23:09:01 +00:00
version = "6.1";
2023-04-18 19:38:16 +00:00
src = fetchFromGitea {
domain = "codeberg.org";
owner = "Codeberg";
repo = "pages-server";
rev = "v${version}";
2024-11-22 23:09:01 +00:00
hash = "sha256-zG+OicdwtiHm/Ji+xfB61leCq9Ni0ysXkh4pQRju7IA=";
2023-04-18 19:38:16 +00:00
};
2024-11-22 23:09:01 +00:00
vendorHash = "sha256-OmrkO++2vnIY7ay4q3oplDYDPWH1d5VSpDCBM6nD4rk=";
2023-04-18 19:38:16 +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"
];
passthru.updateScript = nix-update-script { };
2023-04-18 19:38:16 +00:00
meta = with lib; {
mainProgram = "pages";
maintainers = with maintainers; [
laurent-f1z1
christoph-heiss
];
2023-04-18 19:38:16 +00:00
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}";
2023-04-18 19:38:16 +00:00
};
}