2015-12-04 22:33:02 +01:00
|
|
|
{ lib, buildEnv
|
|
|
|
, virtualglLib
|
|
|
|
, virtualglLib_i686 ? null
|
|
|
|
}:
|
2010-07-10 10:45:44 +02:00
|
|
|
|
2015-12-04 22:33:02 +01:00
|
|
|
buildEnv {
|
|
|
|
name = "virtualgl-${lib.getVersion virtualglLib}";
|
2010-07-10 10:45:44 +02:00
|
|
|
|
2015-12-04 22:33:02 +01:00
|
|
|
paths = [ virtualglLib ];
|
2010-07-10 10:45:44 +02:00
|
|
|
|
2015-12-04 22:33:02 +01:00
|
|
|
postBuild = lib.optionalString (virtualglLib_i686 != null) ''
|
|
|
|
rm $out/fakelib
|
|
|
|
# workaround for #4621
|
|
|
|
rm $out/bin
|
|
|
|
mkdir $out/bin
|
|
|
|
for i in ${virtualglLib}/bin/*; do
|
|
|
|
ln -s $i $out/bin
|
|
|
|
done
|
|
|
|
ln -s ${virtualglLib}/bin/.vglrun.vars64 $out/bin
|
|
|
|
ln -s ${virtualglLib_i686}/bin/.vglrun.vars32 $out/bin
|
2010-07-13 21:12:42 +02:00
|
|
|
'';
|
2010-07-10 10:45:44 +02:00
|
|
|
}
|