mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-05 03:56:26 +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
|
|
'';
|
|
}
|