Merge pull request #280450 from K900/tarball-fixes

Fix tarball job after Nix 2.19
This commit is contained in:
K900 2024-01-12 13:54:52 +03:00 committed by GitHub
commit c9a80739f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -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"