-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlibsurvive.nix
54 lines (47 loc) · 1.16 KB
/
libsurvive.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{ lib, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, freeglut
, liblapack
, libusb1
, openblas
, zlib
}:
let
keepDebugInfo = stdenv: stdenv //
{ mkDerivation = args: stdenv.mkDerivation (args // {
dontStrip = true;
NIX_CFLAGS_COMPILE = toString (args.NIX_CFLAGS_COMPILE or "") + " -g -ggdb -Og";
});
};
stdenvDebug = keepDebugInfo stdenv;
openblas-debug = openblas.override { stdenv = stdenvDebug; };
in
stdenvDebug.mkDerivation rec {
pname = "libsurvive";
version = "0.3";
src = fetchFromGitHub {
owner = "cntools";
repo = pname;
# rev = "v${version}";
rev = "e5dee4d548af5cfcefd1ce87755f3a3a0860db57";
sha256 = "1siymr44vsrkcq8qrnbxxrd1nq2v4ymcsvhzym9g3a9kv542h76d";
# sha256 = "e5dee4d548af5cfcefd1ce87755f3a3a0860db57";
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [
freeglut
liblapack
libusb1
openblas-debug
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;
};
}