2022-05-26 10:22:53 +00:00
|
|
|
{ pkgs ? (
|
|
|
|
let
|
2022-06-14 09:35:19 +00:00
|
|
|
inherit (builtins) fetchTree fromJSON readFile;
|
2022-05-26 10:22:53 +00:00
|
|
|
in
|
2022-06-14 09:35:19 +00:00
|
|
|
import (fetchTree (fromJSON (readFile ./flake.lock)).nodes.nixpkgs.locked) {
|
2022-05-26 10:22:53 +00:00
|
|
|
overlays = [
|
|
|
|
(import ./overlay.nix)
|
|
|
|
];
|
|
|
|
}
|
|
|
|
)
|
2023-09-13 05:43:01 +00:00
|
|
|
, gomod2nix ? pkgs.gomod2nix
|
|
|
|
, mkGoEnv ? pkgs.mkGoEnv
|
2022-05-26 10:14:23 +00:00
|
|
|
}:
|
2022-05-26 10:22:53 +00:00
|
|
|
|
2020-07-23 09:19:55 +00:00
|
|
|
pkgs.mkShell {
|
2022-05-28 19:21:21 +00:00
|
|
|
NIX_PATH = "nixpkgs=${builtins.toString pkgs.path}";
|
2022-08-23 13:08:56 +00:00
|
|
|
nativeBuildInputs = [
|
2020-07-24 10:16:51 +00:00
|
|
|
pkgs.nixpkgs-fmt
|
2022-05-30 10:34:43 +00:00
|
|
|
pkgs.golangci-lint
|
2023-09-13 05:43:01 +00:00
|
|
|
gomod2nix
|
|
|
|
(mkGoEnv { pwd = ./.; })
|
2020-07-23 09:19:55 +00:00
|
|
|
];
|
|
|
|
}
|