mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 01:23:03 +00:00
d1ad0cd177
It's not necessary to use liblapack or openblas specifically.
41 lines
727 B
Nix
41 lines
727 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, freeglut
|
|
, lapack
|
|
, libusb1
|
|
, blas
|
|
, 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
|
|
lapack
|
|
libusb1
|
|
blas
|
|
zlib
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|