Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 cmake,
3 fetchFromGitHub,
4 fetchpatch,
5 lib,
6 stdenv,
7}:
8
9stdenv.mkDerivation {
10 pname = "qualisys-cpp-sdk";
11 version = "2024.2";
12
13 src = fetchFromGitHub {
14 owner = "qualisys";
15 repo = "qualisys_cpp_sdk";
16 tag = "rt_protocol_1.25";
17 hash = "sha256-BeG6LF1a8m9BSoILsD9EppywXlCSheKGm0fBoLR1cak=";
18 };
19
20 patches = [
21 # Fix include dir in CMake export
22 (fetchpatch {
23 url = "https://github.com/qualisys/qualisys_cpp_sdk/pull/32/commits/db5e22662b7f417b317571a7488b6dcbb82b7538.patch";
24 hash = "sha256-q7sNT/kQ9xlRPYKfmhiKg+UaYUsZJ4J2xMyQQNSTgxQ=";
25 })
26 # don't concatenate CMAKE_INSTALL_PREFIX and absolute CMAKE_INSTALL_INCLUDEDIR
27 (fetchpatch {
28 url = "https://github.com/nim65s/qualisys_cpp_sdk/commit/1ba8cdb9a8e3583b68d93a553a6f59ea7ee24876.patch";
29 hash = "sha256-5CWBvvnlXlh3UkU3S+LVG2rWC8VZ7+EVo+YFKHk6KuY=";
30 })
31 ];
32
33 nativeBuildInputs = [ cmake ];
34
35 meta = {
36 description = "C++ sdk for talking to Qualisys Track Manager software";
37 homepage = "https://github.com/qualisys/qualisys_cpp_sdk";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ nim65s ];
40 platforms = lib.platforms.unix;
41 };
42}