diff options
author | Paul Smith <paul@adhocteam.us> | 2023-12-23 09:20:20 -0600 |
---|---|---|
committer | Paul Smith <paul@adhocteam.us> | 2023-12-23 11:24:53 -0600 |
commit | 33b740ff552c71ffaef02dae659772e355da8f85 (patch) | |
tree | 14d0744f50ca4232d865b87448458f1d7a1284e0 | |
parent | fd583c06c1b130bf58fff12b8b2a137bd27b344e (diff) |
pushup: init at 0.2
https://github.com/adhocteam/pushup/releases/tag/v0.2
-rw-r--r-- | pkgs/by-name/pu/pushup/package.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/by-name/pu/pushup/package.nix b/pkgs/by-name/pu/pushup/package.nix new file mode 100644 index 0000000000000..3d777479da905 --- /dev/null +++ b/pkgs/by-name/pu/pushup/package.nix @@ -0,0 +1,36 @@ +{ fetchFromGitHub, buildGoModule, lib, go, makeWrapper }: + +buildGoModule rec { + pname = "pushup"; + version = "0.2"; + + src = fetchFromGitHub { + owner = "adhocteam"; + repo = "pushup"; + rev = "v${version}"; + hash = "sha256-9ENXeVON2/Bt8oXnyVw+Vl0bPVPP7iFSyhxwc091ZIs="; + }; + + vendorHash = null; + subPackages = "."; + # Pushup doesn't need CGO so disable it. + CGO_ENABLED=0; + ldflags = [ "-s" "-w" ]; + nativeBuildInputs = [ makeWrapper ]; + # The Go compiler is a runtime dependency of Pushup. + allowGoReference = true; + postInstall = '' + wrapProgram $out/bin/${meta.mainProgram} --prefix PATH : ${ + lib.makeBinPath [ go ] + } + ''; + + meta = with lib; { + description = "A web framework for Go"; + homepage = "https://pushup.adhoc.dev/"; + license = licenses.mit; + changelog = "https://github.com/adhocteam/pushup/blob/${src.rev}/CHANGELOG.md"; + mainProgram = "pushup"; + maintainers = with maintainers; [ paulsmith ]; + }; +} |