Skip to content

Instantly share code, notes, and snippets.

@Synthetica9
Created January 16, 2019 15:22
Show Gist options
  • Select an option

  • Save Synthetica9/4c35ecda7b592d01e68fa9b224f04bc3 to your computer and use it in GitHub Desktop.

Select an option

Save Synthetica9/4c35ecda7b592d01e68fa9b224f04bc3 to your computer and use it in GitHub Desktop.
# Doesn't work:
$ cat examples/diyInherit.nix | ./result/bin/nix-linter /dev/stdin
Failure when parsing:
/dev/stdin:1:1:
|
1 | <empty line>
| ^
unexpected end of input
expecting '{', assert, if, let block, letter, or with
# Works:
./result/bin/nix-linter /dev/stdin < examples/diyInherit.nix
Use `inherit x` at /dev/stdin:1:3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment