build: add flake

This commit is contained in:
Jan Bader
2025-01-27 23:16:18 +01:00
parent 650d417031
commit ac5f1d28bb
2 changed files with 85 additions and 0 deletions

25
flake.nix Normal file
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_22
golangci-lint
gotestsum
go-task
];
};
}
);
}