diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2016-07-19 10:48:39 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2016-07-19 10:49:18 +0200 |
commit | 6bcf1944494973029071411bb378d4262ce2a678 (patch) | |
tree | b7a4ac9ed8d6f895af06ba7068199da23848db1c /pkgs/top-level/make-tarball.nix | |
parent | bce5a51a9f33a16bf91e7d72a927c3382f333442 (diff) |
tarball: Only check nix files for nixpkgs references
Fixes travis build failure.
Diffstat (limited to 'pkgs/top-level/make-tarball.nix')
-rw-r--r-- | pkgs/top-level/make-tarball.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/top-level/make-tarball.nix b/pkgs/top-level/make-tarball.nix index da3579a6595b..b664dceaa954 100644 --- a/pkgs/top-level/make-tarball.nix +++ b/pkgs/top-level/make-tarball.nix @@ -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 |