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