From 3c321b3f03f306e01316d7e2ba03a583cd61ecf8 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Mon, 30 Dec 2024 19:20:41 +0800 Subject: [PATCH] openlinkhub: init at 0.4.3 --- pkgs/by-name/op/openlinkhub/package.nix | 40 +++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/op/openlinkhub/package.nix diff --git a/pkgs/by-name/op/openlinkhub/package.nix b/pkgs/by-name/op/openlinkhub/package.nix new file mode 100644 index 0000000000000..e900eacf869a5 --- /dev/null +++ b/pkgs/by-name/op/openlinkhub/package.nix @@ -0,0 +1,40 @@ +{ + buildGoModule, + lib, + fetchFromGitHub, + udev, + nix-update-script, + versionCheckHook, +}: + +buildGoModule rec { + pname = "openlinkhub"; + version = "0.4.4"; + + src = fetchFromGitHub { + owner = "jurkovic-nikola"; + repo = "OpenLinkHub"; + tag = version; + hash = "sha256-MpG2RJdzDGaoXfN8YdxqXttpsjAEslN5xGdkWyDWX/c="; + }; + + proxyVendor = true; + + vendorHash = "sha256-nDE3GUZl5OBSlhRpJBixUbWhhFMeieidNrSIzOOB/9g="; + + buildInputs = [ + udev + ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + homepage = "https://github.com/jurkovic-nikola/OpenLinkHub"; + platforms = lib.platforms.linux; + description = "Open source interface for iCUE LINK Hub and other Corsair AIOs, Hubs for Linux"; + maintainers = with lib.maintainers; [ bot-wxt1221 ]; + license = lib.licenses.gpl3Only; + mainProgram = "OpenLinkHub"; + changelog = "https://github.com/jurkovic-nikola/OpenLinkHub/releases/tag/${version}"; + }; +}