about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libsurvive/default.nix
blob: 02c4ddffd78ad913f0497a5973d5eb665f8a2283 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, freeglut
, lapack
, libusb1
, blas
, zlib
, eigen
}:

stdenv.mkDerivation rec {
  pname = "libsurvive";
  version = "1.01";

  src = fetchFromGitHub {
    owner = "cntools";
    repo = pname;
    rev = "v${version}";
    # Fixes 'Unknown CMake command "cnkalman_generate_code"'
    fetchSubmodules = true;
    sha256 = "sha256-NcxdTKra+YkLt/iu9+1QCeQZLV3/qlhma2Ns/+ZYVsk=";
  };

  nativeBuildInputs = [ cmake pkg-config ];

  buildInputs = [
    freeglut
    lapack
    libusb1
    blas
    zlib
    eigen
  ];

  meta = with lib; {
    description = "Open Source Lighthouse Tracking System";
    homepage = "https://github.com/cntools/libsurvive";
    license = licenses.mit;
    maintainers = with maintainers; [ expipiplus1 prusnak ];
    platforms = platforms.linux;
  };
}