chore(edef/users/depot-scan): move to a subdir
Change-Id: If202b466aa0874048e89e0dc270ff14883510131 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1652 Reviewed-by: edef <edef@edef.eu> Tested-by: BuildkiteCI
This commit is contained in:
parent
fcffacf8c9
commit
68ab0a0705
3 changed files with 1 additions and 3 deletions
12
users/edef/depot-scan/default.nix
Normal file
12
users/edef/depot-scan/default.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
pkgs.writeShellScriptBin "depot-scan" ''
|
||||
set -euo pipefail
|
||||
|
||||
path="''${1:-$(git rev-parse --show-prefix)}"
|
||||
path="''${path%%/}"
|
||||
attr="''${path//\//.}"
|
||||
root="$(git rev-parse --show-toplevel)"
|
||||
echo "scanning //$path" >&2
|
||||
nix-instantiate -E "import ${./wrap.nix} $root" -A "$attr" -vv 2> >(${pkgs.perl}/bin/perl ${./depot-scan.pl}) >&2
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue