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