2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2021-01-09 10:05:03 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, freeglut
|
2022-01-13 20:06:32 +00:00
|
|
|
, lapack
|
2021-01-09 10:05:03 +00:00
|
|
|
, libusb1
|
2022-01-13 20:06:32 +00:00
|
|
|
, blas
|
2021-01-09 10:05:03 +00:00
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libsurvive";
|
|
|
|
version = "0.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cntools";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0m21fnq8pfw2pcvqfgjws531zmalda423q9i65v4qzm8sdb54hl4";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
freeglut
|
2022-01-13 20:06:32 +00:00
|
|
|
lapack
|
2021-01-09 10:05:03 +00:00
|
|
|
libusb1
|
2022-01-13 20:06:32 +00:00
|
|
|
blas
|
2021-01-09 10:05:03 +00:00
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-09 10:05:03 +00:00
|
|
|
description = "Open Source Lighthouse Tracking System";
|
|
|
|
homepage = "https://github.com/cntools/libsurvive";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ expipiplus1 prusnak ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|