From df17404b85fc8b22f8de2f22a392009bff584fdc Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 23 Nov 2020 10:14:12 -0800 Subject: [PATCH] Disable aliases when running locally --- README.md | 2 +- ofborg/src/outpaths.nix | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 30871f92..969d719b 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,7 @@ run the checks themselves like so: ```shell $ curl -o outpaths.nix https://raw.githubusercontent.com/NixOS/ofborg/released/ofborg/src/outpaths.nix -$ GC_INITIAL_HEAP_SIZE=4g nix-env -f ./outpaths.nix -qaP --no-name --out-path --arg checkMeta true > out-paths +$ GC_INITIAL_HEAP_SIZE=4g nix-env -f ./outpaths.nix -qaP --no-name --out-path --arg checkMeta true --arg allowAliases false > out-paths ``` # Hacking diff --git a/ofborg/src/outpaths.nix b/ofborg/src/outpaths.nix index 483fcf2f..d5284d9d 100755 --- a/ofborg/src/outpaths.nix +++ b/ofborg/src/outpaths.nix @@ -2,6 +2,7 @@ # When using as a callable script, passing `--argstr path some/path` overrides $PWD. #!nix-shell -p nix -i "nix-env -qaP --no-name --out-path --arg checkMeta true --argstr path $PWD -f" { checkMeta +, allowAliases ? true , path ? ./. }: let @@ -18,6 +19,7 @@ let nixpkgsArgs = { config = { + allowAliases = allowAliases; allowBroken = true; allowUnfree = true; allowInsecurePredicate = x: true;