diff --git a/pkgs/applications/graphics/cq-editor/default.nix b/pkgs/applications/graphics/cq-editor/default.nix index 036edf80ab9..cf94f4fa32d 100644 --- a/pkgs/applications/graphics/cq-editor/default.nix +++ b/pkgs/applications/graphics/cq-editor/default.nix @@ -2,6 +2,7 @@ , mkDerivationWith , python3Packages , fetchFromGitHub +, wrapQtAppsHook }: mkDerivationWith python3Packages.buildPythonApplication rec { @@ -27,8 +28,9 @@ mkDerivationWith python3Packages.buildPythonApplication rec { requests ]; - postFixup = '' - wrapQtApp "$out/bin/cq-editor" + nativeBuildInputs = [ wrapQtAppsHook ]; + preFixup = '' + makeWrapperArgs+=("''${qtWrapperArgs[@]}") ''; checkInputs = with python3Packages; [ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f66d1ff3db2..f4409fff16f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20098,7 +20098,7 @@ in coyim = callPackage ../applications/networking/instant-messengers/coyim {}; - cq-editor = libsForQt514.callPackage ../applications/graphics/cq-editor { + cq-editor = libsForQt5.callPackage ../applications/graphics/cq-editor { python3Packages = python37Packages; };