Restore the shellcheck phase and fix it

This commit is contained in:
Guillaume Bouchard 2020-03-03 17:43:30 +01:00 committed by Guillaume Bouchard
parent ea7c1d70fc
commit f3b50205ef

View File

@ -28,6 +28,10 @@ let
executable = true; executable = true;
destination = "/bin/${name}"; destination = "/bin/${name}";
checkPhase = ''
${nixpkgs.shellcheck}/bin/shellcheck "$out/bin/${name}"
'';
}; };
in in
@ -82,7 +86,7 @@ rec {
name = "nixVulkanIntel"; name = "nixVulkanIntel";
text = '' text = ''
#!/usr/bin/env bash #!/usr/bin/env bash
if [ ! -z "$LD_LIBRARY_PATH" ]; then if [ -n "$LD_LIBRARY_PATH" ]; then
echo "Warning, nixVulkanIntel overwriting existing LD_LIBRARY_PATH" 1>&2 echo "Warning, nixVulkanIntel overwriting existing LD_LIBRARY_PATH" 1>&2
fi fi
export LD_LIBRARY_PATH=${lib.makeLibraryPath [ export LD_LIBRARY_PATH=${lib.makeLibraryPath [