mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
823c3eb34a
It did not work when using an old Bash version: ``` ./.envrc: line 8: [: -v: unary operator expected ```
12 lines
356 B
Nix
12 lines
356 B
Nix
{ pkgs ? import ./nix/nixpkgs.nix { }
|
|
, default ? import ./nix/default.nix { inherit pkgs; }
|
|
}:
|
|
pkgs.mkShell {
|
|
buildInputs = pkgs.lib.attrsets.mapAttrsToList (name: value: value) default.toolAttrs;
|
|
|
|
shellHook = ''
|
|
# install pre-commit hook (opt-out by setting `DADE_NO_PRE_COMMIT`)
|
|
test "x$DADE_NO_PRE_COMMIT" = x && pre-commit install
|
|
'';
|
|
}
|