about summary refs log tree commit diff
path: root/users/edef/depot-scan.nix
diff options
context:
space:
mode:
authorKane York <kanepyork@gmail.com>2020-08-05T00·57-0700
committerkanepyork <rikingcoding@gmail.com>2020-08-05T02·02+0000
commit88a6bea6e802ce0d8190418b7b076ee12fdf1f47 (patch)
treeda4e97ae8827047521f808522e16c650bc320afc /users/edef/depot-scan.nix
parent84c401683cb8dc8e9040298d0a938b26af10ada8 (diff)
fix(users/edef/depot-scan): properly depend on pl script r/1589
Change-Id: I83c75ab75dae9c904e127ad6160c7641d4523e40
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1647
Reviewed-by: edef <edef@edef.eu>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/edef/depot-scan.nix')
-rw-r--r--users/edef/depot-scan.nix4
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
 ''