mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
13 lines
274 B
Nix
13 lines
274 B
Nix
|
{ lib, stdenv }:
|
||
|
|
||
|
stdenv.mkDerivation {
|
||
|
name = "add-opengl-runpath";
|
||
|
|
||
|
driverLink = "/run/opengl-driver" + lib.optionalString stdenv.isi686 "-32";
|
||
|
|
||
|
buildCommand = ''
|
||
|
mkdir -p $out/nix-support
|
||
|
substituteAll ${./setup-hook.sh} $out/nix-support/setup-hook
|
||
|
'';
|
||
|
}
|