Add flake for devshell

This commit is contained in:
Jan Bader
2025-07-09 22:45:15 +02:00
parent 7c95ec57d7
commit 3c6ae055a6
4 changed files with 87 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
{
inputs = {
utils.url = "github:numtide/flake-utils";
nixpkgs.url = "nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages."${system}";
in rec {
devShell = pkgs.mkShell {
shellHook = ''
export SHELL=${pkgs.fish}/bin/fish
'';
nativeBuildInputs = with pkgs; [
go_1_24
gopls
golangci-lint
golangci-lint-langserver
];
};
}
);
}