depot/third_party/nixpkgs/pkgs/tools/X11/virtualgl/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

25 lines
541 B
Nix

{ stdenv, lib
, virtualglLib
, virtualglLib_i686 ? null
}:
stdenv.mkDerivation {
pname = "virtualgl";
version = lib.getVersion virtualglLib;
paths = [ virtualglLib ];
buildCommand = ''
mkdir -p $out/bin
for i in ${virtualglLib}/bin/* ${virtualglLib}/bin/.vglrun*; do
ln -s "$i" $out/bin
done
'' + lib.optionalString (virtualglLib_i686 != null) ''
ln -sf ${virtualglLib_i686}/bin/.vglrun.vars32 $out/bin
'';
meta = {
platforms = lib.platforms.linux;
inherit (virtualglLib.meta) license;
};
}