Unverified Commit d7232ca4 authored by Masum Reza's avatar Masum Reza Committed by GitHub
Browse files

lact: 0.8.3 -> 0.8.4 (#483886)

parents 331e50cb d60a0840
Loading
Loading
Loading
Loading
+11 −6
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
  pkg-config,
  wrapGAppsHook4,
  bashNonInteractive,
  clinfo,
  gdk-pixbuf,
  gtk4,
  libdrm,
@@ -23,16 +24,16 @@

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "lact";
  version = "0.8.3";
  version = "0.8.4";

  src = fetchFromGitHub {
    owner = "ilya-zlobintsev";
    repo = "LACT";
    tag = "v${finalAttrs.version}";
    hash = "sha256-CbpUg+PB4Kx8AJavXY1GorNb3KfyKl8ovY2y2658UXI=";
    hash = "sha256-5z4IAiApUjlsSL0EX1PQH6rceeQxAD8f3CKmYO2x8gQ=";
  };

  cargoHash = "sha256-+3r3FXol7FzgpaasNT3uVT+PhfoRrRNS4z1iYPiwHRM=";
  cargoHash = "sha256-mCmAj9yLei0ZNtsBh+YeVlCmbHyT69LIHFnwbAk+Ido=";

  nativeBuildInputs = [
    pkg-config
@@ -69,18 +70,22 @@ rustPlatform.buildRustPackage (finalAttrs: {
  );

  postPatch = ''
    substituteInPlace lact-daemon/src/system.rs \
      --replace-fail 'Command::new("uname")' 'Command::new("${coreutils}/bin/uname")'

    substituteInPlace lact-daemon/src/server/handler.rs \
      --replace-fail 'run_command("journalctl",'  'run_command("${systemdMinimal}/bin/journalctl",'

    substituteInPlace lact-daemon/src/server/handler.rs \
      --replace-fail 'Command::new("sh")' 'Command::new("${bashNonInteractive}/bin/bash")'

    substituteInPlace lact-daemon/src/server/handler.rs \
      --replace-fail 'Command::new("clinfo")' 'Command::new("${clinfo}/bin/clinfo")'

    substituteInPlace lact-daemon/src/server/vulkan.rs \
      --replace-fail 'Command::new("vulkaninfo")' 'Command::new("${vulkan-tools}/bin/vulkaninfo")'

    substituteInPlace lact-daemon/src/server/opencl.rs \
      --replace-fail 'Command::new("clinfo")' 'Command::new("${clinfo}/bin/clinfo")'


    substituteInPlace lact-daemon/src/socket.rs \
      --replace-fail 'run_command("chown"' 'run_command("${coreutils}/bin/chown"'