dune3d: fix darwin build
This commit is contained in:
parent
5f6c2b2b23
commit
893a4feeb5
@ -1,5 +1,6 @@
|
||||
{
|
||||
cmake,
|
||||
desktopToDarwinBundle,
|
||||
eigen,
|
||||
fetchFromGitHub,
|
||||
glm,
|
||||
@ -7,19 +8,26 @@
|
||||
gtkmm4,
|
||||
lib,
|
||||
libepoxy,
|
||||
libossp_uuid,
|
||||
librsvg,
|
||||
libspnav,
|
||||
libuuid,
|
||||
libxml2,
|
||||
llvmPackages_17,
|
||||
meson,
|
||||
ninja,
|
||||
opencascade-occt,
|
||||
opencascade-occt_7_6,
|
||||
pkg-config,
|
||||
python3,
|
||||
stdenv,
|
||||
wrapGAppsHook3,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
let
|
||||
stdenv' = if stdenv.isDarwin then llvmPackages_17.stdenv else stdenv;
|
||||
opencascade-occt = opencascade-occt_7_6;
|
||||
in
|
||||
stdenv'.mkDerivation (finalAttrs: {
|
||||
pname = "dune3d";
|
||||
version = "1.1.0";
|
||||
|
||||
@ -36,7 +44,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
ninja
|
||||
pkg-config
|
||||
wrapGAppsHook3
|
||||
];
|
||||
libxml2 # for xmllints
|
||||
] ++ lib.optional stdenv.isDarwin desktopToDarwinBundle;
|
||||
|
||||
buildInputs = [
|
||||
cmake
|
||||
eigen
|
||||
@ -45,7 +55,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
libepoxy
|
||||
librsvg
|
||||
libspnav
|
||||
libuuid
|
||||
(if stdenv.isLinux then libuuid else libossp_uuid)
|
||||
opencascade-occt
|
||||
(python3.withPackages (pp: [
|
||||
pp.pygobject3
|
||||
@ -60,6 +70,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [ _0x4A6F jue89 ];
|
||||
mainProgram = "dune3d";
|
||||
platforms = lib.platforms.linux;
|
||||
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
||||
};
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user