mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
nixpkgs-lint: ignore user's overlays
Otherwise, it can get tripped up importing things like the NUR packages. Since this is for linting Nixpkgs itself, ignoring overlays seems the way to go.
This commit is contained in:
parent
3c4b8bf8fd
commit
f22881290a
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue