Loading pkgs/by-name/la/lact/package.nix +15 −22 Original line number Diff line number Diff line { lib , rustPlatform , stdenv , fetchFromGitHub , blueprint-compiler , pkg-config Loading @@ -9,21 +10,21 @@ , libdrm , vulkan-loader , coreutils , hwdata }: rustPlatform.buildRustPackage rec { pname = "lact"; version = "0.5.6"; version = "0.6.0"; src = fetchFromGitHub { owner = "ilya-zlobintsev"; repo = "LACT"; rev = "v${version}"; hash = "sha256-iz6Pl+A7Y/Ljot3QH2GaopgtfuYLpTLSq6uSprQ2EEU="; hash = "sha256-goNwLtVjNY3O/BhFrCcM3X11dtM34XgfHL6bh+YFoIY="; }; cargoHash = "sha256-uoMkz+0Jr07GpMRUKuJvrTTSAGdhLf35q/8but1fwIk="; useFetchCargoVendor = true; cargoHash = "sha256-rgpBmoGCNMU5nFVxzNtqsPaOn93mHW5P2isKgbP9UN4="; nativeBuildInputs = [ blueprint-compiler Loading @@ -40,25 +41,18 @@ rustPlatform.buildRustPackage rec { checkFlags = [ # tries and fails to initialize gtk "--skip=app::root_stack::thermals_page::fan_curve_frame::tests::set_get_curve" "--skip=app::pages::thermals_page::fan_curve_frame::tests::set_get_curve" ]; postPatch = '' substituteInPlace lact-daemon/src/server/system.rs \ --replace 'Command::new("uname")' 'Command::new("${coreutils}/bin/uname")' --replace-fail 'Command::new("uname")' 'Command::new("${coreutils}/bin/uname")' substituteInPlace res/lactd.service \ --replace ExecStart={lact,$out/bin/lact} --replace-fail ExecStart={lact,$out/bin/lact} substituteInPlace res/io.github.lact-linux.desktop \ --replace Exec={lact,$out/bin/lact} pushd $cargoDepsCopy/pciid-parser oldHash=$(sha256sum src/lib.rs | cut -d " " -f 1) substituteInPlace src/lib.rs --subst-var-by hwdata ${hwdata} substituteInPlace .cargo-checksum.json \ --replace $oldHash $(sha256sum src/lib.rs | cut -d " " -f 1) popd --replace-fail Exec={lact,$out/bin/lact} ''; postInstall = '' Loading @@ -67,17 +61,16 @@ rustPlatform.buildRustPackage rec { install -Dm444 res/io.github.lact-linux.png -t $out/share/pixmaps ''; postFixup = '' patchelf $out/bin/.lact-wrapped \ --add-rpath ${lib.makeLibraryPath [ vulkan-loader ]} postFixup = lib.optionalString stdenv.targetPlatform.isElf '' patchelf $out/bin/.lact-wrapped --add-needed libvulkan.so --add-rpath ${lib.makeLibraryPath [ vulkan-loader ]} ''; meta = with lib; { meta = { description = "Linux AMDGPU Controller"; homepage = "https://github.com/ilya-zlobintsev/LACT"; license = licenses.mit; maintainers = with maintainers; [ figsoda ]; platforms = platforms.linux; license = lib.licenses.mit; maintainers = with lib.maintainers; [ figsoda atemu ]; platforms = lib.platforms.linux; mainProgram = "lact"; }; } Loading
pkgs/by-name/la/lact/package.nix +15 −22 Original line number Diff line number Diff line { lib , rustPlatform , stdenv , fetchFromGitHub , blueprint-compiler , pkg-config Loading @@ -9,21 +10,21 @@ , libdrm , vulkan-loader , coreutils , hwdata }: rustPlatform.buildRustPackage rec { pname = "lact"; version = "0.5.6"; version = "0.6.0"; src = fetchFromGitHub { owner = "ilya-zlobintsev"; repo = "LACT"; rev = "v${version}"; hash = "sha256-iz6Pl+A7Y/Ljot3QH2GaopgtfuYLpTLSq6uSprQ2EEU="; hash = "sha256-goNwLtVjNY3O/BhFrCcM3X11dtM34XgfHL6bh+YFoIY="; }; cargoHash = "sha256-uoMkz+0Jr07GpMRUKuJvrTTSAGdhLf35q/8but1fwIk="; useFetchCargoVendor = true; cargoHash = "sha256-rgpBmoGCNMU5nFVxzNtqsPaOn93mHW5P2isKgbP9UN4="; nativeBuildInputs = [ blueprint-compiler Loading @@ -40,25 +41,18 @@ rustPlatform.buildRustPackage rec { checkFlags = [ # tries and fails to initialize gtk "--skip=app::root_stack::thermals_page::fan_curve_frame::tests::set_get_curve" "--skip=app::pages::thermals_page::fan_curve_frame::tests::set_get_curve" ]; postPatch = '' substituteInPlace lact-daemon/src/server/system.rs \ --replace 'Command::new("uname")' 'Command::new("${coreutils}/bin/uname")' --replace-fail 'Command::new("uname")' 'Command::new("${coreutils}/bin/uname")' substituteInPlace res/lactd.service \ --replace ExecStart={lact,$out/bin/lact} --replace-fail ExecStart={lact,$out/bin/lact} substituteInPlace res/io.github.lact-linux.desktop \ --replace Exec={lact,$out/bin/lact} pushd $cargoDepsCopy/pciid-parser oldHash=$(sha256sum src/lib.rs | cut -d " " -f 1) substituteInPlace src/lib.rs --subst-var-by hwdata ${hwdata} substituteInPlace .cargo-checksum.json \ --replace $oldHash $(sha256sum src/lib.rs | cut -d " " -f 1) popd --replace-fail Exec={lact,$out/bin/lact} ''; postInstall = '' Loading @@ -67,17 +61,16 @@ rustPlatform.buildRustPackage rec { install -Dm444 res/io.github.lact-linux.png -t $out/share/pixmaps ''; postFixup = '' patchelf $out/bin/.lact-wrapped \ --add-rpath ${lib.makeLibraryPath [ vulkan-loader ]} postFixup = lib.optionalString stdenv.targetPlatform.isElf '' patchelf $out/bin/.lact-wrapped --add-needed libvulkan.so --add-rpath ${lib.makeLibraryPath [ vulkan-loader ]} ''; meta = with lib; { meta = { description = "Linux AMDGPU Controller"; homepage = "https://github.com/ilya-zlobintsev/LACT"; license = licenses.mit; maintainers = with maintainers; [ figsoda ]; platforms = platforms.linux; license = lib.licenses.mit; maintainers = with lib.maintainers; [ figsoda atemu ]; platforms = lib.platforms.linux; mainProgram = "lact"; }; }