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 08:45:44 +00:00
|
|
|
|
2016-03-03 12:55:55 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-11-29 18:24:13 +00:00
|
|
|
pname = "virtualgl";
|
|
|
|
version = lib.getVersion virtualglLib;
|
2010-07-10 08:45:44 +00:00
|
|
|
|
2015-12-04 21:33:02 +00:00
|
|
|
paths = [ virtualglLib ];
|
2010-07-10 08:45:44 +00: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 19:12:42 +00:00
|
|
|
'';
|
2016-08-02 16:06:29 +00:00
|
|
|
|
|
|
|
meta = {
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2018-09-12 19:54:53 +00:00
|
|
|
inherit (virtualglLib.meta) license;
|
2016-08-02 16:06:29 +00:00
|
|
|
};
|
2010-07-10 08:45:44 +00:00
|
|
|
}
|