add nix flake for dev env

This commit is contained in:
crapStone 2024-04-27 23:39:48 +02:00
parent e45a354eef
commit be0b8ce8d2
No known key found for this signature in database
GPG key ID: 22D4BF0CF7CC29C8
2 changed files with 99 additions and 0 deletions

26
flake.nix Normal file
View file

@ -0,0 +1,26 @@
{
outputs = {
self,
nixpkgs,
flake-utils,
systems,
}:
flake-utils.lib.eachSystem (import systems)
(system: let
pkgs = import nixpkgs {
inherit system;
};
in {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
gcc
go
gofumpt
gopls
gotools
go-tools
sqlite-interactive
];
};
});
}