2022-11-22 12:46:49 +00:00
|
|
|
{ lib, pkg-config, libappindicator-gtk3, buildGoModule, fetchFromGitHub }:
|
2018-09-03 12:33:21 +00:00
|
|
|
|
2022-11-22 12:46:49 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "systrayhelper";
|
2022-11-22 12:46:49 +00:00
|
|
|
version = "unstable-2021-05-20";
|
|
|
|
rev = "da47887f050cf0f22d9348cb4493df9ffda2a229";
|
2018-09-03 12:33:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ssbc";
|
|
|
|
repo = "systrayhelper";
|
2022-11-22 12:46:49 +00:00
|
|
|
rev = rev;
|
|
|
|
hash = "sha256-9ejpARZghXhb3EJDvNcidg5QM8Z+P91ICGuA89ksqeA=";
|
2018-09-03 12:33:21 +00:00
|
|
|
};
|
|
|
|
|
2022-11-22 12:46:49 +00:00
|
|
|
vendorHash = null;
|
|
|
|
|
2018-09-03 12:33:21 +00:00
|
|
|
# re date: https://github.com/NixOS/nixpkgs/pull/45997#issuecomment-418186178
|
|
|
|
# > .. keep the derivation deterministic. Otherwise, we would have to rebuild it every time.
|
2021-08-26 03:31:57 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X main.version=v${version}"
|
|
|
|
"-X main.commit=${rev}"
|
|
|
|
"-X main.date=nix-byrev"
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
];
|
2018-09-03 12:33:21 +00:00
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config libappindicator-gtk3 ];
|
2018-09-03 12:33:21 +00:00
|
|
|
buildInputs = [ libappindicator-gtk3 ];
|
|
|
|
|
2022-11-22 12:46:49 +00:00
|
|
|
doCheck = false; # Display required
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-03 12:33:21 +00:00
|
|
|
description = "A systray utility written in go, using json over stdio for control and events";
|
2022-11-22 12:46:49 +00:00
|
|
|
homepage = "https://github.com/ssbc/systrayhelper";
|
2018-09-03 12:33:21 +00:00
|
|
|
maintainers = with maintainers; [ cryptix ];
|
2022-11-22 12:46:49 +00:00
|
|
|
license = licenses.mit;
|
2018-09-03 12:33:21 +00:00
|
|
|
# It depends on the inputs, i guess? not sure about solaris, for instance. go supports it though
|
|
|
|
# I hope nix can figure this out?! ¯\\_(ツ)_/¯
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "systrayhelper";
|
2018-09-03 12:33:21 +00:00
|
|
|
};
|
|
|
|
}
|