Browse Source

fix pyside6 not building

Maarten van den Berg 2 months ago
parent
commit
b3d7dd01e5
1 changed files with 8 additions and 1 deletions
  1. 8 1
      flake.nix

+ 8 - 1
flake.nix

16
       });
16
       });
17
 
17
 
18
       devShells = forAllSystems (system: let
18
       devShells = forAllSystems (system: let
19
-        inherit (poetry2nix.lib.mkPoetry2Nix { pkgs = pkgs.${system}; }) mkPoetryEnv;
19
+        inherit (poetry2nix.lib.mkPoetry2Nix { pkgs = pkgs.${system}; }) mkPoetryEnv overrides;
20
       in {
20
       in {
21
         default = pkgs.${system}.mkShellNoCC {
21
         default = pkgs.${system}.mkShellNoCC {
22
           packages = with pkgs.${system}; [
22
           packages = with pkgs.${system}; [
23
             (mkPoetryEnv {
23
             (mkPoetryEnv {
24
               projectDir = self;
24
               projectDir = self;
25
               extraPackages = ps: [ ps.black ps.pyside6 ps.dbus-python ];
25
               extraPackages = ps: [ ps.black ps.pyside6 ps.dbus-python ];
26
+              overrides = overrides.withDefaults
27
+              (pyfinal: pyprev: {
28
+                pyside6 = pyfinal.pkgs.python3.pkgs.pyside6;
29
+                shiboken6 = pyfinal.pkgs.python3.pkgs.shiboken6;
30
+                pyqt6 = pyfinal.pkgs.python3.pkgs.pyqt6;
31
+                pyqt6-sip = pyfinal.pkgs.python3.pkgs.pyqt6-sip;
32
+              });
26
             })
33
             })
27
             poetry
34
             poetry
28
             mypy
35
             mypy