diff --git a/users/edef/depot-scan.nix b/users/edef/depot-scan.nix index faa91855e..ce0f8d979 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 '' diff --git a/users/edef/sources.pl b/users/edef/depot-scan.pl similarity index 100% rename from users/edef/sources.pl rename to users/edef/depot-scan.pl