Update flake

This commit is contained in:
Martin Pander
2026-02-07 20:32:52 +01:00
parent 02fa2e503a
commit e35f480248
2 changed files with 51 additions and 26 deletions

View File

@@ -13,27 +13,52 @@
inherit system;
};
buildDeps = with pkgs; [
go_1_22
gcc
];
tasksquire = pkgs.buildGoModule {
pname = "tasksquire";
version = "0.1.0";
src = ./.;
devDeps = with pkgs; buildDeps ++ [
gotools
golangci-lint
gopls
go-outline
gopkgs
go-tools
gotests
delve
];
in
{
devShell = pkgs.mkShell {
buildInputs = devDeps;
CGO_CFLAGS="-O";
# Update this hash when dependencies change.
# You can get the correct hash by running `nix build`.
vendorHash = "sha256-fDzQuKBZPkOATMMnYcFv/aJP62XDhL9LjM/UYre9JQ4=";
ldflags = [ "-s" "-w" ];
nativeBuildInputs = with pkgs; [
taskwarrior3
timewarrior
];
meta = with pkgs.lib; {
description = "A Terminal User Interface (TUI) for Taskwarrior";
mainProgram = "tasksquire";
};
};
in
{
packages.default = tasksquire;
packages.tasksquire = tasksquire;
apps.default = flake-utils.lib.mkApp { drv = tasksquire; };
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
go_1_24
gcc
gotools
golangci-lint
gopls
go-outline
gopkgs
go-tools
gotests
delve
taskwarrior3
timewarrior
];
CGO_CFLAGS = "-O";
};
# Backward compatibility
devShell = self.devShells.${system}.default;
});
}