Merge pull request #185833 from zaninime/opentrack-fix
opentrack: 2.1.3 → 2022.3.0
This commit is contained in:
commit
5917c179d6
|
@ -1,9 +1,24 @@
|
||||||
{ mkDerivation, lib, callPackage, fetchzip, fetchFromGitHub, cmake, pkg-config
|
{
|
||||||
, ninja, copyDesktopItems, qtbase, qttools, opencv4, procps, eigen, libXdmcp
|
mkDerivation,
|
||||||
, libevdev, makeDesktopItem, fetchurl }:
|
lib,
|
||||||
|
callPackage,
|
||||||
let
|
fetchzip,
|
||||||
version = "2.3.13";
|
fetchFromGitHub,
|
||||||
|
cmake,
|
||||||
|
pkg-config,
|
||||||
|
ninja,
|
||||||
|
copyDesktopItems,
|
||||||
|
qtbase,
|
||||||
|
qttools,
|
||||||
|
opencv4,
|
||||||
|
procps,
|
||||||
|
eigen,
|
||||||
|
libXdmcp,
|
||||||
|
libevdev,
|
||||||
|
makeDesktopItem,
|
||||||
|
fetchurl,
|
||||||
|
}: let
|
||||||
|
version = "2022.3.0";
|
||||||
|
|
||||||
aruco = callPackage ./aruco.nix {};
|
aruco = callPackage ./aruco.nix {};
|
||||||
|
|
||||||
|
@ -12,8 +27,8 @@ let
|
||||||
url = "https://developer.x-plane.com/wp-content/plugins/code-sample-generation/sample_templates/XPSDK303.zip";
|
url = "https://developer.x-plane.com/wp-content/plugins/code-sample-generation/sample_templates/XPSDK303.zip";
|
||||||
sha256 = "11wqjsr996c5qhiv2djsd55gc373a9qcq30dvc6rhzm0fys42zba";
|
sha256 = "11wqjsr996c5qhiv2djsd55gc373a9qcq30dvc6rhzm0fys42zba";
|
||||||
};
|
};
|
||||||
|
in
|
||||||
in mkDerivation {
|
mkDerivation {
|
||||||
pname = "opentrack";
|
pname = "opentrack";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
|
@ -21,13 +36,14 @@ in mkDerivation {
|
||||||
owner = "opentrack";
|
owner = "opentrack";
|
||||||
repo = "opentrack";
|
repo = "opentrack";
|
||||||
rev = "opentrack-${version}";
|
rev = "opentrack-${version}";
|
||||||
sha256 = "1s986lmm5l1pwbwvd1pfiq84n32s1q1dav7a0cbga4d1vcf0v1ay";
|
sha256 = "sha256-8gpNORTJclYUYp57Vw/0YO3XC9Idurt0a79fhqx0+mo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [cmake pkg-config ninja copyDesktopItems];
|
nativeBuildInputs = [cmake pkg-config ninja copyDesktopItems];
|
||||||
buildInputs = [qtbase qttools opencv4 procps eigen libXdmcp libevdev aruco];
|
buildInputs = [qtbase qttools opencv4 procps eigen libXdmcp libevdev aruco];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wall -Wextra -Wpedantic -ffast-math -march=native -O3";
|
NIX_CFLAGS_COMPILE = "-Wall -Wextra -Wpedantic -ffast-math -march=native -O3";
|
||||||
|
dontWrapQtApps = true;
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DCMAKE_BUILD_TYPE=RELEASE"
|
"-DCMAKE_BUILD_TYPE=RELEASE"
|
||||||
|
@ -35,6 +51,10 @@ in mkDerivation {
|
||||||
"-DSDK_XPLANE=${xplaneSdk}"
|
"-DSDK_XPLANE=${xplaneSdk}"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapQtApp $out/bin/opentrack
|
||||||
|
'';
|
||||||
|
|
||||||
desktopItems = [
|
desktopItems = [
|
||||||
(makeDesktopItem rec {
|
(makeDesktopItem rec {
|
||||||
name = "opentrack";
|
name = "opentrack";
|
||||||
|
@ -52,6 +72,7 @@ in mkDerivation {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/opentrack/opentrack";
|
homepage = "https://github.com/opentrack/opentrack";
|
||||||
description = "Head tracking software for MS Windows, Linux, and Apple OSX";
|
description = "Head tracking software for MS Windows, Linux, and Apple OSX";
|
||||||
|
changelog = "https://github.com/opentrack/opentrack/releases/tag/${version}";
|
||||||
license = licenses.isc;
|
license = licenses.isc;
|
||||||
maintainers = with maintainers; [zaninime];
|
maintainers = with maintainers; [zaninime];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue