mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
vrpn: 2016-08-27 -> 07.35, refactor
This commit is contained in:
parent
cdbeb9666c
commit
03d7223d8e
|
@ -1,22 +1,38 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, unzip, cmake, libGLU, libGL }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, unzip
|
||||||
|
, cmake
|
||||||
|
, darwin
|
||||||
|
, libGLU
|
||||||
|
, libGL
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "${pname}-${date}";
|
pname = "vrpn";
|
||||||
pname = "vrpn";
|
version = "07.35";
|
||||||
date = "2016-08-27";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "vrpn";
|
owner = "vrpn";
|
||||||
repo = "vrpn";
|
repo = "vrpn";
|
||||||
rev = "9fa0ab3676a43527301c9efd3637f80220eb9462";
|
rev = "version_${version}";
|
||||||
sha256 = "032q295d68w34rk5q8nfqdd29s55n00bfik84y7xzkjrpspaprlh";
|
hash = "sha256-vvlwhm5XHWD4Nh1hwY427pe36RQaqTDJiEtkCxHeCig=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake unzip ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [ libGLU libGL ];
|
cmake
|
||||||
|
unzip
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = false; # FIXME: test failure
|
buildInputs = lib.optionals stdenv.isDarwin [
|
||||||
checkTarget = "test";
|
darwin.apple_sdk.frameworks.CoreFoundation
|
||||||
|
darwin.apple_sdk.frameworks.GLUT
|
||||||
|
darwin.apple_sdk.frameworks.IOKit
|
||||||
|
darwin.apple_sdk.frameworks.OpenGL
|
||||||
|
] ++ lib.optionals stdenv.isLinux [
|
||||||
|
libGLU
|
||||||
|
libGL
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Virtual Reality Peripheral Network";
|
description = "Virtual Reality Peripheral Network";
|
||||||
|
@ -27,9 +43,9 @@ stdenv.mkDerivation rec {
|
||||||
set of physical devices (tracker, etc.) used in a virtual-reality
|
set of physical devices (tracker, etc.) used in a virtual-reality
|
||||||
(VR) system.
|
(VR) system.
|
||||||
'';
|
'';
|
||||||
homepage = "https://github.com/vrpn/vrpn";
|
homepage = "https://github.com/vrpn/vrpn";
|
||||||
license = licenses.boost; # see https://github.com/vrpn/vrpn/wiki/License
|
license = licenses.boost; # see https://github.com/vrpn/vrpn/wiki/License
|
||||||
platforms = platforms.linux;
|
platforms = platforms.darwin ++ platforms.linux;
|
||||||
maintainers = with maintainers; [ ludo ];
|
maintainers = with maintainers; [ ludo ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue