mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
26 lines
541 B
Nix
26 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;
|
|
};
|
|
}
|