tvl-depot/tools
Vincent Ambo 5e6685c689 feat(cheddar): Add a build script that injects BAT_SYNTAXES
The BAT_SYNTAXES environment variable is injected during Nix builds
and points to the build result of //third_party/bat_syntaxes, which is
included in the cheddar binary.

During development this is a bit annoying: Opening a Nix shell will
set the right variable, but it will also mess with the Cargo
environment in ways that make it annoying to use (*and* require a
pre-build of all dependencies as required by naersk).

For an easier development flow, this adds a build script that
automatically runs Nix, fetches the path to the syntax set and sets
the environment variable. It is a no-op if the variable is already
set.

This makes for a smoother development experience when working on
cheddar in a depot checkout.

Change-Id: Ib5435518897e3443247edd9f362821c0b9ff756b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3081
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
2021-05-03 20:18:33 +00:00
..
cheddar feat(cheddar): Add a build script that injects BAT_SYNTAXES 2021-05-03 20:18:33 +00:00
depot-scanner chore: Add meta.ci=false to various broken projects 2020-08-26 23:49:32 +00:00
emacs-pkgs feat(tools/emacs-pkgs): Add new builder for internal packages 2021-04-13 22:56:38 +00:00
nsfv-setup refactor(third_party): Consistent use of depot.third_party vs. pkgs 2021-04-10 11:48:55 +00:00
tvlc fix(tvlc): Do not call mkDerivation in default.nix 2020-08-26 23:49:32 +00:00
depot-build.nix fix(tools/depot-build): handle multiple levels of subdirectories 2020-08-05 22:31:47 +00:00
gerrit-cli.nix fix(gerrit-cli): don't output the path to SSH if it's on the path 2020-06-21 23:49:30 +00:00
gerrit-update.nix feat(gerrit-update): Add helper script for updating Gerrit schema 2020-11-29 11:50:58 +00:00
hash-password.nix feat(tools/hash-password): Add a wrapper script for slappasswd 2020-07-01 20:39:07 +00:00
perf-flamegraph.nix fix(tools/perf-flamegraph): Get rid of most 'unknown's 2020-07-16 00:37:29 +00:00