Commit a30c7487 authored by qbisi's avatar qbisi
Browse files

freecad: inherit python from python3Pacakges in makeCustomizable

parent aee49ac9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
  buildEnv,
  makeWrapper,
  lib,
  python311,
  python,
  writeShellScript,
}:
let
@@ -36,7 +36,7 @@ let
    if builtins.isString pyt then
      pyt
    else if builtins.isFunction pyt then
      "${(python311.withPackages pyt)}/lib/python3.11/site-packages"
      "${(python.withPackages pyt)}/${python.sitePackages}"
    else
      throw "Expected string or function as python paths for freecad"
  );
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ let
    shiboken6
  ];

  freecad-utils = callPackage ./freecad-utils.nix { };
  freecad-utils = callPackage ./freecad-utils.nix { inherit (python3Packages) python; };
in
freecad-utils.makeCustomizable (
  stdenv.mkDerivation (finalAttrs: {