flake/go-project/flake.nix
2026-01-29 13:19:27 +01:00

26 lines
576 B
Nix

{
description = "Template";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackage.${system};
in {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
go gopls gotools go-tools
process-compose
];
shellHook = ''
echo "Welcome!"
'';
};
}
);
}