Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
55 lines
987 B
Nix
55 lines
987 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
qmake,
|
|
wrapQtAppsHook,
|
|
opencv,
|
|
spdlog,
|
|
onnxruntime,
|
|
qtx11extras,
|
|
}:
|
|
stdenv.mkDerivation {
|
|
pname = "aitrack";
|
|
version = "0.6.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mdk97";
|
|
repo = "aitrack-linux";
|
|
rev = "00bcca9b685abf3a19e4eab653198ca2b1895ae4";
|
|
sha256 = "sha256-pPvYVLUPYdjtJKdxqZI+JN7OZ4xw9gZ3baYTnJUSTGE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
qmake
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
opencv
|
|
spdlog
|
|
qtx11extras
|
|
onnxruntime
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace Client/src/Main.cpp \
|
|
--replace "/usr/share/" "$out/share/"
|
|
'';
|
|
|
|
postInstall = ''
|
|
install -Dt $out/bin aitrack
|
|
install -Dt $out/share/aitrack/models models/*
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "6DoF Head tracking software";
|
|
mainProgram = "aitrack";
|
|
maintainers = with maintainers; [ ck3d ];
|
|
platforms = platforms.linux;
|
|
license = licenses.mit;
|
|
};
|
|
}
|