daml/dev-env/bin
Claudio Bley ca1453ee8c
Add pre-commit config and install hook in dev-env (#15637)
* Add `pre-commit` tool to dev-env

* Add pre-commit configuration

Fixes #15522

* Install pre-commit hooks inside the nix shell

* Limit buildifier hook to files to be comitted

The `:buildifier-fix` tool always runs on all Bazel files (by calling `find`),
which is not useful when using pre-commit.

* Install pre-commit hook only when `DADE_NO_PRE_COMMIT` is unset

Since direnv does not execute the shellHook, install in `.envrc` too.
2022-12-07 13:09:50 +00:00
..
aws target s3 bucket with docs refresh script (#1287) 2019-05-21 22:26:07 +00:00
az Drop dependency on hosted nodes (#12901) 2022-02-14 02:49:38 +01:00
base64 open-sourcing daml 2019-04-04 09:33:38 +01:00
bazel open-sourcing daml 2019-04-04 09:33:38 +01:00
bazel-deps open-sourcing daml 2019-04-04 09:33:38 +01:00
bc add daily perf report (#5843) 2020-05-06 13:50:35 +02:00
bq open-sourcing daml 2019-04-04 09:33:38 +01:00
buf Introduce buf checks [KVL-980] (#10411) 2021-07-27 16:23:39 +02:00
cabal2nix open-sourcing daml 2019-04-04 09:33:38 +01:00
cc Dev env fixes (#232) 2019-04-04 16:46:06 -04:00
chromedriver open-sourcing daml 2019-04-04 09:33:38 +01:00
circo open-sourcing daml 2019-04-04 09:33:38 +01:00
convert open-sourcing daml 2019-04-04 09:33:38 +01:00
cram open-sourcing daml 2019-04-04 09:33:38 +01:00
cs Fix binary for Coursier (#13310) 2022-03-16 15:30:07 +01:00
curl Dev env fixes (#232) 2019-04-04 16:46:06 -04:00
da-ghci Further copyright updates (#12249) 2022-01-04 16:32:17 +01:00
da-ghcid Further copyright updates (#12249) 2022-01-04 16:32:17 +01:00
da-hls Change dir to the repo root folder when trying to start the Haskell Language Server (#13867) 2022-05-12 10:21:13 +00:00
da-install-git-hooks open-sourcing daml 2019-04-04 09:33:38 +01:00
da-test-haskell-update-expected open-sourcing daml 2019-04-04 09:33:38 +01:00
da-update-python-srcs open-sourcing daml 2019-04-04 09:33:38 +01:00
da-virtualenv open-sourcing daml 2019-04-04 09:33:38 +01:00
dade open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-assist ci/cron/check: remove dade-assist calls (#9048) 2021-03-08 13:55:19 +00:00
dade-closure-size open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-collect-garbage dade-collect-garbage to delete ~/.bazel-cache as part of the cleanup (#1061) 2019-05-09 16:09:29 -04:00
dade-copyright-headers add lf extension to copyright script (#12259) 2022-01-04 16:49:01 +00:00
dade-env open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-freeze Disable http2 with Nix to work around segfaults (#4427) 2020-02-06 15:15:11 +00:00
dade-help hunt down DAML better (#13195) 2022-03-08 17:04:58 +01:00
dade-init open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-list open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-list-broken-symlinks open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-pipenv-lock open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-preload open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-prepare-for-update open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-release-tool open-sourcing daml 2019-04-04 09:33:38 +01:00
daml-docker-head tag the docker image build locally (#8760) 2021-02-05 11:07:07 +01:00
daml-sdk-head Add --ghc-repo-override flag to override GHC used in daml-sdk-head build (#14238) 2022-06-21 14:26:34 +01:00
data-uri open-sourcing daml 2019-04-04 09:33:38 +01:00
date use coreutils date on macos (#9228) 2021-03-24 13:35:02 +01:00
docker-credential-gcloud Use Distroless for the Java Docker base image. (#6537) 2020-06-30 12:01:43 +00:00
docker-credential-gcr add docker-credential-gcr to dev-env (#1533) 2019-06-05 19:36:31 -04:00
dot open-sourcing daml 2019-04-04 09:33:38 +01:00
fdp open-sourcing daml 2019-04-04 09:33:38 +01:00
find dev-env: Add xargs. (#7769) 2020-10-21 13:00:19 +00:00
flake8 open-sourcing daml 2019-04-04 09:33:38 +01:00
fsc open-sourcing daml 2019-04-04 09:33:38 +01:00
gawk open-sourcing daml 2019-04-04 09:33:38 +01:00
gcloud open-sourcing daml 2019-04-04 09:33:38 +01:00
ghc Switch to GHC 8.10.3 (#8394) 2021-01-25 11:53:53 +00:00
ghci open-sourcing daml 2019-04-04 09:33:38 +01:00
ghcid fix dev-env ghcid (#3218) 2019-10-18 12:27:41 +02:00
gpg dev-env: Remove some unused stuff. (#10087) 2021-06-23 08:13:38 +00:00
grep add grep to dev-env (#4903) 2020-03-10 10:34:01 +01:00
grpcurl fix grpcurl (#7324) 2020-09-04 16:38:49 +02:00
gsutil open-sourcing daml 2019-04-04 09:33:38 +01:00
hlint open-sourcing daml 2019-04-04 09:33:38 +01:00
jar open-sourcing daml 2019-04-04 09:33:38 +01:00
java open-sourcing daml 2019-04-04 09:33:38 +01:00
javac open-sourcing daml 2019-04-04 09:33:38 +01:00
javafmt Add google-java-format to devenv as javafmt (#8687) 2021-01-29 13:59:26 +01:00
jinfo open-sourcing daml 2019-04-04 09:33:38 +01:00
jmap open-sourcing daml 2019-04-04 09:33:38 +01:00
jq correct jq in dev-env (#463) 2019-04-12 16:44:15 -04:00
jstack open-sourcing daml 2019-04-04 09:33:38 +01:00
lsof Get lsof from dev-env (#8064) 2020-11-25 14:43:37 +00:00
m4 open-sourcing daml 2019-04-04 09:33:38 +01:00
make dev-env: Remove some unused stuff. (#10087) 2021-06-23 08:13:38 +00:00
mvn open-sourcing daml 2019-04-04 09:33:38 +01:00
nix-prefetch-git open-sourcing daml 2019-04-04 09:33:38 +01:00
nix-update-src-json Fix nix installation (#6400) 2020-06-18 10:34:08 +02:00
node open-sourcing daml 2019-04-04 09:33:38 +01:00
node2nix open-sourcing daml 2019-04-04 09:33:38 +01:00
npm open-sourcing daml 2019-04-04 09:33:38 +01:00
openssl open-sourcing daml 2019-04-04 09:33:38 +01:00
pandoc open-sourcing daml 2019-04-04 09:33:38 +01:00
patch open-sourcing daml 2019-04-04 09:33:38 +01:00
patchelf open-sourcing daml 2019-04-04 09:33:38 +01:00
pex open-sourcing daml 2019-04-04 09:33:38 +01:00
pip3 open-sourcing daml 2019-04-04 09:33:38 +01:00
pipenv open-sourcing daml 2019-04-04 09:33:38 +01:00
pre-commit Add pre-commit config and install hook in dev-env (#15637) 2022-12-07 13:09:50 +00:00
protoc open-sourcing daml 2019-04-04 09:33:38 +01:00
pypi2nix open-sourcing daml 2019-04-04 09:33:38 +01:00
python open-sourcing daml 2019-04-04 09:33:38 +01:00
python3 open-sourcing daml 2019-04-04 09:33:38 +01:00
README.md remove mentions of da-int servers (#2485) 2019-08-12 10:42:41 +01:00
runpipenv open-sourcing daml 2019-04-04 09:33:38 +01:00
sass open-sourcing daml 2019-04-04 09:33:38 +01:00
sbt add sbt to dev-env (#964) 2019-05-07 09:27:38 -04:00
scala open-sourcing daml 2019-04-04 09:33:38 +01:00
scalac open-sourcing daml 2019-04-04 09:33:38 +01:00
scaladoc open-sourcing daml 2019-04-04 09:33:38 +01:00
scalafmt open-sourcing daml 2019-04-04 09:33:38 +01:00
scalap open-sourcing daml 2019-04-04 09:33:38 +01:00
sed add sed to dev-env (#6129) 2020-05-27 17:11:09 +00:00
semver open-sourcing daml 2019-04-04 09:33:38 +01:00
sha1sum open-sourcing daml 2019-04-04 09:33:38 +01:00
sha256sum Add sha256sum to dev-env (#12328) 2022-01-10 17:45:33 +01:00
shellcheck open-sourcing daml 2019-04-04 09:33:38 +01:00
sphinx-build open-sourcing daml 2019-04-04 09:33:38 +01:00
sphinx-quickstart open-sourcing daml 2019-04-04 09:33:38 +01:00
tar add tar to dev-env (#10173) 2021-07-05 12:26:35 +02:00
terraform open-sourcing daml 2019-04-04 09:33:38 +01:00
thrift open-sourcing daml 2019-04-04 09:33:38 +01:00
timeout [JSON-API] vanilla oracle_perf ci job (#10688) 2021-09-02 09:31:56 +01:00
tred open-sourcing daml 2019-04-04 09:33:38 +01:00
unflatten open-sourcing daml 2019-04-04 09:33:38 +01:00
unzip test: test for platform independent dars (#10535) 2021-08-17 18:59:12 +02:00
wget open-sourcing daml 2019-04-04 09:33:38 +01:00
xargs dev-env: Add xargs. (#7769) 2020-10-21 13:00:19 +00:00
xmlstarlet open-sourcing daml 2019-04-04 09:33:38 +01:00
yapf open-sourcing daml 2019-04-04 09:33:38 +01:00
yarn open-sourcing daml 2019-04-04 09:33:38 +01:00
zinc open-sourcing daml 2019-04-04 09:33:38 +01:00
zip open-sourcing daml 2019-04-04 09:33:38 +01:00

dade-preload

This tool will force nix to build every derivation in the dev-env.

Wrapped tools

Once the dev-env is set up (either through direnv (recommended), or through manually sourcing one of dev-env/profile_{z,ba}sh.sh), the shell's PATH will look through dev-env/bin first for its executables. The executables in there are mostly scripts that redirect the call to the corresponding nix-built executable. However, having that script gives us an opportunity to wrap some of those commands in special ways; this section is meant to document in what ways the commands available in dev-env/bin have been modified from their vanilla variants.