blob: 170843098f0c7c0d80ae80ed70dade3494e9599c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ pkgs ? import <nixpkgs> {
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
'';
};
}
|