summary refs log tree commit diff
path: root/maintainers/scripts/nixpkgs-lint.pl
diff options
context:
space:
mode:
authorBenjamin Hipple <bhipple@protonmail.com>2020-08-02 10:56:22 -0400
committerBenjamin Hipple <bhipple@protonmail.com>2020-08-02 10:56:22 -0400
commitf22881290a078ff63c4ea66f66de99495ec8cd44 (patch)
tree3ac6557f1a44ecc693a4b032fbe44ab5277a2029 /maintainers/scripts/nixpkgs-lint.pl
parent3c4b8bf8fd9a1bfc3c0692a2338c1cf1e2ff6008 (diff)
downloadnixpkgs-f22881290a078ff63c4ea66f66de99495ec8cd44.tar
nixpkgs-f22881290a078ff63c4ea66f66de99495ec8cd44.tar.gz
nixpkgs-f22881290a078ff63c4ea66f66de99495ec8cd44.tar.bz2
nixpkgs-f22881290a078ff63c4ea66f66de99495ec8cd44.tar.lz
nixpkgs-f22881290a078ff63c4ea66f66de99495ec8cd44.tar.xz
nixpkgs-f22881290a078ff63c4ea66f66de99495ec8cd44.tar.zst
nixpkgs-f22881290a078ff63c4ea66f66de99495ec8cd44.zip
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.
Diffstat (limited to 'maintainers/scripts/nixpkgs-lint.pl')
-rwxr-xr-xmaintainers/scripts/nixpkgs-lint.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/maintainers/scripts/nixpkgs-lint.pl b/maintainers/scripts/nixpkgs-lint.pl
index 638d1b2aaa1..43fb3941361 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";