nixpkgs/pkgs/tools/X11/virtualgl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
541 B
Nix
Raw Normal View History

2016-03-03 12:55:55 +00:00
{ stdenv, lib
, virtualglLib
, virtualglLib_i686 ? null
}:
2016-03-03 12:55:55 +00:00
stdenv.mkDerivation {
pname = "virtualgl";
version = lib.getVersion virtualglLib;
paths = [ virtualglLib ];
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
done
2016-03-03 12:55:55 +00:00
'' + lib.optionalString (virtualglLib_i686 != null) ''
ln -sf ${virtualglLib_i686}/bin/.vglrun.vars32 $out/bin
'';
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;
};
}