From 1ef83944095e8fbafbee45585e64bf6b0f0b39db Mon Sep 17 00:00:00 2001 From: aleksana Date: Sat, 24 May 2025 10:55:50 +0800 Subject: [PATCH] kohighlights: remove double wrapping, use pyproject = false --- pkgs/by-name/ko/kohighlights/package.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ko/kohighlights/package.nix b/pkgs/by-name/ko/kohighlights/package.nix index d121c6d3119b..59e0094288bf 100644 --- a/pkgs/by-name/ko/kohighlights/package.nix +++ b/pkgs/by-name/ko/kohighlights/package.nix @@ -13,6 +13,7 @@ python3Packages.buildPythonApplication rec { pname = "kohighlights"; version = "2.3.1.0"; + pyproject = false; # manual install src = fetchFromGitHub { owner = "noembryo"; @@ -23,7 +24,6 @@ python3Packages.buildPythonApplication rec { dontWrapPythonPrograms = true; dontBuild = true; - format = "other"; buildInputs = [ @@ -57,6 +57,8 @@ python3Packages.buildPythonApplication rec { }) ]; + dontWrapQtApps = true; + installPhase = '' runHook preInstall @@ -65,7 +67,8 @@ python3Packages.buildPythonApplication rec { cp -r * $out/share/KoHighlights makeWrapper ${python3.interpreter} $out/bin/KoHighlights \ --add-flags "$out/share/KoHighlights/main.py" \ - --set PYTHONPATH "${python3Packages.makePythonPath dependencies}" + --set PYTHONPATH "${python3Packages.makePythonPath dependencies}" \ + ''${qtWrapperArgs[@]} runHook postInstall '';