We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f252816 commit faeb699Copy full SHA for faeb699
.gitignore
@@ -16,6 +16,7 @@ qtox
16
build-*-Release
17
build-*-Profile
18
build-*-Debug
19
+.qtox-wrapped
20
21
# Folders
22
_[Bb]uild*/
CMakeLists.txt
@@ -714,3 +714,12 @@ target_link_libraries(${PROJECT_NAME}
714
715
include(Testing)
716
include(Installation)
717
+
718
+if (DEFINED ENV{IN_NIX_SHELL})
719
+ # the qtox binary must be "wrapped" to find the Qt platform plugin
720
+ # and other dependencies at runtime
721
+ add_custom_command(
722
+ TARGET ${PROJECT_NAME}
723
+ POST_BUILD
724
+ COMMAND nix-shell --run "wrapQtApp ${PROJECT_NAME}")
725
+endif()
shell.nix
@@ -0,0 +1,2 @@
1
+{ pkgs ? import <nixpkgs> { } }:
2
+pkgs.mkShell { inputsFrom = with pkgs; [ qtox ]; }
0 commit comments