23 aruco = callPackage ./aruco.nix {};
25 # license.txt inside the zip file is MIT
26 xplaneSdk = fetchzip {
27 url = "https://developer.x-plane.com/wp-content/plugins/code-sample-generation/sample_templates/XPSDK303.zip";
28 sha256 = "11wqjsr996c5qhiv2djsd55gc373a9qcq30dvc6rhzm0fys42zba";
35 src = fetchFromGitHub {
38 rev = "opentrack-${version}";
39 sha256 = "sha256-8gpNORTJclYUYp57Vw/0YO3XC9Idurt0a79fhqx0+mo=";
42 nativeBuildInputs = [cmake pkg-config ninja copyDesktopItems];
43 buildInputs = [qtbase qttools opencv4 procps eigen libXdmcp libevdev aruco];
45 env.NIX_CFLAGS_COMPILE = "-Wall -Wextra -Wpedantic -ffast-math -O3";
46 dontWrapQtApps = true;
49 "-DSDK_ARUCO_LIBPATH=${aruco}/lib/libaruco.a"
50 "-DSDK_XPLANE=${xplaneSdk}"
54 wrapQtApp $out/bin/opentrack
58 (makeDesktopItem rec {
62 url = "https://github.com/opentrack/opentrack/raw/opentrack-${version}/gui/images/opentrack.png";
63 sha256 = "0d114zk78f7nnrk89mz4gqn7yk3k71riikdn29w6sx99h57f6kgn";
66 genericName = "Head tracking software";
67 categories = ["Utility"];
72 homepage = "https://github.com/opentrack/opentrack";
73 description = "Head tracking software for MS Windows, Linux, and Apple OSX";
74 changelog = "https://github.com/opentrack/opentrack/releases/tag/${version}";
75 license = licenses.isc;
76 maintainers = with maintainers; [zaninime];