freecad: prepare migration to by-name

- change libsForQt5.callPackage to callPackage
- bring the libsForQt5 and python3Packages into the scope of expression
This commit is contained in:
Anderson Torres 2024-03-09 13:38:32 -03:00
parent 0db3bc9e5c
commit f88b0e47f0
2 changed files with 31 additions and 39 deletions

View File

@ -1,14 +1,10 @@
{ lib
, fmt
, stdenv
, fetchFromGitHub
, cmake
, doxygen
, ninja
, gitpython
, boost
, coin3d
, doxygen
, eigen
, fetchFromGitHub
, fmt
, freecad # for passthru.tests
, gfortran
, gts
@ -17,38 +13,48 @@
, libXmu
, libf2c
, libredwg
, libsForQt5
, libspnav
, matplotlib
, medfile
, mpi
, ninja
, ode
, opencascade-occt
, pivy
, pkg-config
, ply
, pycollada
, pyside2
, pyside2-tools
, python
, pyyaml
, qtbase
, qttools
, qtwebengine
, qtx11extras
, qtxmlpatterns
, python3Packages
, runCommand # for passthru.tests
, scipy
, shiboken2
, soqt
, spaceNavSupport ? stdenv.isLinux
, stdenv
, swig
, vtk
, wrapQtAppsHook
, wrapGAppsHook
, xercesc
, zlib
}:
let
boost = python3Packages.boost;
inherit (libsForQt5)
qtbase
qttools
qtwebengine
qtx11extras
qtxmlpatterns
soqt
wrapQtAppsHook;
inherit (python3Packages)
gitpython
matplotlib
pivy
ply
pycollada
pyside2
pyside2-tools
python
pyyaml
scipy
shiboken2;
in
stdenv.mkDerivation (finalAttrs: {
pname = "freecad";
version = "0.21.2";

View File

@ -31641,21 +31641,7 @@ with pkgs;
fragments = callPackage ../applications/networking/p2p/fragments { };
freecad = libsForQt5.callPackage ../applications/graphics/freecad {
boost = python3Packages.boost;
inherit (python3Packages)
gitpython
matplotlib
pivy
ply
pycollada
pyside2
pyside2-tools
python
pyyaml
scipy
shiboken2;
};
freecad = callPackage ../applications/graphics/freecad { };
freedv = callPackage ../applications/radio/freedv {
inherit (darwin.apple_sdk.frameworks) AppKit AVFoundation Cocoa CoreMedia;