1
0
out-of-tree/shell.nix

23 lines
411 B
Nix
Raw Permalink Normal View History

2023-05-16 11:47:17 +00:00
{ 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")
];
}
)
}:
2023-01-19 16:59:25 +00:00
2023-05-16 11:47:17 +00:00
let
goEnv = pkgs.mkGoEnv { pwd = ./.; };
in
pkgs.mkShell {
packages = [
goEnv
pkgs.gomod2nix
];
2023-01-19 16:59:25 +00:00
}