Unverified Commit fd828f43 authored by Michael Daniels's avatar Michael Daniels Committed by GitHub
Browse files

opentrack: 2026.1.0-unstable-2026-01-03 -> 2026.1.0-unstable-2026-01-24 (#487671)

parents 1b9a28a3 2c2cb1f4
Loading
Loading
Loading
Loading
+14 −4
Original line number Diff line number Diff line
@@ -18,17 +18,18 @@
  wineWow64Packages,
  onnxruntime,
  nix-update-script,
  v4l-utils,
  withWine ? stdenv.targetPlatform.isx86_64,
}:
stdenv.mkDerivation (finalAttrs: {
  pname = "opentrack";
  version = "2026.1.0-unstable-2026-01-03";
  version = "2026.1.0-unstable-2026-01-24";

  src = fetchFromGitHub {
    owner = "opentrack";
    repo = "opentrack";
    rev = "0779d3ce9da19d46919e909d0a1a252d67122db9";
    hash = "sha256-n7XCNNXgfwU4q27Q7ss9tgc2Z/tmzcRxUP4chwpPN38=";
    rev = "2d3ab7a61d2514ce51c9656908d33465a788763e";
    hash = "sha256-+Xb3zlybQrrc1AiTdYXxDhuFNN7g7u7ryM7da2EJpaY=";
  };

  aruco = callPackage ./aruco.nix { };
@@ -40,6 +41,13 @@ stdenv.mkDerivation (finalAttrs: {
    meta.license = lib.licenses.free;
  };

  fusion = fetchFromGitHub {
    owner = "xioTechnologies";
    repo = "Fusion";
    tag = "v1.2.11";
    hash = "sha256-9bqqP+6kfdRWIRnnP+R0lXSQs6OmZoNlbCjqiJeJjpk=";
  };

  patches = [
    # calls `app.setDesktopFileName("opentrack");` - distros that don't wrap the binary apparently don't need this.
    ./desktop-filename.patch
@@ -69,6 +77,7 @@ stdenv.mkDerivation (finalAttrs: {
  ];

  cmakeFlags = [
    (lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_AHRSFUSION" "${finalAttrs.fusion}")
    (lib.cmakeFeature "OPENTRACK_COMMIT" "opentrack-${finalAttrs.version}")
    (lib.cmakeBool "SDK_WINE" withWine)
    (lib.cmakeFeature "SDK_ARUCO_LIBPATH" "${finalAttrs.aruco}/lib/libaruco.a")
@@ -82,7 +91,8 @@ stdenv.mkDerivation (finalAttrs: {
  # manually wrap just the main binary
  dontWrapQtApps = true;
  preFixup = ''
    wrapQtApp $out/bin/opentrack
    wrapQtApp $out/bin/opentrack \
      --prefix PATH : ${lib.makeBinPath [ v4l-utils ]}
  '';

  desktopItems = [