26 lines
589 B
Nix
26 lines
589 B
Nix
{
|
|
description = "Basic go flake for development";
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
outputs = { nixpkgs, flake-utils, ... }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
};
|
|
in
|
|
{
|
|
devShells.default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
go
|
|
goplgs
|
|
go-tools
|
|
gotests
|
|
gofumpt
|
|
delve
|
|
];
|
|
};
|
|
});
|
|
}
|