NUR/pkgs/JanusVR/client/default.nix

65 lines
1.2 KiB
Nix
Raw Normal View History

2019-11-22 07:48:32 +01:00
{ mkDerivation, lib, fetchFromGitHub, bullet, libopus, qtbase, qt5, mesa_glu, vlc, openal, assimp, pkgconfig, tree, git, git-lfs, libxcb }:
2019-11-19 19:22:15 +01:00
2019-11-22 07:48:32 +01:00
mkDerivation {
2019-11-19 19:22:15 +01:00
pname = "janus";
version = "66.4";
src = fetchFromGitHub {
owner = "janusvr";
repo = "janus";
rev = "ed2c4686e9f255f3381d9876886ed73040e85897";
sha256 = "0x0p1i5mzv5b5krj9zick7yb2iiylvj0p3syq6d7yf23yyxnaxxb";
};
buildInputs = [
2019-11-20 15:29:38 +01:00
tree
2019-11-19 19:22:15 +01:00
mesa_glu
vlc
qt5.qmake
qt5.qtwebsockets
qt5.qtwebengine
qt5.qtscript
bullet
libopus
2019-11-20 15:29:38 +01:00
openal
assimp
2019-11-22 07:48:32 +01:00
# libxcb
2019-11-19 19:22:15 +01:00
];
2019-11-20 15:29:38 +01:00
nativeBuildInputs = [
2019-11-22 07:48:32 +01:00
# pkgconfig
git
git-lfs
2019-11-20 15:29:38 +01:00
];
preConfigure = ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${bullet}/include/bullet"
2019-11-22 07:48:32 +01:00
export BUILD_DIR="dist/linux/"
#qmake FireBox.pro -spec linux-g++ CONFIG+=release CONFIG+=force_debug_info
touch riftid.txt
'';
# buildPhase = ''
# make
# '';
postBuild = ''
find . -name "*openvr*"
2019-11-20 15:29:38 +01:00
'';
2019-11-22 07:48:32 +01:00
installPhase = ''
mkdir -p $out/bin $out/lib
cp -v janusvr $out/bin
cp -v dependencies/linux/libopenvr_api.so $out/lib
2019-11-20 15:29:38 +01:00
'';
2019-11-19 19:22:15 +01:00
2019-11-22 07:48:32 +01:00
meta = with lib; {
2019-11-19 19:22:15 +01:00
description = "VR Social app like the web";
2019-11-20 15:29:38 +01:00
broken = false;
2019-11-19 19:22:15 +01:00
};
}