addDriverRunpath: fix for structuredAttrs (#470731)
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
{ lib, stdenv }:
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
makeSetupHook,
|
||||
}:
|
||||
makeSetupHook {
|
||||
name = "add-driver-runpath-hook";
|
||||
|
||||
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
|
||||
'';
|
||||
}
|
||||
substitutions = {
|
||||
# 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";
|
||||
};
|
||||
} ./setup-hook.sh
|
||||
|
||||
Reference in New Issue
Block a user