Skip to content

Instantly share code, notes, and snippets.

@infinisil
Created July 26, 2017 23:55
Show Gist options
  • Save infinisil/b959a7bf13789c89a8bdcf084f06d40d to your computer and use it in GitHub Desktop.
Save infinisil/b959a7bf13789c89a8bdcf084f06d40d to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
let
script = ''
#!/usr/bin/env bash
echo hi
'';
shellCheck = script:
runCommand "shellcheck" {} ''
${shellcheck}/bin/shellcheck ${writeText "script" script} && touch $out
'';
in
shellCheck script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment