Skip to content

Commit

Permalink
Merge pull request #1880 from xc-jp/joan/pyside6-patch
Browse files Browse the repository at this point in the history
overrides: fix pyside6
  • Loading branch information
Nebucatnetzer authored Jan 7, 2025
2 parents 6e55727 + def16ba commit c079c99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions overrides/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2958,6 +2958,9 @@ lib.composeManyExtensions [
pkgs.xorg.libxshmfence
pkgs.xorg.libxkbfile
];
postInstall = ''
rm -r $out/${final.python.sitePackages}/PySide6/__pycache__/
'';
});
pyside6 = prev.pyside6.overridePythonAttrs (_old: {
# The PySide6/__init__.py script tries to find the Qt libraries
Expand All @@ -2972,6 +2975,7 @@ lib.composeManyExtensions [
postFixup = ''
${pkgs.xorg.lndir}/bin/lndir ${final.pyside6-essentials}/${final.python.sitePackages}/PySide6 $out/${final.python.sitePackages}/PySide6
${pkgs.xorg.lndir}/bin/lndir ${final.pyside6-addons}/${final.python.sitePackages}/PySide6 $out/${final.python.sitePackages}/PySide6
rm -r $out/${final.python.sitePackages}/PySide6/__pycache__/
'';
});

Expand Down

0 comments on commit c079c99

Please sign in to comment.