mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
45 lines
1020 B
Nix
45 lines
1020 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
gitUpdater,
|
|
libnotify,
|
|
}:
|
|
buildGoModule (finalAttrs: {
|
|
pname = "golazo";
|
|
version = "0.26.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "0xjuanma";
|
|
repo = "golazo";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-g9JPPP/pZ65Jgq2hXYzRynhZebF7s2ZTNU4Ca1Iu5uc=";
|
|
};
|
|
|
|
vendorHash = "sha256-M2gfqU5rOfuiVSZnH/Dr8OVmDhyU2jYkgW7RuIUTd+E=";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ libnotify ];
|
|
|
|
ldflags = [
|
|
"-X github.com/0xjuanma/golazo/cmd.Version=v${finalAttrs.version}"
|
|
];
|
|
|
|
__structuredAttrs = true;
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
rev-prefix = "v";
|
|
};
|
|
|
|
meta = {
|
|
description = "Minimal TUI app to keep up with live & recent football/soccer matches written in Go";
|
|
homepage = "https://github.com/0xjuanma/golazo";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.all;
|
|
mainProgram = "golazo";
|
|
maintainers = with lib.maintainers; [ rafaelrc ];
|
|
};
|
|
})
|