Skip to content

Commit

Permalink
tarball: Only check nix files for nixpkgs references
Browse files Browse the repository at this point in the history
Fixes travis build failure.
  • Loading branch information
fpletz committed Jul 19, 2016
1 parent bce5a51 commit 6bcf194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/top-level/make-tarball.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ releaseTools.sourceTarball rec {
echo 'abort "Illegal use of <nixpkgs> in Nixpkgs."' > $TMPDIR/barf.nix
# Make sure that Nixpkgs does not use <nixpkgs>
if grep -r '<nixpkgs\/' pkgs; then
if (find pkgs -type f -name '*.nix' -print | xargs grep '<nixpkgs\/'); then
echo "Nixpkgs is not allowed to use <nixpkgs> to refer to itself."
exit 1
fi
Expand Down

0 comments on commit 6bcf194

Please sign in to comment.