2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2021-01-05 16:28:38 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, freeglut
|
2021-11-13 10:55:00 +00:00
|
|
|
, lapack
|
2021-01-05 16:28:38 +00:00
|
|
|
, libusb1
|
2021-11-13 10:55:00 +00:00
|
|
|
, blas
|
2021-01-05 16:28:38 +00:00
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libsurvive";
|
2022-02-12 10:33:47 +00:00
|
|
|
version = "0.4";
|
2021-01-05 16:28:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cntools";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-12 10:33:47 +00:00
|
|
|
sha256 = "sha256-atX7QsCjKGa6OVSApnx3seBvZv/mlpV3jWRB9+v7Emc=";
|
2021-01-05 16:28:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
freeglut
|
2021-11-13 10:55:00 +00:00
|
|
|
lapack
|
2021-01-05 16:28:38 +00:00
|
|
|
libusb1
|
2021-11-13 10:55:00 +00:00
|
|
|
blas
|
2021-01-05 16:28:38 +00:00
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2021-01-05 16:28:38 +00:00
|
|
|
description = "Open Source Lighthouse Tracking System";
|
|
|
|
homepage = "https://github.com/cntools/libsurvive";
|
|
|
|
license = licenses.mit;
|
2020-12-16 15:18:13 +00:00
|
|
|
maintainers = with maintainers; [ expipiplus1 prusnak ];
|
2021-01-05 16:28:38 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|