fix(users/edef/depot-scan): properly depend on pl script

Change-Id: I83c75ab75dae9c904e127ad6160c7641d4523e40
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1647
Reviewed-by: edef <edef@edef.eu>
Tested-by: BuildkiteCI
This commit is contained in:
Kane York 2020-08-04 17:57:01 -07:00 committed by kanepyork
parent 84c401683c
commit 88a6bea6e8
2 changed files with 2 additions and 2 deletions

View file

@ -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
''