mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
36 lines
968 B
Nix
36 lines
968 B
Nix
{ 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 = "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 ];
|
|
};
|
|
}
|