fixed regexp, it did not match the last block

This commit is contained in:
Volth 2017-06-22 19:16:19 +00:00
parent 7fa29f39d1
commit a2605322c6

View File

@ -70,5 +70,5 @@ sub update_nix_block {
}
my $nix = read_file 'default.nix';
$nix =~ s/(= build\w+ rec \{.+?\};\n\n)/update_nix_block($1)/gse;
$nix =~ s/(= build\w+ rec \{.+?\n \};\n)/update_nix_block($1)/gse;
write_file 'default.nix', $nix;