From f3b50205ef7f86713cc53efcc467d8546a733bf5 Mon Sep 17 00:00:00 2001 From: Guillaume Bouchard Date: Tue, 3 Mar 2020 17:43:30 +0100 Subject: [PATCH] Restore the shellcheck phase and fix it --- default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 697bfaa..6113094 100644 --- a/default.nix +++ b/default.nix @@ -28,6 +28,10 @@ let executable = true; destination = "/bin/${name}"; + + checkPhase = '' + ${nixpkgs.shellcheck}/bin/shellcheck "$out/bin/${name}" + ''; }; in @@ -82,7 +86,7 @@ rec { name = "nixVulkanIntel"; text = '' #!/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 fi export LD_LIBRARY_PATH=${lib.makeLibraryPath [