This was broken by 6bcf1944494973029071411bb378d4262ce2a678, which caused the result of the check to be ignored (since xargs will return a non-zero exit status if *any* grep doesn't find a match).
···4343 echo 'abort "Illegal use of <nixpkgs> in Nixpkgs."' > $TMPDIR/barf.nix
44444545 # Make sure that Nixpkgs does not use <nixpkgs>
4646- if (find pkgs -type f -name '*.nix' -print | xargs grep '<nixpkgs\/'); then
4646+ badFiles=$(find pkgs -type f -name '*.nix' -print | xargs grep -l '^[^#]*<nixpkgs\/' || true)
4747+ if [[ -n $badFiles ]]; then
4748 echo "Nixpkgs is not allowed to use <nixpkgs> to refer to itself."
4949+ echo "The offending files: $badFiles"
4850 exit 1
4951 fi
5052