diff options
Diffstat (limited to 'users/edef/depot-scan.nix')
-rw-r--r-- | users/edef/depot-scan.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/users/edef/depot-scan.nix b/users/edef/depot-scan.nix index faa91855e8f9..ce0f8d97990b 100644 --- a/users/edef/depot-scan.nix +++ b/users/edef/depot-scan.nix @@ -3,10 +3,10 @@ pkgs.writeShellScriptBin "depot-scan" '' set -euo pipefail - path=$(git rev-parse --show-prefix) + path="''${1:-$(git rev-parse --show-prefix)}" path="''${path%%/}" attr="''${path//\//.}" root="$(git rev-parse --show-toplevel)" echo "scanning //$path" >&2 - nix-instantiate "$root" -A "$attr" -vv 2> >(${pkgs.perl}/bin/perl sources.pl) >&2 + nix-instantiate "$root" -A "$attr" -vv 2> >(${pkgs.perl}/bin/perl ${./depot-scan.pl}) >&2 '' |