Merge pull request #330480 from codifryed/coolercontrol

coolercontrol.*: 1.3.0 -> 1.4.0
This commit is contained in:
Cosima Neidahl 2024-08-19 10:37:07 +02:00 committed by GitHub
commit 2f130c2388
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 1503 additions and 2989 deletions

File diff suppressed because it is too large Load Diff

View File

@ -4,10 +4,10 @@
, dbus
, freetype
, gtk3
, libsoup
, libsoup_3
, openssl
, pkg-config
, webkitgtk
, webkitgtk_4_1
, libappindicator
, makeWrapper
, coolercontrol
@ -23,12 +23,7 @@ rustPlatform.buildRustPackage {
inherit version src;
sourceRoot = "${src.name}/coolercontrol-ui/src-tauri";
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"tauri-plugin-localhost-0.1.0" = "sha256-Mf2/cnKotd751ZcSHfiSLNe2nxBfo4dMBdoCwQhe7yI=";
};
};
cargoHash = "sha256-0Ud5S4T5+5eBuvD5N64NAvbK0+tTozKsPhsNziCEu3I=";
buildFeatures = [ "custom-protocol" ];
@ -41,9 +36,9 @@ rustPlatform.buildRustPackage {
dbus
openssl
freetype
libsoup
libsoup_3
gtk3
webkitgtk
webkitgtk_4_1
libappindicator
];
@ -54,7 +49,7 @@ rustPlatform.buildRustPackage {
postPatch = ''
mkdir -p ui-build
cp -R ${coolercontrol.coolercontrol-ui-data}/* ui-build/
substituteInPlace tauri.conf.json --replace '"distDir": "../dist"' '"distDir": "ui-build"'
substituteInPlace tauri.conf.json --replace '"frontendDist": "../dist"' '"frontendDist": "ui-build"'
'';
postInstall = ''

View File

@ -11,7 +11,7 @@ buildNpmPackage {
inherit version src;
sourceRoot = "${src.name}/coolercontrol-ui";
npmDepsHash = "sha256-gnJvNQCbqFfPfsqi008HW4kBTpxiVpN7eHyn9bU6if8=";
npmDepsHash = "sha256-PpX9lk+yEG1auvBv5JBdMh7rjWoM0oTYJx6Nme5ij8s=";
postBuild = ''
cp -r dist $out

View File

@ -1,6 +1,7 @@
{ rustPlatform
, buildNpmPackage
, testers
, libdrm
, coolercontrol
, runtimeShell
}:
@ -15,7 +16,16 @@ rustPlatform.buildRustPackage {
inherit version src;
sourceRoot = "${src.name}/coolercontrold";
cargoHash = "sha256-CuA8r54O33csmSY67/AOlQQqUniAWkgWSewIBdeq7X4=";
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"nvml-wrapper-0.10.0" = "sha256-pMiULWT+nJXcDfLDeACG/DaPF5+AbzpoIUWWWz8mQ+0=";
};
};
buildInputs = [
libdrm
];
postPatch = ''
# copy the frontend static resources to a directory for embedding

View File

@ -4,13 +4,13 @@
}:
let
version = "1.3.0";
version = "1.4.0";
src = fetchFromGitLab {
owner = "coolercontrol";
repo = "coolercontrol";
rev = version;
hash = "sha256-0NYDPJNX0kWIBHv+b4GuK6efgHCBNDu3rBXaQ/iSxFk=";
hash = "sha256-jsgso9MHt5Szzp9YkuXz8qysdN0li/zD2R/vSZ2Lw5M=";
};
meta = with lib; {