build: add flake
This commit is contained in:
25
flake.nix
Normal file
25
flake.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user