daml/shell.nix

12 lines
356 B
Nix
Raw Normal View History

{ 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
'';
}