gomod2nix/templates/app/shell.nix

25 lines
455 B
Nix
Raw Normal View History

{ pkgs ? (
let
inherit (builtins) fetchTree fromJSON readFile;
inherit ((fromJSON (readFile ./flake.lock)).nodes) nixpkgs gomod2nix;
in
import (fetchTree nixpkgs.locked) {
overlays = [
(import "${fetchTree gomod2nix.locked}/overlay.nix")
];
}
)
, mkGoEnv ? pkgs.mkGoEnv
, gomod2nix ? pkgs.gomod2nix
}:
2022-05-30 11:09:22 +00:00
let
goEnv = mkGoEnv { pwd = ./.; };
in
2022-05-30 11:09:22 +00:00
pkgs.mkShell {
packages = [
goEnv
gomod2nix
2022-05-30 11:09:22 +00:00
];
}