openspace: mark as broken

Fails to build with GL error
This commit is contained in:
Jonathan Ringer 2019-07-13 23:44:14 -07:00
parent ca6afcb9da
commit e6223c022b

View File

@ -5,7 +5,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.11.1"; version = "0.11.1";
name = "openspace-${version}"; name = "openspace-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "OpenSpace"; owner = "OpenSpace";
repo = "OpenSpace"; repo = "OpenSpace";
@ -13,37 +13,37 @@ stdenv.mkDerivation rec {
sha256 = "0msqixf30r0d41xmfmzkdfw6w9jkx2ph5clq8xiwrg1jc3z9q7nv"; sha256 = "0msqixf30r0d41xmfmzkdfw6w9jkx2ph5clq8xiwrg1jc3z9q7nv";
fetchSubmodules = true; fetchSubmodules = true;
}; };
buildInputs = [ buildInputs = [
makeWrapper cmake makeWrapper cmake
curl boost gdal glew soil curl boost gdal glew soil
libX11 libXi libXxf86vm libXcursor libXrandr libXinerama libX11 libXi libXxf86vm libXcursor libXrandr libXinerama
]; ];
glmPlatformH = fetchurl { glmPlatformH = fetchurl {
url = "https://raw.githubusercontent.com/g-truc/glm/dd48b56e44d699a022c69155c8672caacafd9e8a/glm/simd/platform.h"; url = "https://raw.githubusercontent.com/g-truc/glm/dd48b56e44d699a022c69155c8672caacafd9e8a/glm/simd/platform.h";
sha256 = "0y91hlbgn5va7ijg5mz823gqkq9hqxl00lwmdwnf8q2g086rplzw"; sha256 = "0y91hlbgn5va7ijg5mz823gqkq9hqxl00lwmdwnf8q2g086rplzw";
}; };
# See <https://github.com/g-truc/glm/issues/726> # See <https://github.com/g-truc/glm/issues/726>
prePatch = '' prePatch = ''
cp ${glmPlatformH} ext/sgct/include/glm/simd/platform.h cp ${glmPlatformH} ext/sgct/include/glm/simd/platform.h
cp ${glmPlatformH} ext/ghoul/ext/glm/glm/simd/platform.h cp ${glmPlatformH} ext/ghoul/ext/glm/glm/simd/platform.h
''; '';
patches = [ patches = [
# See <https://github.com/opensgct/sgct/issues/13> # See <https://github.com/opensgct/sgct/issues/13>
./vrpn.patch ./vrpn.patch
./constexpr.patch ./constexpr.patch
./config.patch ./config.patch
# WARNING: This patch disables some slow torrents in a very dirty way. # WARNING: This patch disables some slow torrents in a very dirty way.
./assets.patch ./assets.patch
]; ];
bundle = "$out/usr/share/openspace"; bundle = "$out/usr/share/openspace";
preConfigure = '' preConfigure = ''
cmakeFlagsArray=( cmakeFlagsArray=(
$cmakeFlagsArray $cmakeFlagsArray
@ -51,28 +51,28 @@ stdenv.mkDerivation rec {
"-DCMAKE_INSTALL_PREFIX=${bundle}" "-DCMAKE_INSTALL_PREFIX=${bundle}"
) )
''; '';
preInstall = '' preInstall = ''
mkdir -p $out/bin mkdir -p $out/bin
mkdir -p ${bundle} mkdir -p ${bundle}
''; '';
postInstall = '' postInstall = ''
cp ext/spice/libSpice.so ${bundle}/lib cp ext/spice/libSpice.so ${bundle}/lib
cp ext/ghoul/ext/lua/libLua.so ${bundle}/lib cp ext/ghoul/ext/lua/libLua.so ${bundle}/lib
''; '';
postFixup = '' postFixup = ''
for bin in ${bundle}/bin/* for bin in ${bundle}/bin/*
do do
rpath=$(patchelf --print-rpath $bin) rpath=$(patchelf --print-rpath $bin)
patchelf --set-rpath $rpath:${bundle}/lib $bin patchelf --set-rpath $rpath:${bundle}/lib $bin
name=$(basename $bin) name=$(basename $bin)
makeWrapper $bin $out/bin/$name --run "cd ${bundle}" makeWrapper $bin $out/bin/$name --run "cd ${bundle}"
done done
''; '';
meta = { meta = {
description = "Open-source astrovisualization project"; description = "Open-source astrovisualization project";
longDescription = '' longDescription = ''
@ -85,5 +85,6 @@ stdenv.mkDerivation rec {
homepage = https://www.openspaceproject.com/; homepage = https://www.openspaceproject.com/;
license = stdenv.lib.licenses.mit; license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
broken = true; # fails to build
}; };
} }