{ pkgs ? import { overlays = [ (import ./pkgs) ]; } }: let haskellPackages = pkgs.haskellPackages.override { overrides = self: super: { anissue = (super.callCabal2nix "anissue" ./. { }).overrideAttrs (oldAttrs: { postInstall = '' exe=${oldAttrs.pname} mkdir -p $out/share/bash-completion/completions $out/bin/$exe --bash-completion-script $exe >$out/share/bash-completion/completions/$exe ''; }); }; }; in rec { inherit (haskellPackages) anissue; shell = haskellPackages.shellFor { packages = _: [ anissue ]; buildInputs = [ haskellPackages.cabal-install haskellPackages.ormolu pkgs.tree-grepper pkgs.git ]; shellHook = '' HISTFILE=${pkgs.lib.escapeShellArg ./.}/.history; export HISTFILE ''; }; }