Unverified Commit ef9297bd authored by Ulrik Strid's avatar Ulrik Strid Committed by GitHub
Browse files

lenovo-legion: use unstable update script; build with qt6 (#452491)

parents c3c3013b d3f93869
Loading
Loading
Loading
Loading
+13 −5
Original line number Diff line number Diff line
@@ -4,12 +4,14 @@
  xorg,
  wrapQtAppsHook,
  python3,
  nix-update-script,
  qtbase,
}:

python3.pkgs.buildPythonApplication rec {
  pname = "lenovo-legion-app";
  version = "0.0.21-unstable-2025-07-11";
  format = "setuptools";
  version = "0.0.20-unstable-2025-07-11";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "johnfanv2";
@@ -20,10 +22,14 @@ python3.pkgs.buildPythonApplication rec {

  sourceRoot = "${src.name}/python/legion_linux";

  nativeBuildInputs = [ wrapQtAppsHook ];
  build-system = with python3.pkgs; [
    setuptools
    wrapQtAppsHook
  ];

  propagatedBuildInputs = with python3.pkgs; [
  dependencies = with python3.pkgs; [
    pyqt6
    qtbase
    argcomplete
    pillow
    pyyaml
@@ -52,11 +58,13 @@ python3.pkgs.buildPythonApplication rec {
    makeWrapperArgs+=("''${qtWrapperArgs[@]}")
  '';

  passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };

  meta = {
    description = "Utility to control Lenovo Legion laptop";
    homepage = "https://github.com/johnfanv2/LenovoLegionLinux";
    license = lib.licenses.gpl2Only;
    platforms = lib.platforms.linux;
    platforms = [ "x86_64-linux" ];
    maintainers = with lib.maintainers; [
      ulrikstrid
      logger
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ stdenv.mkDerivation {
    description = "Linux kernel module for controlling fan and power in Lenovo Legion laptops";
    homepage = "https://github.com/johnfanv2/LenovoLegionLinux";
    license = lib.licenses.gpl2Only;
    platforms = lib.platforms.linux;
    platforms = [ "x86_64-linux" ];
    maintainers = [ lib.maintainers.ulrikstrid ];
    broken = kernel.kernelOlder "5.15";
  };
+1 −1
Original line number Diff line number Diff line
@@ -11722,7 +11722,7 @@ with pkgs;

  lemonbar-xft = callPackage ../applications/window-managers/lemonbar/xft.nix { };

  lenovo-legion = libsForQt5.callPackage ../os-specific/linux/lenovo-legion/app.nix { };
  lenovo-legion = qt6Packages.callPackage ../os-specific/linux/lenovo-legion/app.nix { };

  libkiwix = callPackage ../applications/misc/kiwix/lib.nix { };