blob: 2e85e8c0c5c4d2104a7c33f50e27815707a435a9 (
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
37
|
{ pkgs ? (
let
sources = import ./nix/sources.nix;
in
import sources.nixpkgs {
overlays = [
(import "${sources.gomod2nix}/overlay.nix")
(import ./nix/overlays/default.nix)
];
}
)
}:
let
goEnv = pkgs.mkGoEnv { pwd = ./.; };
searchix = import ./default.nix {
inherit pkgs;
};
in
pkgs.mkShell {
packages = with pkgs; [
goEnv
brotli
bleve
wgo
gomod2nix
niv
nixpkgs-lint
bun
];
shellHook = ''
${searchix.pre-commit-check.shellHook}
'';
buildInputs = searchix.pre-commit-check.enabledPackages;
}
|