02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
44 lines
834 B
Nix
44 lines
834 B
Nix
{ 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;
|
|
};
|
|
}
|