nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 pkg-config,
6 versionCheckHook,
7 nix-update-script,
8}:
9
10buildGoModule (finalAttrs: {
11 pname = "overpush";
12 version = "0.4.7";
13
14 src = fetchFromGitHub {
15 owner = "mrusme";
16 repo = "overpush";
17 tag = "v${finalAttrs.version}";
18 hash = "sha256-I4i1HhqvliSFiL8rFhKF5qrfPsUuxDTE79V/Q7Js+xs=";
19 };
20
21 vendorHash = "sha256-2KUWWATRwwtA/1Nm2JQrDS8f0ZIca/f190DSNtjemZE=";
22
23 env.CGO_ENABLED = "0";
24
25 ldflags = [
26 "-s"
27 "-X main.version=${finalAttrs.version}"
28 ];
29
30 nativeBuildInputs = [
31 pkg-config
32 ];
33
34 nativeInstallCheckInputs = [
35 versionCheckHook
36 ];
37 doInstallCheck = true;
38
39 passthru = {
40 updateScript = nix-update-script { };
41 };
42
43 meta = {
44 description = "Self-hosted, drop-in replacement for Pushover that can use XMPP";
45 homepage = "https://github.com/mrusme/overpush";
46 changelog = "https://github.com/mrusme/overpush/releases/tag/v${finalAttrs.version}";
47 license = lib.licenses.gpl3Only;
48 maintainers = with lib.maintainers; [ liberodark ];
49 platforms = lib.platforms.linux;
50 mainProgram = "overpush";
51 };
52})