Commit 3650335d authored by OPNA2608's avatar OPNA2608
Browse files

coolercontrol.*: 1.4.0 -> 1.4.4

parent 1fd02d90
Loading
Loading
Loading
Loading
+0 −3548

File deleted.

Preview size limit exceeded, changes collapsed.

+2 −2
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ rustPlatform.buildRustPackage {
  inherit version src;
  sourceRoot = "${src.name}/coolercontrol-ui/src-tauri";

  cargoHash = "sha256-0Ud5S4T5+5eBuvD5N64NAvbK0+tTozKsPhsNziCEu3I=";
  cargoHash = "sha256-nS67ABuI2/C08X+TWWoOx7bptIPF1fsvBC1Ucoky1/4=";

  buildFeatures = [ "custom-protocol" ];

@@ -48,7 +48,7 @@ rustPlatform.buildRustPackage {
  postPatch = ''
    mkdir -p ui-build
    cp -R ${coolercontrol.coolercontrol-ui-data}/* ui-build/
    substituteInPlace tauri.conf.json --replace '"frontendDist": "../dist"' '"frontendDist": "ui-build"'
    substituteInPlace tauri.conf.json --replace-fail '"frontendDist": "../dist"' '"frontendDist": "ui-build"'
  '';

  postInstall = ''
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ python3.pkgs.buildPythonApplication {
  postInstall = ''
    install -Dm444 "${src}/packaging/systemd/coolercontrol-liqctld.service" -t "$out/lib/systemd/system"
    substituteInPlace "$out/lib/systemd/system/coolercontrol-liqctld.service" \
      --replace '/usr/bin' "$out/bin"
      --replace-fail '/usr/bin' "$out/bin"
  '';

  meta = meta // {
+12 −1
Original line number Diff line number Diff line
{ buildNpmPackage
, autoPatchelfHook
}:

{ version
@@ -11,7 +12,17 @@ buildNpmPackage {
  inherit version src;
  sourceRoot = "${src.name}/coolercontrol-ui";

  npmDepsHash = "sha256-PpX9lk+yEG1auvBv5JBdMh7rjWoM0oTYJx6Nme5ij8s=";
  npmDepsHash = "sha256-j+bGOGIG9H/1z0dN8BfvWSi6gPvYmCV7l0ZNH8h3yeU=";

  preBuild = ''
    autoPatchelf node_modules/sass-embedded-linux-x64/dart-sass/src/dart
  '';

  nativeBuildInputs = [
    autoPatchelfHook
  ];

  dontAutoPatchelf = true;

  postBuild = ''
    cp -r dist $out
+4 −8
Original line number Diff line number Diff line
@@ -15,12 +15,8 @@ rustPlatform.buildRustPackage {
  inherit version src;
  sourceRoot = "${src.name}/coolercontrold";

  cargoLock = {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "nvml-wrapper-0.10.0" = "sha256-pMiULWT+nJXcDfLDeACG/DaPF5+AbzpoIUWWWz8mQ+0=";
    };
  };
  useFetchCargoVendor = true;
  cargoHash = "sha256-ZAjaegUgNkKygXqskyeUkWpcqi1Jt7pE8GtqWlaP6/I=";

  buildInputs = [
    libdrm
@@ -30,7 +26,7 @@ rustPlatform.buildRustPackage {
    # copy the frontend static resources to a directory for embedding
    mkdir -p ui-build
    cp -R ${coolercontrol.coolercontrol-ui-data}/* ui-build/
    substituteInPlace build.rs --replace '"./resources/app"' '"./ui-build"'
    substituteInPlace build.rs --replace-fail '"./resources/app"' '"./ui-build"'

    # Hardcode a shell
    substituteInPlace src/repositories/utils.rs \
@@ -40,7 +36,7 @@ rustPlatform.buildRustPackage {
  postInstall = ''
    install -Dm444 "${src}/packaging/systemd/coolercontrold.service" -t "$out/lib/systemd/system"
    substituteInPlace "$out/lib/systemd/system/coolercontrold.service" \
      --replace '/usr/bin' "$out/bin"
      --replace-fail '/usr/bin' "$out/bin"
  '';

  passthru.tests.version = testers.testVersion {
Loading