7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
14 lines
395 B
Nix
14 lines
395 B
Nix
{ lib, stdenv }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "add-driver-runpath";
|
|
|
|
# Named "opengl-driver" for legacy reasons, but it is the path to
|
|
# hardware drivers installed by NixOS
|
|
driverLink = "/run/opengl-driver" + lib.optionalString stdenv.hostPlatform.isi686 "-32";
|
|
|
|
buildCommand = ''
|
|
mkdir -p $out/nix-support
|
|
substituteAll ${./setup-hook.sh} $out/nix-support/setup-hook
|
|
'';
|
|
}
|