From 5ec9630dc0e3e170d577215965990ea689dde417 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Tue, 22 Nov 2022 12:46:49 +0000 Subject: [PATCH] systrayhelper: 0.0.5 -> unstable-2021-05-20 --- pkgs/tools/misc/systrayhelper/default.nix | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/pkgs/tools/misc/systrayhelper/default.nix b/pkgs/tools/misc/systrayhelper/default.nix index 2453191d0cb8..cc000d62d08a 100644 --- a/pkgs/tools/misc/systrayhelper/default.nix +++ b/pkgs/tools/misc/systrayhelper/default.nix @@ -1,19 +1,19 @@ -{ lib, pkg-config, libappindicator-gtk3, buildGoPackage, fetchFromGitHub }: +{ lib, pkg-config, libappindicator-gtk3, buildGoModule, fetchFromGitHub }: -buildGoPackage rec { +buildGoModule rec { pname = "systrayhelper"; - version = "0.0.5"; - rev = "ded1f2ed4d30f6ca2c89a13db0bd3046c6d6d0f9"; - - goPackagePath = "github.com/ssbc/systrayhelper"; + version = "unstable-2021-05-20"; + rev = "da47887f050cf0f22d9348cb4493df9ffda2a229"; src = fetchFromGitHub { - rev = "v${version}"; owner = "ssbc"; repo = "systrayhelper"; - sha256 = "0bn3nf43m89qmh8ds5vmv0phgdz32idz1zisr47jmvqm2ky1a45s"; + rev = rev; + hash = "sha256-9ejpARZghXhb3EJDvNcidg5QM8Z+P91ICGuA89ksqeA="; }; + vendorHash = null; + # re date: https://github.com/NixOS/nixpkgs/pull/45997#issuecomment-418186178 # > .. keep the derivation deterministic. Otherwise, we would have to rebuild it every time. ldflags = [ @@ -27,11 +27,13 @@ buildGoPackage rec { nativeBuildInputs = [ pkg-config libappindicator-gtk3 ]; buildInputs = [ libappindicator-gtk3 ]; + doCheck = false; # Display required + meta = with lib; { description = "A systray utility written in go, using json over stdio for control and events"; - homepage = "https://github.com/ssbc/systrayhelper"; + homepage = "https://github.com/ssbc/systrayhelper"; maintainers = with maintainers; [ cryptix ]; - license = licenses.mit; + license = licenses.mit; # It depends on the inputs, i guess? not sure about solaris, for instance. go supports it though # I hope nix can figure this out?! ¯\\_(ツ)_/¯ };