Loading pkgs/applications/misc/input-leap/default.nix +9 −2 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ fetchFromGitHub, cmake, withLibei ? true, withLibei ? !stdenv.hostPlatform.isDarwin, avahi, curl, Loading @@ -19,6 +19,7 @@ libei, libportal, openssl, pkgsStatic, pkg-config, qtbase, qttools, Loading @@ -38,6 +39,8 @@ stdenv.mkDerivation rec { fetchSubmodules = true; }; patches = [ ./macos-no-dmg.patch ]; nativeBuildInputs = [ pkg-config cmake Loading @@ -45,6 +48,7 @@ stdenv.mkDerivation rec { wrapQtAppsHook qttools ]; buildInputs = [ curl Loading @@ -62,6 +66,9 @@ stdenv.mkDerivation rec { ++ lib.optionals withLibei [ libei libportal ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ pkgsStatic.openssl ]; cmakeFlags = [ Loading Loading @@ -94,6 +101,6 @@ stdenv.mkDerivation rec { twey shymega ]; platforms = lib.platforms.linux; platforms = lib.platforms.linux ++ lib.platforms.darwin; }; } pkgs/applications/misc/input-leap/macos-no-dmg.patch 0 → 100644 +22 −0 Original line number Diff line number Diff line diff --git a/CMakeLists.txt b/CMakeLists.txt index ab4e56f2..d01d946d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -289,17 +289,6 @@ endmacro (configure_files) # Make a bundle for mac os if (APPLE) set (CMAKE_INSTALL_RPATH "@loader_path/../Libraries;@loader_path/../Frameworks") - set(INPUTLEAP_BUNDLE_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/dist/macos/bundle) - set(INPUTLEAP_BUNDLE_DIR ${CMAKE_BINARY_DIR}/bundle) - set(INPUTLEAP_BUNDLE_APP_DIR ${INPUTLEAP_BUNDLE_DIR}/InputLeap.app) - set(INPUTLEAP_BUNDLE_BINARY_DIR ${INPUTLEAP_BUNDLE_APP_DIR}/Contents/MacOS) - - configure_files(${INPUTLEAP_BUNDLE_SOURCE_DIR} ${INPUTLEAP_BUNDLE_DIR}) - - add_custom_target(InputLeap_MacOS ALL - bash build_dist.sh - DEPENDS input-leap input-leaps input-leapc - WORKING_DIRECTORY ${INPUTLEAP_BUNDLE_DIR}) elseif (UNIX AND NOT APPLE) install(FILES doc/input-leapc.1 doc/input-leaps.1 DESTINATION share/man/man1) Loading
pkgs/applications/misc/input-leap/default.nix +9 −2 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ fetchFromGitHub, cmake, withLibei ? true, withLibei ? !stdenv.hostPlatform.isDarwin, avahi, curl, Loading @@ -19,6 +19,7 @@ libei, libportal, openssl, pkgsStatic, pkg-config, qtbase, qttools, Loading @@ -38,6 +39,8 @@ stdenv.mkDerivation rec { fetchSubmodules = true; }; patches = [ ./macos-no-dmg.patch ]; nativeBuildInputs = [ pkg-config cmake Loading @@ -45,6 +48,7 @@ stdenv.mkDerivation rec { wrapQtAppsHook qttools ]; buildInputs = [ curl Loading @@ -62,6 +66,9 @@ stdenv.mkDerivation rec { ++ lib.optionals withLibei [ libei libportal ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ pkgsStatic.openssl ]; cmakeFlags = [ Loading Loading @@ -94,6 +101,6 @@ stdenv.mkDerivation rec { twey shymega ]; platforms = lib.platforms.linux; platforms = lib.platforms.linux ++ lib.platforms.darwin; }; }
pkgs/applications/misc/input-leap/macos-no-dmg.patch 0 → 100644 +22 −0 Original line number Diff line number Diff line diff --git a/CMakeLists.txt b/CMakeLists.txt index ab4e56f2..d01d946d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -289,17 +289,6 @@ endmacro (configure_files) # Make a bundle for mac os if (APPLE) set (CMAKE_INSTALL_RPATH "@loader_path/../Libraries;@loader_path/../Frameworks") - set(INPUTLEAP_BUNDLE_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/dist/macos/bundle) - set(INPUTLEAP_BUNDLE_DIR ${CMAKE_BINARY_DIR}/bundle) - set(INPUTLEAP_BUNDLE_APP_DIR ${INPUTLEAP_BUNDLE_DIR}/InputLeap.app) - set(INPUTLEAP_BUNDLE_BINARY_DIR ${INPUTLEAP_BUNDLE_APP_DIR}/Contents/MacOS) - - configure_files(${INPUTLEAP_BUNDLE_SOURCE_DIR} ${INPUTLEAP_BUNDLE_DIR}) - - add_custom_target(InputLeap_MacOS ALL - bash build_dist.sh - DEPENDS input-leap input-leaps input-leapc - WORKING_DIRECTORY ${INPUTLEAP_BUNDLE_DIR}) elseif (UNIX AND NOT APPLE) install(FILES doc/input-leapc.1 doc/input-leaps.1 DESTINATION share/man/man1)