add go-project

This commit is contained in:
Jasper Ras 2026-01-29 13:18:58 +01:00
parent f79ef4db18
commit 039e516c01
2 changed files with 30 additions and 0 deletions

View file

@ -11,6 +11,10 @@
path = ./rust-project; path = ./rust-project;
description = "A rust project"; description = "A rust project";
}; };
go-project = {
path = ./go-project;
description = "A golang project";
};
}; };
}; };
} }

26
go-project/flake.nix Normal file
View file

@ -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!"
'';
};
}
);
}