lact: 0.8.3 -> 0.8.4
This commit is contained in:
@@ -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"'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user