2016-03-03 12:55:55 +00:00
|
|
|
{ stdenv, lib
|
2015-12-04 21:33:02 +00:00
|
|
|
, virtualglLib
|
|
|
|
, virtualglLib_i686 ? null
|
|
|
|
}:
|
2010-07-10 09:45:44 +01:00
|
|
|
|
2016-03-03 12:55:55 +00:00
|
|
|
stdenv.mkDerivation {
|
2015-12-04 21:33:02 +00:00
|
|
|
name = "virtualgl-${lib.getVersion virtualglLib}";
|
2010-07-10 09:45:44 +01:00
|
|
|
|
2015-12-04 21:33:02 +00:00
|
|
|
paths = [ virtualglLib ];
|
2010-07-10 09:45:44 +01:00
|
|
|
|
2016-03-03 12:55:55 +00:00
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
for i in ${virtualglLib}/bin/* ${virtualglLib}/bin/.vglrun*; do
|
|
|
|
ln -s "$i" $out/bin
|
2015-12-04 21:33:02 +00:00
|
|
|
done
|
2016-03-03 12:55:55 +00:00
|
|
|
'' + lib.optionalString (virtualglLib_i686 != null) ''
|
|
|
|
ln -sf ${virtualglLib_i686}/bin/.vglrun.vars32 $out/bin
|
2010-07-13 20:12:42 +01:00
|
|
|
'';
|
2016-08-02 17:06:29 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2018-09-12 20:54:53 +01:00
|
|
|
inherit (virtualglLib.meta) license;
|
2016-08-02 17:06:29 +01:00
|
|
|
};
|
2010-07-10 09:45:44 +01:00
|
|
|
}
|