Skip to content

Commit

Permalink
lact: 0.6.0 -> 0.7.0
Browse files Browse the repository at this point in the history
changelog: https://github.com/ilya-zlobintsev/LACT/releases/tag/v0.7.0

also add nix-update-script to passthru.updateScript
  • Loading branch information
cything committed Jan 18, 2025
1 parent 9ee0966 commit 5a86bac
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions pkgs/by-name/la/lact/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,28 @@
libdrm,
vulkan-loader,
coreutils,
nix-update-script,
}:

rustPlatform.buildRustPackage rec {
pname = "lact";
version = "0.6.0";
version = "0.7.0";

src = fetchFromGitHub {
owner = "ilya-zlobintsev";
repo = "LACT";
rev = "v${version}";
hash = "sha256-goNwLtVjNY3O/BhFrCcM3X11dtM34XgfHL6bh+YFoIY=";
hash = "sha256-9Enht9bwvk1jHYHRDPSUtwRxPGbPlU3V0hv0CuCOCls=";
};

useFetchCargoVendor = true;
cargoHash = "sha256-rgpBmoGCNMU5nFVxzNtqsPaOn93mHW5P2isKgbP9UN4=";
cargoHash = "sha256-Tw3yOu1pZJxjbg5fpOgWA46qbigq4hTIKh9eOXjAtBU=";

nativeBuildInputs = [
blueprint-compiler
pkg-config
wrapGAppsHook4
rustPlatform.bindgenHook
];

buildInputs = [
Expand All @@ -43,6 +45,7 @@ rustPlatform.buildRustPackage rec {
checkFlags = [
# tries and fails to initialize gtk
"--skip=app::pages::thermals_page::fan_curve_frame::tests::set_get_curve"
"--skip=tests::snapshot_everything"
];

postPatch = ''
Expand All @@ -63,11 +66,19 @@ rustPlatform.buildRustPackage rec {
'';

postFixup = lib.optionalString stdenv.targetPlatform.isElf ''
patchelf $out/bin/.lact-wrapped --add-needed libvulkan.so --add-rpath ${
lib.makeLibraryPath [ vulkan-loader ]
patchelf $out/bin/.lact-wrapped \
--add-needed ${vulkan-loader}/lib/libvulkan.so \
--add-needed ${libdrm}/lib/libdrm.so \
--add-rpath ${
lib.makeLibraryPath [
vulkan-loader
libdrm
]
}
'';

passthru.updateScript = nix-update-script { };

meta = {
description = "Linux GPU Configuration Tool for AMD and NVIDIA";
homepage = "https://github.com/ilya-zlobintsev/LACT";
Expand Down

0 comments on commit 5a86bac

Please sign in to comment.