Nix file used to validate staging-next
in Nixpkgs
# Use a hard link, or else the `import ./. {}` will evaluate to symlink dest
ln -P $PWD/test-staging.nix /path/to/nixpkgs
cd /path/to/nixpkgs
nix build -f test-staging.nix --keep-going
# evalulate build failures
This is optimized for a "working on nixpkgs, but rarely changing packages to test" workflow. Feel free to change any of the code as you see fit.