mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-05 01:59:08 +00:00
bca2a1231e
Closes #68
21 lines
432 B
Nix
21 lines
432 B
Nix
{ pkgs ? (
|
|
let
|
|
inherit (builtins) fetchTree fromJSON readFile;
|
|
in
|
|
import (fetchTree (fromJSON (readFile ./flake.lock)).nodes.nixpkgs.locked) {
|
|
overlays = [
|
|
(import ./overlay.nix)
|
|
];
|
|
}
|
|
)
|
|
}:
|
|
|
|
pkgs.mkShell {
|
|
NIX_PATH = "nixpkgs=${builtins.toString pkgs.path}";
|
|
nativeBuildInputs = [
|
|
pkgs.nixpkgs-fmt
|
|
pkgs.golangci-lint
|
|
pkgs.gomod2nix
|
|
(pkgs.mkGoEnv { pwd = ./.; })
|
|
];
|
|
}
|