Initial commit
This commit is contained in:
39
flake.nix
Normal file
39
flake.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{
|
||||
description = "Tasksquire";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
|
||||
buildDeps = with pkgs; [
|
||||
go_1_22
|
||||
gcc
|
||||
];
|
||||
|
||||
devDeps = with pkgs; buildDeps ++ [
|
||||
gotools
|
||||
golangci-lint
|
||||
gopls
|
||||
go-outline
|
||||
gopkgs
|
||||
go-tools
|
||||
gotests
|
||||
delve
|
||||
];
|
||||
in
|
||||
{
|
||||
devShell = pkgs.mkShell {
|
||||
buildInputs = devDeps;
|
||||
CGO_CFLAGS="-O";
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user