504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
14 lines
382 B
Nix
14 lines
382 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.isi686 "-32";
|
|
|
|
buildCommand = ''
|
|
mkdir -p $out/nix-support
|
|
substituteAll ${./setup-hook.sh} $out/nix-support/setup-hook
|
|
'';
|
|
}
|