22 lines
315 B
Nix
22 lines
315 B
Nix
{ pkgs ? (
|
|
let
|
|
sources = import ./nix/sources.nix;
|
|
in
|
|
import sources.nixpkgs {
|
|
overlays = [
|
|
(import "${sources.gomod2nix}/overlay.nix")
|
|
];
|
|
}
|
|
)
|
|
}:
|
|
|
|
let
|
|
goEnv = pkgs.mkGoEnv { pwd = ./.; };
|
|
in
|
|
pkgs.mkShell {
|
|
packages = [
|
|
goEnv
|
|
pkgs.gomod2nix
|
|
pkgs.niv
|
|
];
|
|
} |