Files
nixpkgs/pkgs/by-name/ov/overpush/package.nix
Jonathan Davies 116036d574 treewide: Remove redundant versionCheckProgramArg = "--version"; with:
```shell
git grep -l -e 'versionCheckProgramArg = "--version";' -e 'versionCheckProgramArg = \[ "--version" \];' | while read f; do
  sed -i '/versionCheckProgramArg/d' "$f"
  sed -i '/^$/N;/\n$/D' "$f"
done
```
2025-11-20 10:39:02 +00:00

53 lines
1.1 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
pkg-config,
versionCheckHook,
nix-update-script,
}:
buildGoModule (finalAttrs: {
pname = "overpush";
version = "0.4.7";
src = fetchFromGitHub {
owner = "mrusme";
repo = "overpush";
tag = "v${finalAttrs.version}";
hash = "sha256-I4i1HhqvliSFiL8rFhKF5qrfPsUuxDTE79V/Q7Js+xs=";
};
vendorHash = "sha256-2KUWWATRwwtA/1Nm2JQrDS8f0ZIca/f190DSNtjemZE=";
env.CGO_ENABLED = "0";
ldflags = [
"-s"
"-X main.version=${finalAttrs.version}"
];
nativeBuildInputs = [
pkg-config
];
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Self-hosted, drop-in replacement for Pushover that can use XMPP";
homepage = "https://github.com/mrusme/overpush";
changelog = "https://github.com/mrusme/overpush/releases/tag/v${finalAttrs.version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ liberodark ];
platforms = lib.platforms.linux;
mainProgram = "overpush";
};
})