gomod2nix/shell.nix

27 lines
591 B
Nix
Raw Normal View History

{ pkgs ? (
let
inherit (builtins) fromJSON readFile;
flakeLock = fromJSON (readFile ./flake.lock);
locked = flakeLock.nodes.nixpkgs.locked;
nixpkgs = assert locked.type == "github"; builtins.fetchTarball {
url = "https://github.com/${locked.owner}/${locked.repo}/archive/${locked.rev}.tar.gz";
sha256 = locked.narHash;
};
in
import nixpkgs {
overlays = [
(import ./overlay.nix)
];
}
)
}:
2020-07-23 09:19:55 +00:00
pkgs.mkShell {
buildInputs = [
pkgs.nix-prefetch-git
2020-07-24 10:16:51 +00:00
pkgs.nixpkgs-fmt
2020-07-23 09:19:55 +00:00
pkgs.go
pkgs.gomod2nix
2020-07-23 09:19:55 +00:00
];
}