@@ -0,0 +1,40 @@
1+{ stdenv
2+, fetchFromGitHub
3+, cmake
4+, pkg-config
5+, freeglut
6+, liblapack
7+, libusb1
8+, openblas
9+, zlib
10+}:
11+
12+stdenv.mkDerivation rec {
13+ pname = "libsurvive";
14+ version = "0.3";
15+
16+ src = fetchFromGitHub {
17+ owner = "cntools";
18+ repo = pname;
19+ rev = "v${version}";
20+ sha256 = "0m21fnq8pfw2pcvqfgjws531zmalda423q9i65v4qzm8sdb54hl4";
21+ };
22+
23+ nativeBuildInputs = [ cmake pkg-config ];
24+
25+ buildInputs = [
26+ freeglut
27+ liblapack
28+ libusb1
29+ openblas
30+ zlib
31+ ];
32+
33+ meta = with stdenv.lib; {
34+ description = "Open Source Lighthouse Tracking System";
35+ homepage = "https://github.com/cntools/libsurvive";
36+ license = licenses.mit;
37+ maintainers = with maintainers; [ prusnak ];
38+ platforms = platforms.linux;
39+ };
40+}