mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 03:14:03 +00:00
Merge pull request #187286 from ck3d/add-aitrack
aitrack: init at 0.6.5
This commit is contained in:
commit
eaa9a41171
51
pkgs/applications/misc/aitrack/default.nix
Normal file
51
pkgs/applications/misc/aitrack/default.nix
Normal file
@ -0,0 +1,51 @@
|
||||
{ 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";
|
||||
maintainers = with maintainers; [ ck3d ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
@ -37124,4 +37124,6 @@ with pkgs;
|
||||
swift-corelibs-libdispatch = callPackage ../development/libraries/swift-corelibs-libdispatch { };
|
||||
|
||||
swaysettings = callPackage ../applications/misc/swaysettings { };
|
||||
|
||||
aitrack = libsForQt5.callPackage ../applications/misc/aitrack { };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user