Merge pull request #280450 from K900/tarball-fixes
Fix tarball job after Nix 2.19
This commit is contained in:
commit
c9a80739f3
2 changed files with 8 additions and 8 deletions
|
@ -31,13 +31,13 @@ pkgs.runCommand "all-attrs-eval-under-tryEval" {
|
|||
|
||||
nix-store --init
|
||||
|
||||
cp -r ${pkgs-path + "/lib"} lib
|
||||
cp -r ${pkgs-path + "/pkgs"} pkgs
|
||||
cp -r ${pkgs-path + "/default.nix"} default.nix
|
||||
cp -r ${pkgs-path + "/nixos"} nixos
|
||||
cp -r ${pkgs-path + "/maintainers"} maintainers
|
||||
cp -r ${pkgs-path + "/.version"} .version
|
||||
cp -r ${pkgs-path + "/doc"} doc
|
||||
cp -r ${pkgs-path}/lib lib
|
||||
cp -r ${pkgs-path}/pkgs pkgs
|
||||
cp -r ${pkgs-path}/default.nix default.nix
|
||||
cp -r ${pkgs-path}/nixos nixos
|
||||
cp -r ${pkgs-path}/maintainers maintainers
|
||||
cp -r ${pkgs-path}/.version .version
|
||||
cp -r ${pkgs-path}/doc doc
|
||||
echo "Running pkgs/top-level/release-attrpaths-superset.nix"
|
||||
nix-instantiate --eval --strict --json pkgs/top-level/release-attrpaths-superset.nix -A names > /dev/null
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ pkgs.runCommand "nixpkgs-release-checks"
|
|||
echo 'abort "Illegal use of <nixpkgs> in Nixpkgs."' > $TMPDIR/barf.nix
|
||||
|
||||
# Make sure that Nixpkgs does not use <nixpkgs>.
|
||||
badFiles=$(find $src/pkgs -type f -name '*.nix' -print | xargs grep -l '^[^#]*<nixpkgs\/' || true)
|
||||
badFiles=$(find $src/pkgs -type f -name '*.nix' -print | xargs grep -l '^[^#]*<nixpkgs/' || true)
|
||||
if [[ -n $badFiles ]]; then
|
||||
echo "Nixpkgs is not allowed to use <nixpkgs> to refer to itself."
|
||||
echo "The offending files: $badFiles"
|
||||
|
|
Loading…
Reference in a new issue