From abd94976c16794c2605bbd93713fb7684f8628fb Mon Sep 17 00:00:00 2001 From: cy Date: Sat, 18 Jan 2025 03:03:21 -0500 Subject: [PATCH] lact: 0.6.0 -> 0.7.0 changelog: https://github.com/ilya-zlobintsev/LACT/releases/tag/v0.7.0 also add nix-update-script to passthru.updateScript --- pkgs/by-name/la/lact/package.nix | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/la/lact/package.nix b/pkgs/by-name/la/lact/package.nix index 85a5c338e4c9..e0e4e13d8b21 100644 --- a/pkgs/by-name/la/lact/package.nix +++ b/pkgs/by-name/la/lact/package.nix @@ -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 = [ @@ -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 = '' @@ -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 libvulkan.so \ + --add-needed 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";