Merge pull request #247503 from wegank/libfive-bump

libfive: unstable-2022-05-19 -> unstable-2023-06-07

authored by

Weijia Wang and committed by
GitHub
50071c61 187aca8b

+24 -18
+23 -17
pkgs/development/libraries/libfive/default.nix
··· 1 1 { lib 2 - , mkDerivation 2 + , stdenv 3 3 , wrapQtAppsHook 4 4 , fetchFromGitHub 5 5 , cmake ··· 10 10 , libpng 11 11 , boost 12 12 , guile 13 - , stdenv 13 + , qtbase 14 + , darwin 14 15 }: 15 16 16 - mkDerivation { 17 - pname = "libfive-unstable"; 18 - version = "2022-05-19"; 17 + stdenv.mkDerivation { 18 + pname = "libfive"; 19 + version = "unstable-2023-06-07"; 19 20 20 21 src = fetchFromGitHub { 21 22 owner = "libfive"; 22 23 repo = "libfive"; 23 - rev = "d83cc22709ff1f7c478be07ff2419e30e024834e"; 24 - sha256 = "lNJg2LCpFcTewSA00s7omUtzhVxycAXvo6wEM/JjrN0="; 24 + rev = "c85ffe1ba1570c2551434c5bad731884aaf80598"; 25 + hash = "sha256-OITy3fJx+Z6856V3D/KpSQRJztvOdJdqUv1c65wNgCc="; 25 26 }; 26 27 27 28 nativeBuildInputs = [ wrapQtAppsHook cmake ninja pkg-config ]; 28 - buildInputs = [ eigen zlib libpng boost guile ]; 29 + buildInputs = [ eigen zlib libpng boost guile qtbase ] 30 + ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk_11_0.frameworks.Cocoa ]; 29 31 30 32 preConfigure = '' 31 33 substituteInPlace studio/src/guile/interpreter.cpp \ 32 - --replace "qputenv(\"GUILE_LOAD_COMPILED_PATH\", \"libfive/bind/guile\");" \ 33 - "qputenv(\"GUILE_LOAD_COMPILED_PATH\", \"libfive/bind/guile:$out/${guile.siteCcacheDir}\");" 34 + --replace '"libfive/bind/guile"' \ 35 + '"libfive/bind/guile:${placeholder "out"}/${guile.siteCcacheDir}"' \ 36 + --replace '(app_resource_dir + ":" + finder_build_dir).toLocal8Bit()' \ 37 + '"libfive/bind/guile:${placeholder "out"}/${guile.siteCcacheDir}"' 34 38 35 39 substituteInPlace libfive/bind/guile/CMakeLists.txt \ 36 40 --replace "LIBFIVE_FRAMEWORK_DIR=$<TARGET_FILE_DIR:libfive>" \ ··· 43 47 44 48 cmakeFlags = [ 45 49 "-DGUILE_CCACHE_DIR=${placeholder "out"}/${guile.siteCcacheDir}" 50 + ] ++ lib.optionals (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "11") [ 51 + # warning: 'aligned_alloc' is only available on macOS 10.15 or newer 52 + "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15" 46 53 ]; 47 54 48 - postInstall = if stdenv.isDarwin then '' 55 + postInstall = lib.optionalString stdenv.isDarwin '' 49 56 # No rules to install the mac app, so do it manually. 50 57 mkdir -p $out/Applications 51 58 cp -r studio/Studio.app $out/Applications/Studio.app 52 59 53 - install_name_tool \ 54 - -change libfive.dylib $out/lib/libfive.dylib \ 55 - -change libfive-guile.dylib $out/lib/libfive-guile.dylib \ 56 - $out/Applications/Studio.app/Contents/MacOS/Studio 57 - '' else '' 60 + install_name_tool -add_rpath $out/lib $out/Applications/Studio.app/Contents/MacOS/Studio 61 + 62 + makeWrapper $out/Applications/Studio.app/Contents/MacOS/Studio $out/bin/Studio 63 + '' + '' 58 64 # Link "Studio" binary to "libfive-studio" to be more obvious: 59 65 ln -s "$out/bin/Studio" "$out/bin/libfive-studio" 60 66 ''; ··· 64 70 homepage = "https://libfive.com/"; 65 71 maintainers = with maintainers; [ hodapp kovirobi ]; 66 72 license = with licenses; [ mpl20 gpl2Plus ]; 67 - platforms = with platforms; linux ++ darwin; 73 + platforms = with platforms; all; 68 74 }; 69 75 }
+1 -1
pkgs/top-level/all-packages.nix
··· 22583 22583 22584 22584 libfabric = callPackage ../development/libraries/libfabric { }; 22585 22585 22586 - libfive = libsForQt5.callPackage ../development/libraries/libfive { }; 22586 + libfive = qt6Packages.callPackage ../development/libraries/libfive { }; 22587 22587 22588 22588 libfixposix = callPackage ../development/libraries/libfixposix { }; 22589 22589