40 lines
740 B
Nix
40 lines
740 B
Nix
{
|
|
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";
|
|
};
|
|
});
|
|
}
|
|
|