chore(OpenLinkHub): Update to 0.3.2
Change-Id: I42cb2d4484cbcfed8d442db092e07e2a46cf3f54
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/921
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Tested-by: Samuel Shuert <coded@clicks.codes>
diff --git a/modules/nixos/cooling/OpenLinkHub/default.nix b/modules/nixos/cooling/OpenLinkHub/default.nix
index 6150765..ff95aae 100644
--- a/modules/nixos/cooling/OpenLinkHub/default.nix
+++ b/modules/nixos/cooling/OpenLinkHub/default.nix
@@ -41,6 +41,9 @@
mkdir -p ${path}/database/profiles
mkdir -p /run/udev/rules.d
+ mkdir -p ${path}/database/keyboard
+ cp -r -n ${cfg.package}/var/lib/OpenLinkHub/database/keyboard ${path}/database/keyboard
+
cp ${cfg.config} ${path}/config.json
[ -L ${path}/static ] || ln -s ${cfg.package}/var/lib/OpenLinkHub/static ${path}/static
@@ -63,8 +66,10 @@
'';
postStop = ''
- ${pkgs.coreutils}/bin/rm /run/udev/rules.d/99-corsair-openlinkhub-*.rules
+ ${pkgs.coreutils}/bin/rm /var/lib/OpenLinkHub/web
+ ${pkgs.coreutils}/bin/rm /var/lib/OpenLinkHub/static
+ ${pkgs.coreutils}/bin/rm /run/udev/rules.d/99-corsair-openlinkhub-*.rules
${pkgs.systemd}/bin/udevadm control --reload
${pkgs.systemd}/bin/udevadm trigger
'';
diff --git a/packages/OpenLinkHub/default.nix b/packages/OpenLinkHub/default.nix
index f9119f2..07a42c4 100644
--- a/packages/OpenLinkHub/default.nix
+++ b/packages/OpenLinkHub/default.nix
@@ -5,12 +5,12 @@
, systemd
}:
let
- version = "0.2.1";
+ version = "0.3.2";
OpenLinkHub = fetchFromGitHub {
owner = "jurkovic-nikola";
repo = "OpenLinkHub";
rev = version;
- hash = "sha256-2naNOGRPKy8H9I4e6X+uX3muT20M9YX2BGrPmY7RVAo=";
+ hash = "sha256-ecsteDXnQl2QJ0sKNGSJqKZJF5JbM9Y3ht/H9Uu1CcA=";
};
in
buildGoModule {
@@ -27,7 +27,9 @@
cp -r ${OpenLinkHub}/{static,web} $out/var/lib/OpenLinkHub
cp ${OpenLinkHub}/config.json $out/var/lib/OpenLinkHub
cp ${OpenLinkHub}/database/rgb.json $out/var/lib/OpenLinkHub
+ mkdir -p $out/var/lib/OpenLinkHub/database/keyboard
+ cp -r ${OpenLinkHub}/database/keyboard $out/var/lib/OpenLinkHub/database/keyboard
'';
- vendorHash = "sha256-Sv2gGnI3mJvOl866idKC1q+6jh4ysEot0eLLBKPb0T0=";
+ vendorHash = "sha256-57ms+wmwXIKBupsYkwuNqeWVwx8nTnu9NX3/VZ0in68=";
}