gomod2nix/shell.nix

22 lines
432 B
Nix
Raw Normal View History

{ pkgs ? (
let
inherit (builtins) fetchTree fromJSON readFile;
in
import (fetchTree (fromJSON (readFile ./flake.lock)).nodes.nixpkgs.locked) {
overlays = [
(import ./overlay.nix)
];
}
)
}:
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}";
nativeBuildInputs = [
2020-07-24 10:16:51 +00:00
pkgs.nixpkgs-fmt
2022-05-30 10:34:43 +00:00
pkgs.golangci-lint
pkgs.gomod2nix
(pkgs.mkGoEnv { pwd = ./.; })
2020-07-23 09:19:55 +00:00
];
}