www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 08873181afbf5e08810f670c15e7ee4cad6ee3d8
parent d3d9f07d022f8e818e10321b382d283f8faa8b05
Author: Joe Hermaszewski <git@monoid.al>
Date:   Sat,  7 Apr 2018 15:40:43 +0800

Add nixVulkanIntel wrapper

Diffstat:
Mdefault.nix | 23+++++++++++++++++++++++
1 file changed, 23 insertions(+), 0 deletions(-)

diff --git a/default.nix b/default.nix @@ -74,4 +74,27 @@ rec { chmod u+x $out/bin/nixGLIntel ''; + + nixVulkanIntel = writeTextFile rec { + name = "nixVulkanIntel-${version}"; + executable = true; + destination = "/bin/nixVulkanIntel"; + checkPhase = ''${shellcheck}/bin/shellcheck "$out/bin/nixVulkanIntel"''; + text = '' + #!/usr/bin/env bash + if [ ! -z "$LD_LIBRARY_PATH" ]; then + echo "Warning, ${name} overwriting existing LD_LIBRARY_PATH" 1>&2 + fi + export LD_LIBRARY_PATH=${lib.makeLibraryPath [ + zlib + libdrm + xorg.libX11 + xorg.libxcb + xorg.libxshmfence + wayland + gcc.cc + ]} + exec "$@" + ''; + }; }