lact: 0.7.4 -> 0.8.0
commits: https://github.com/ilya-zlobintsev/LACT/compare/v0.7.4...v0.8.0 release notes: https://github.com/ilya-zlobintsev/LACT/releases/tag/v0.8.0
This commit is contained in:
parent
f7be425bc2
commit
589257bf13
@ -18,21 +18,22 @@
|
|||||||
hwdata,
|
hwdata,
|
||||||
fuse3,
|
fuse3,
|
||||||
autoAddDriverRunpath,
|
autoAddDriverRunpath,
|
||||||
|
fetchpatch,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage (finalAttrs: {
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
pname = "lact";
|
pname = "lact";
|
||||||
version = "0.7.4";
|
version = "0.8.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ilya-zlobintsev";
|
owner = "ilya-zlobintsev";
|
||||||
repo = "LACT";
|
repo = "LACT";
|
||||||
tag = "v${finalAttrs.version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-zOvFWl78INlpCcEHiB3qZdxPNHXfUeKxfHyrO+wVNN0=";
|
hash = "sha256-HsDVz9Wd1WoGWIB4Cs/GsvC7RDyHAeXfFGXZDWEmo/c=";
|
||||||
};
|
};
|
||||||
|
|
||||||
useFetchCargoVendor = true;
|
useFetchCargoVendor = true;
|
||||||
cargoHash = "sha256-10FdXUpLL+8xN818toShccgB5NfpzrOLfEeDAX5oMFw=";
|
cargoHash = "sha256-fgF7gOXxB9sQqA5H1hw6A0Fb5tTBPySAbSxVhcKVhcM=";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
@ -68,14 +69,20 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
name = "fix-tests::snapshot_everything-due-to-outdated-hwdata-649.patch";
|
||||||
|
url = "https://github.com/ilya-zlobintsev/LACT/commit/c9a59e48a36d590d7522c22bd15a8f9208bef0ee.patch";
|
||||||
|
hash = "sha256-Ehq8vRosqyqpRPeabkdpBHBF6ONqSJHOeq3AXw8PXPU=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace lact-daemon/src/server/system.rs \
|
substituteInPlace lact-daemon/src/system.rs \
|
||||||
--replace-fail 'Command::new("uname")' 'Command::new("${coreutils}/bin/uname")'
|
|
||||||
substituteInPlace lact-daemon/src/server/profiles.rs \
|
|
||||||
--replace-fail 'Command::new("uname")' 'Command::new("${coreutils}/bin/uname")'
|
--replace-fail 'Command::new("uname")' 'Command::new("${coreutils}/bin/uname")'
|
||||||
|
|
||||||
substituteInPlace lact-daemon/src/server/handler.rs \
|
substituteInPlace lact-daemon/src/server/handler.rs \
|
||||||
--replace-fail 'Command::new("journalctl")' 'Command::new("${systemdMinimal}/bin/journalctl")'
|
--replace-fail 'run_command("journalctl",' 'run_command("${systemdMinimal}/bin/journalctl",'
|
||||||
|
|
||||||
substituteInPlace lact-daemon/src/server/vulkan.rs \
|
substituteInPlace lact-daemon/src/server/vulkan.rs \
|
||||||
--replace-fail 'Command::new("vulkaninfo")' 'Command::new("${vulkan-tools}/bin/vulkaninfo")'
|
--replace-fail 'Command::new("vulkaninfo")' 'Command::new("${vulkan-tools}/bin/vulkaninfo")'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user