From ef6715ee41f7de570e270456a261fd005c67884e Mon Sep 17 00:00:00 2001 From: Antonio Gurgel Date: Wed, 28 Dec 2022 04:05:32 -0800 Subject: [PATCH] nix: durably handle versions before 2.4 (#4398) What I should have done in 4394. Idea: @w0rp --- ale_linters/nix/nix.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ale_linters/nix/nix.vim b/ale_linters/nix/nix.vim index 64c95ab9..5d80f652 100644 --- a/ale_linters/nix/nix.vim +++ b/ale_linters/nix/nix.vim @@ -5,10 +5,10 @@ function! ale_linters#nix#nix#Command(buffer, output, meta) abort let l:version = a:output[0][22:] - if l:version =~# '^\(2.[4-9]\|2.[1-9][0-9]\+\|3\).*' - return 'nix-instantiate --log-format internal-json --parse -' - else + if l:version =~# '^\(1\|2.[0-3]\.\).*' return 'nix-instantiate --parse -' + else + return 'nix-instantiate --log-format internal-json --parse -' endif endfunction