1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/tools/X11/virtualgl/default.nix
2018-09-12 23:12:14 +02:00

25 lines
537 B
Nix

{ stdenv, lib
, virtualglLib
, virtualglLib_i686 ? null
}:
stdenv.mkDerivation {
name = "virtualgl-${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 = stdenv.lib.platforms.linux;
inherit (virtualglLib.meta) license;
};
}