lol
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 unzip,
6 cmake,
7 libGLU,
8 libGL,
9}:
10
11stdenv.mkDerivation rec {
12 pname = "vrpn";
13 version = "07.36";
14
15 src = fetchFromGitHub {
16 owner = "vrpn";
17 repo = "vrpn";
18 rev = "version_${version}";
19 hash = "sha256-eXmj9Wqm+ytsnypC+MrOLnJg9zlri5y0puavamZqFmY=";
20 };
21
22 nativeBuildInputs = [
23 cmake
24 unzip
25 ];
26
27 buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
28 libGLU
29 libGL
30 ];
31
32 meta = with lib; {
33 description = "Virtual Reality Peripheral Network";
34 longDescription = ''
35 The Virtual-Reality Peripheral Network (VRPN) is a set of classes
36 within a library and a set of servers that are designed to implement
37 a network-transparent interface between application programs and the
38 set of physical devices (tracker, etc.) used in a virtual-reality
39 (VR) system.
40 '';
41 homepage = "https://github.com/vrpn/vrpn";
42 license = licenses.boost; # see https://github.com/vrpn/vrpn/wiki/License
43 platforms = platforms.darwin ++ platforms.linux;
44 maintainers = with maintainers; [ ludo ];
45 };
46}