diff options
author | Benjamin Hipple <bhipple@protonmail.com> | 2020-11-29 16:08:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-29 16:08:30 -0500 |
commit | ae1b8cce75929d3978692046beed0c879e71bf8a (patch) | |
tree | ac3501bc423b45db50b91c7056922030b3164ca2 | |
parent | 752b6a95db93f03d6901304f760bd452b4b7db41 (diff) | |
parent | f22881290a078ff63c4ea66f66de99495ec8cd44 (diff) |
Merge pull request #94558 from bhipple/fix/lint
nixpkgs-lint: ignore user's overlays
-rwxr-xr-x | maintainers/scripts/nixpkgs-lint.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/maintainers/scripts/nixpkgs-lint.pl b/maintainers/scripts/nixpkgs-lint.pl index 638d1b2aaa167..43fb394136139 100755 --- a/maintainers/scripts/nixpkgs-lint.pl +++ b/maintainers/scripts/nixpkgs-lint.pl @@ -35,7 +35,7 @@ GetOptions("package|p=s" => \$filter, ) or exit 1; # Evaluate Nixpkgs into an XML representation. -my $xml = `nix-env -f '$path' -qa '$filter' --xml --meta --drv-path`; +my $xml = `nix-env -f '$path' --arg overlays '[]' -qa '$filter' --xml --meta --drv-path`; die "$0: evaluation of ‘$path’ failed\n" if $? != 0; my $info = XMLin($xml, KeyAttr => { 'item' => '+attrPath', 'meta' => 'name' }, ForceArray => 1, SuppressEmpty => '' ) or die "cannot parse XML output"; |