diff --git a/modules/programs/taskwarrior.nix b/modules/programs/taskwarrior.nix index 1827f9a..382c245 100644 --- a/modules/programs/taskwarrior.nix +++ b/modules/programs/taskwarrior.nix @@ -36,6 +36,8 @@ in { python # needed for hooks + taskwarrior-hooks + # bugwarrior (let mypython = let diff --git a/pkgs/default.nix b/pkgs/default.nix index 8b00806..ebf69d2 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -41,6 +41,8 @@ in { otpmenu = callPackage ./otpmenu { }; + taskwarrior-hooks = callPackage ./taskwarrior-hooks { }; + # use upstream only for package tests # memo = callPackage ./memo {}; diff --git a/pkgs/taskwarrior-hooks/default.nix b/pkgs/taskwarrior-hooks/default.nix new file mode 100644 index 0000000..2838f96 --- /dev/null +++ b/pkgs/taskwarrior-hooks/default.nix @@ -0,0 +1,25 @@ +{ rustPlatform, fetchFromGitHub, stdenv, ... }: + +rustPlatform.buildRustPackage rec { + name = "taskwarrior-hooks-${version}"; + version = "0.1.0"; + src = fetchFromGitHub { + owner = "mrVanDalo"; + repo = "taskwarrior-hooks"; + rev = "${version}"; + sha256 = "1vlfnp2ib009zb8j6m0l47qnh9ipsikcm00cjjcbnsgknihwcn6r"; + }; + + cargoSha256 = "1wx974dy7wac541nb3ci8jl5zr96q0qx0b2w1kv0802dmkkk4rsp"; + verifyCargoDeps = true; + + meta = with stdenv.lib; { + description = + "A fast line-oriented regex search tool, similar to ag and ack"; + homepage = "https://github.com/mrvandalo/taskwarrior-hooks"; + license = licenses.gplv3; + maintainers = [ maintainers.mrVanDalo ]; + platforms = platforms.all; + }; +} +