Files
nixpkgs/pkgs/by-name/vr/vrpn/package.nix
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

47 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
unzip,
cmake,
libGLU,
libGL,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "vrpn";
version = "07.36";
src = fetchFromGitHub {
owner = "vrpn";
repo = "vrpn";
rev = "version_${finalAttrs.version}";
hash = "sha256-eXmj9Wqm+ytsnypC+MrOLnJg9zlri5y0puavamZqFmY=";
};
nativeBuildInputs = [
cmake
unzip
];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
libGLU
libGL
];
meta = {
description = "Virtual Reality Peripheral Network";
longDescription = ''
The Virtual-Reality Peripheral Network (VRPN) is a set of classes
within a library and a set of servers that are designed to implement
a network-transparent interface between application programs and the
set of physical devices (tracker, etc.) used in a virtual-reality
(VR) system.
'';
homepage = "https://github.com/vrpn/vrpn";
license = lib.licenses.boost; # see https://github.com/vrpn/vrpn/wiki/License
platforms = lib.platforms.darwin ++ lib.platforms.linux;
maintainers = with lib.maintainers; [ ludo ];
};
})