File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 37
37
] ++ pkgs . lib . optionals pkgs . stdenv . isDarwin [
38
38
pkgs . darwin . apple_sdk . frameworks . Cocoa
39
39
] ++ pkgs . lib . optionals ( ! pkgs . stdenv . isDarwin ) [
40
- pkgs . qt6 . full # TODO: Qt should work on Darwin too
40
+ pkgs . qt6 . qtbase # TODO: Qt should work on Darwin too
41
+ pkgs . qt6 . wrapQtAppsHook
41
42
] ;
42
43
stdenv = if pkgs . stdenv . isLinux then pkgs . stdenv
43
44
else if pkgs . stdenv . isDarwin then pkgs . clang18Stdenv
67
68
postInstall =
68
69
if pkgs . stdenv . isLinux then ''
69
70
wrapProgram $out/bin/n64 --set LD_LIBRARY_PATH ${ pkgs . vulkan-loader } /lib
71
+ wrapProgram $out/bin/n64-qt --set LD_LIBRARY_PATH ${ pkgs . vulkan-loader } /lib
70
72
'' else if pkgs . stdenv . isDarwin then ''
71
73
wrapProgram $out/bin/n64 --set DYLD_FALLBACK_LIBRARY_PATH ${ pkgs . darwin . moltenvk } /lib
72
74
'' else throw "Unsupported platform" ;
78
80
program = "${ self . packages . ${ system } . default } /bin/n64" ;
79
81
} ;
80
82
83
+ apps . qt = {
84
+ type = "app" ;
85
+ program = "${ self . packages . ${ system } . default } /bin/n64-qt" ;
86
+ } ;
87
+
81
88
devShells . default = pkgs . mkShell . override { stdenv = stdenv ; }
82
89
{
83
90
buildInputs = devShellTools ++ tools ++ libs ;
Original file line number Diff line number Diff line change @@ -16,4 +16,5 @@ target_link_libraries(${N64_TARGET}-qt Qt6::Widgets Qt6::Gui Qt6::Core common co
16
16
set_target_properties (${N64_QT_TARGET}
17
17
PROPERTIES
18
18
RUNTIME_OUTPUT_DIRECTORY "${N64_EXECUTABLE_OUTPUT_PATH} "
19
- )
19
+ )
20
+ install (TARGETS ${N64_QT_TARGET} RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX} /bin)
You can’t perform that action at this time.
0 commit comments