Files
nix-files/scripts/check-nur

20 lines
581 B
Plaintext
Executable File

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p git
SELF_PATH=$PWD/$0
REPO_ROOT=$(git -C "$(dirname SELF_PATH)" rev-parse --show-toplevel)
nixpkgs=$(nix-store --realize $(nix-instantiate -A nixpkgs-bootstrap.master.src))
cd $REPO_ROOT/integrations/nur
NIX_PATH= NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 nix-env -f . -qa \* --meta --xml \
--allowed-uris https://static.rust-lang.org \
--option restrict-eval true \
--option allow-import-from-derivation true \
--drv-path --show-trace \
-I nixpkgs=$nixpkgs \
-I ../../ \
"$@" \
| tee # tee to prevent interactive mode