File tree Expand file tree Collapse file tree
pkgs/by-name/gi/git-pages Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ } )
You can’t perform that action at this time.
0 commit comments