Skip to content

Commit b51242d

Browse files
authored
[Backport release-26.05] git-pages: init at 0.9.0 (#526211)
2 parents d2c03a4 + 9578ac9 commit b51242d

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
lib,
3+
buildGoModule,
4+
fetchFromGitea,
5+
nix-update-script,
6+
versionCheckHook,
7+
}:
8+
9+
buildGoModule (finalAttrs: {
10+
pname = "git-pages";
11+
version = "0.9.0";
12+
__structuredAttrs = true;
13+
14+
src = fetchFromGitea {
15+
domain = "codeberg.org";
16+
owner = "git-pages";
17+
repo = "git-pages";
18+
tag = "v${finalAttrs.version}";
19+
hash = "sha256-yuOiA8TmLV5RQ7rmhH0Ac/6gN1t6wgyUkvMOJqEMV4U=";
20+
};
21+
22+
subPackages = [ "." ];
23+
24+
vendorHash = "sha256-NNIkzgRki2rtCVUnnhT44rEBcMZYiJPmsXySpxiHYR0=";
25+
26+
ldflags = [
27+
"-s"
28+
"-X main.versionOverride=${finalAttrs.src.tag}"
29+
];
30+
31+
doInstallCheck = true;
32+
nativeInstallCheckInputs = [ versionCheckHook ];
33+
versionCheckProgramArg = "-version";
34+
35+
passthru.updateScript = nix-update-script { };
36+
37+
meta = {
38+
description = "Scalable static site server for Git forges (like GitHub Pages or Netlify";
39+
homepage = "https://codeberg.org/git-pages/git-pages";
40+
changelog = "https://codeberg.org/git-pages/git-pages/releases/tag/${finalAttrs.src.tag}";
41+
license = lib.licenses.bsd0;
42+
maintainers = with lib.maintainers; [ drupol ];
43+
mainProgram = "git-pages";
44+
};
45+
})

0 commit comments

Comments
 (0)