mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 11:05:14 +00:00
Merge pull request #324022 from r-ryantm/auto-update/python311Packages.f3d
python311Packages.f3d: 2.4.0 -> 2.5.0
This commit is contained in:
commit
d919897915
@ -4,6 +4,9 @@
|
||||
, cmake
|
||||
, help2man
|
||||
, gzip
|
||||
# There is a f3d overriden with EGL enabled vtk in top-level/all-packages.nix
|
||||
# compiling with EGL enabled vtk will result in f3d running in headless mode
|
||||
# See https://github.com/NixOS/nixpkgs/pull/324022. This may change later.
|
||||
, vtk_9
|
||||
, autoPatchelfHook
|
||||
, Cocoa
|
||||
@ -15,7 +18,7 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "f3d";
|
||||
version = "2.4.0";
|
||||
version = "2.5.0";
|
||||
|
||||
outputs = [ "out" ] ++ lib.optionals withManual [ "man" ];
|
||||
|
||||
@ -23,7 +26,7 @@ stdenv.mkDerivation rec {
|
||||
owner = "f3d-app";
|
||||
repo = "f3d";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-mqkPegbGos38S50CoV4Qse9Z4wZ327UmIwmSrrP35uI=";
|
||||
hash = "sha256-Mw40JyXZj+Q4a9dD5UnkUSdUfQGaV92gor8ynn86VJ8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -36,7 +36,7 @@ python3Packages.buildPythonApplication rec {
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
pygobject3
|
||||
f3d
|
||||
f3d_egl
|
||||
];
|
||||
|
||||
dontWrapGApps = true;
|
||||
|
@ -3,6 +3,7 @@
|
||||
, fetchpatch
|
||||
, enableQt ? false, qtx11extras, qttools, qtdeclarative, qtEnv
|
||||
, enablePython ? false, python ? throw "vtk: Python support requested, but no python interpreter was given."
|
||||
, enableEgl ? false
|
||||
# Darwin support
|
||||
, AGL, Cocoa, CoreServices, DiskArbitration, IOKit, CFNetwork, Security, GLUT, OpenGL
|
||||
, ApplicationServices, CoreText, IOSurface, ImageIO, xpc, libobjc
|
||||
@ -15,7 +16,9 @@ let
|
||||
pythonMajor = lib.substring 0 1 python.pythonVersion;
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
pname = "vtk${optionalString enableQt "-qvtk"}";
|
||||
pname = "vtk"
|
||||
+ optionalString enableEgl "-egl"
|
||||
+ optionalString enableQt "-qvtk";
|
||||
inherit version;
|
||||
|
||||
src = fetchurl {
|
||||
@ -82,7 +85,7 @@ in stdenv.mkDerivation {
|
||||
"-DVTK_MODULE_ENABLE_VTK_RenderingExternal=YES"
|
||||
] ++ lib.optionals (!stdenv.isDarwin) [
|
||||
"-DOPENGL_INCLUDE_DIR=${libGL}/include"
|
||||
"-DVTK_OPENGL_HAS_EGL=ON"
|
||||
(lib.cmakeBool "VTK_OPENGL_HAS_EGL" enableEgl)
|
||||
] ++ [
|
||||
"-DCMAKE_INSTALL_LIBDIR=lib"
|
||||
"-DCMAKE_INSTALL_INCLUDEDIR=include"
|
||||
@ -113,6 +116,7 @@ in stdenv.mkDerivation {
|
||||
homepage = "https://www.vtk.org/";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ knedlsepp tfmoraes ];
|
||||
platforms = with platforms; unix;
|
||||
platforms = platforms.unix;
|
||||
badPlatforms = optionals enableEgl platforms.darwin;
|
||||
};
|
||||
}
|
||||
|
@ -5101,6 +5101,8 @@ with pkgs;
|
||||
inherit (darwin.apple_sdk.frameworks) Cocoa OpenGL;
|
||||
};
|
||||
|
||||
f3d_egl = f3d.override { vtk_9 = vtk_9_egl; };
|
||||
|
||||
facedetect = callPackage ../tools/graphics/facedetect { };
|
||||
|
||||
faketty = callPackage ../tools/misc/faketty { };
|
||||
@ -24568,6 +24570,9 @@ with pkgs;
|
||||
vtk_9_withQt5 = vtk_9.override { enableQt = true; };
|
||||
|
||||
vtk = vtk_9;
|
||||
|
||||
vtk_9_egl = vtk_9.override { enableEgl = true; };
|
||||
|
||||
vtkWithQt5 = vtk_9_withQt5;
|
||||
|
||||
vulkan-caps-viewer = libsForQt5.callPackage ../tools/graphics/vulkan-caps-viewer { };
|
||||
|
@ -4104,6 +4104,11 @@ self: super: with self; {
|
||||
python3Packages = self;
|
||||
});
|
||||
|
||||
f3d_egl = toPythonModule (pkgs.f3d_egl.override {
|
||||
withPythonBinding = true;
|
||||
python3Packages = self;
|
||||
});
|
||||
|
||||
f5-icontrol-rest = callPackage ../development/python-modules/f5-icontrol-rest { };
|
||||
|
||||
f5-sdk = callPackage ../development/python-modules/f5-sdk { };
|
||||
|
Loading…
Reference in New Issue
Block a user