Sfoglia il codice sorgente

fix pyside6 not building

Maarten van den Berg 2 mesi fa
parent
commit
b3d7dd01e5
1 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. 8 1
      flake.nix

+ 8 - 1
flake.nix

@@ -16,13 +16,20 @@
16 16
       });
17 17
 
18 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 20
       in {
21 21
         default = pkgs.${system}.mkShellNoCC {
22 22
           packages = with pkgs.${system}; [
23 23
             (mkPoetryEnv {
24 24
               projectDir = self;
25 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 34
             poetry
28 35
             mypy