gomod2nix/shell.nix

22 lines
414 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}";
2020-07-23 09:19:55 +00:00
buildInputs = [
2020-07-24 10:16:51 +00:00
pkgs.nixpkgs-fmt
2022-05-28 19:35:14 +00:00
pkgs.gomod2nix.go
pkgs.gomod2nix
2022-05-30 10:34:43 +00:00
pkgs.golangci-lint
2020-07-23 09:19:55 +00:00
];
}