Skip to content

Instantly share code, notes, and snippets.

@infinisil
Created July 26, 2017 23:55
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