Loading pkgs/development/libraries/opencsg/default.nix +5 −11 Original line number Diff line number Diff line Loading @@ -22,6 +22,8 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-r8wASontO8R4qeS6ObIPPVibJOI+J1tzg/kaWQ1NV8U="; }; patches = lib.optionals stdenv.hostPlatform.isDarwin [ ./opencsgexample.patch ]; nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; buildInputs = Loading @@ -37,18 +39,10 @@ stdenv.mkDerivation (finalAttrs: { doCheck = false; postInstall = '' postInstall = '' install -D ../copying.txt "$out/share/doc/opencsg/copying.txt" '' + lib.optionalString stdenv.hostPlatform.isDarwin '' mkdir -p $out/Applications mv $out/bin/*.app $out/Applications rmdir $out/bin || true ''; dontWrapQtApps = true; postFixup = lib.optionalString stdenv.hostPlatform.isDarwin '' app=$out/Applications/opencsgexample.app/Contents/MacOS/opencsgexample install_name_tool -change \ Loading pkgs/development/libraries/opencsg/opencsgexample.patch 0 → 100644 +8 −0 Original line number Diff line number Diff line --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -19,4 +19,5 @@ install(TARGETS opencsgexample RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + BUNDLE DESTINATION ${CMAKE_INSTALL_PREFIX}/Applications ) Loading
pkgs/development/libraries/opencsg/default.nix +5 −11 Original line number Diff line number Diff line Loading @@ -22,6 +22,8 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-r8wASontO8R4qeS6ObIPPVibJOI+J1tzg/kaWQ1NV8U="; }; patches = lib.optionals stdenv.hostPlatform.isDarwin [ ./opencsgexample.patch ]; nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; buildInputs = Loading @@ -37,18 +39,10 @@ stdenv.mkDerivation (finalAttrs: { doCheck = false; postInstall = '' postInstall = '' install -D ../copying.txt "$out/share/doc/opencsg/copying.txt" '' + lib.optionalString stdenv.hostPlatform.isDarwin '' mkdir -p $out/Applications mv $out/bin/*.app $out/Applications rmdir $out/bin || true ''; dontWrapQtApps = true; postFixup = lib.optionalString stdenv.hostPlatform.isDarwin '' app=$out/Applications/opencsgexample.app/Contents/MacOS/opencsgexample install_name_tool -change \ Loading
pkgs/development/libraries/opencsg/opencsgexample.patch 0 → 100644 +8 −0 Original line number Diff line number Diff line --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -19,4 +19,5 @@ install(TARGETS opencsgexample RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + BUNDLE DESTINATION ${CMAKE_INSTALL_PREFIX}/Applications )