8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
12 lines
274 B
Nix
12 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
|
|
'';
|
|
}
|