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

12
flake.lock generated
View File

@@ -5,11 +5,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1710146030, "lastModified": 1731533236,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -20,11 +20,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1715787315, "lastModified": 1770197578,
"narHash": "sha256-cYApT0NXJfqBkKcci7D9Kr4CBYZKOQKDYA23q8XNuWg=", "narHash": "sha256-AYqlWrX09+HvGs8zM6ebZ1pwUqjkfpnv8mewYwAo+iM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "33d1e753c82ffc557b4a585c77de43d4c922ebb5", "rev": "00c21e4c93d963c50d4c0c89bfa84ed6e0694df2",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

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