at master 54 lines 987 B view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 pkg-config, 6 qmake, 7 wrapQtAppsHook, 8 opencv, 9 spdlog, 10 onnxruntime, 11 qtx11extras, 12}: 13stdenv.mkDerivation { 14 pname = "aitrack"; 15 version = "0.6.5"; 16 17 src = fetchFromGitHub { 18 owner = "mdk97"; 19 repo = "aitrack-linux"; 20 rev = "00bcca9b685abf3a19e4eab653198ca2b1895ae4"; 21 sha256 = "sha256-pPvYVLUPYdjtJKdxqZI+JN7OZ4xw9gZ3baYTnJUSTGE="; 22 }; 23 24 nativeBuildInputs = [ 25 pkg-config 26 qmake 27 wrapQtAppsHook 28 ]; 29 30 buildInputs = [ 31 opencv 32 spdlog 33 qtx11extras 34 onnxruntime 35 ]; 36 37 postPatch = '' 38 substituteInPlace Client/src/Main.cpp \ 39 --replace "/usr/share/" "$out/share/" 40 ''; 41 42 postInstall = '' 43 install -Dt $out/bin aitrack 44 install -Dt $out/share/aitrack/models models/* 45 ''; 46 47 meta = with lib; { 48 description = "6DoF Head tracking software"; 49 mainProgram = "aitrack"; 50 maintainers = with maintainers; [ ck3d ]; 51 platforms = platforms.linux; 52 license = licenses.mit; 53 }; 54}