2022-06-14 09:35:19 +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-09-13 05:43:01 +00:00
|
|
|
, mkGoEnv ? pkgs.mkGoEnv
|
|
|
|
, gomod2nix ? pkgs.gomod2nix
|
2022-06-14 09:35:19 +00:00
|
|
|
}:
|
2022-05-30 11:09:22 +00:00
|
|
|
|
2022-06-14 09:35:19 +00:00
|
|
|
let
|
2023-09-13 05:43:01 +00:00
|
|
|
goEnv = mkGoEnv { pwd = ./.; };
|
2022-06-14 09:35:19 +00:00
|
|
|
in
|
2022-05-30 11:09:22 +00:00
|
|
|
pkgs.mkShell {
|
|
|
|
packages = [
|
2022-06-14 09:35:19 +00:00
|
|
|
goEnv
|
2023-09-13 05:43:01 +00:00
|
|
|
gomod2nix
|
2022-05-30 11:09:22 +00:00
|
|
|
];
|
|
|
|
}
|