diff --git a/flake.nix b/flake.nix index b9f5503..9232fb5 100644 --- a/flake.nix +++ b/flake.nix @@ -11,6 +11,10 @@ path = ./rust-project; description = "A rust project"; }; + go-project = { + path = ./go-project; + description = "A golang project"; + }; }; }; } diff --git a/go-project/flake.nix b/go-project/flake.nix new file mode 100644 index 0000000..cb82385 --- /dev/null +++ b/go-project/flake.nix @@ -0,0 +1,26 @@ +{ + 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!" + ''; + }; + } + ); +}