2019-11-22 13:43:12 +01:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub,
|
|
|
|
bullet, libopus, vlc, openal, assimp, libvorbis,
|
2019-12-29 19:11:10 +01:00
|
|
|
qtbase, qt5, mesa_glu, mesa, tree, git, git-lfs, zlib}:
|
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
|
2019-12-29 19:11:10 +01:00
|
|
|
mesa
|
2019-11-19 19:22:15 +01:00
|
|
|
vlc
|
|
|
|
qt5.qmake
|
|
|
|
qt5.qtwebsockets
|
|
|
|
qt5.qtwebengine
|
|
|
|
qt5.qtscript
|
|
|
|
bullet
|
|
|
|
libopus
|
2019-11-22 13:43:12 +01:00
|
|
|
libvorbis
|
2019-11-20 15:29:38 +01:00
|
|
|
openal
|
|
|
|
assimp
|
2019-11-22 13:43:12 +01:00
|
|
|
zlib
|
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-22 13:43:12 +01:00
|
|
|
cp -r -v assets $out/bin/assets
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|