write_stylus: fix loading libGL.so with libglvnd (#50395)

./Write: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
This commit is contained in:
Oyren 2018-11-15 14:55:05 +01:00 committed by Jörg Thalheim
parent 101133deae
commit 04b234e995

View File

@ -1,4 +1,4 @@
{ stdenv, lib, qtbase, qtsvg, fetchurl, makeDesktopItem }:
{ stdenv, lib, qtbase, qtsvg, libglvnd, fetchurl, makeDesktopItem }:
stdenv.mkDerivation rec {
name = "write_stylus-${version}";
version = "209";
@ -43,9 +43,10 @@ stdenv.mkDerivation rec {
'';
preFixup = let
libPath = lib.makeLibraryPath [
qtbase # libQt5PrintSupport.so.5
qtsvg # libQt5Svg.so.5
qtbase # libQt5PrintSupport.so.5
qtsvg # libQt5Svg.so.5
stdenv.cc.cc.lib # libstdc++.so.6
libglvnd # ibGL.so.1
];
in ''
patchelf \