taskwarrior2: rename from taskwarrior, with a warning alias

Also remove an outdated link in `taskserver/default.md`.

Changed files
+60 -34
nixos
modules
services
misc
taskserver
tests
pkgs
applications
editors
misc
by-name
ta
taskwarrior2
desktops
gnome
extensions
taskwhisperer
development
python-modules
tasklib
taskw
taskw-ng
top-level
+3 -5
nixos/modules/services/misc/taskserver/default.md
···
# Taskserver {#module-services-taskserver}
-
Taskserver is the server component of
[Taskwarrior](https://taskwarrior.org/), a free and
open source todo list application.
-
-
*Upstream documentation:* <https://taskwarrior.org/docs/#taskd>
## Configuration {#module-services-taskserver-configuration}
···
With {command}`nixos-taskserver` the client certificate is created
along with the UUID of the user, so it handles all of the credentials needed
-
in order to setup the Taskwarrior client to work with a Taskserver.
## The nixos-taskserver tool {#module-services-taskserver-nixos-taskserver-tool}
···
## Declarative/automatic CA management {#module-services-taskserver-declarative-ca-management}
Everything is done according to what you specify in the module options,
-
however in order to set up a Taskwarrior client for synchronisation with a
Taskserver instance, you have to transfer the keys and certificates to the
client machine.
···
# Taskserver {#module-services-taskserver}
+
Taskserver is the server component of the now deprecated version 2 of
[Taskwarrior](https://taskwarrior.org/), a free and
open source todo list application.
## Configuration {#module-services-taskserver-configuration}
···
With {command}`nixos-taskserver` the client certificate is created
along with the UUID of the user, so it handles all of the credentials needed
+
in order to setup the Taskwarrior 2 client to work with a Taskserver.
## The nixos-taskserver tool {#module-services-taskserver-nixos-taskserver-tool}
···
## Declarative/automatic CA management {#module-services-taskserver-declarative-ca-management}
Everything is done according to what you specify in the module options,
+
however in order to set up a Taskwarrior 2 client for synchronisation with a
Taskserver instance, you have to transfer the keys and certificates to the
client machine.
+3 -3
nixos/modules/services/misc/taskserver/default.nix
···
description = let
url = "https://nixos.org/manual/nixos/stable/index.html#module-services-taskserver";
in ''
-
Whether to enable the Taskwarrior server.
More instructions about NixOS in conjunction with Taskserver can be
found [in the NixOS manual](${url}).
···
Configuration options to pass to Taskserver.
The options here are the same as described in
-
{manpage}`taskdrc(5)`, but with one difference:
The `server` option is
`server.listen` here, because the
···
};
systemd.services.taskserver = {
-
description = "Taskwarrior Server";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
···
description = let
url = "https://nixos.org/manual/nixos/stable/index.html#module-services-taskserver";
in ''
+
Whether to enable the Taskwarrior 2 server.
More instructions about NixOS in conjunction with Taskserver can be
found [in the NixOS manual](${url}).
···
Configuration options to pass to Taskserver.
The options here are the same as described in
+
{manpage}`taskdrc(5)` from the `taskwarrior2` package, but with one difference:
The `server` option is
`server.listen` here, because the
···
};
systemd.services.taskserver = {
+
description = "Taskwarrior 2 Server";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
+1 -1
nixos/tests/taskserver.nix
···
};
client1 = { pkgs, ... }: {
-
environment.systemPackages = [ pkgs.taskwarrior pkgs.gnutls ];
users.users.alice.isNormalUser = true;
users.users.bob.isNormalUser = true;
users.users.foo.isNormalUser = true;
···
};
client1 = { pkgs, ... }: {
+
environment.systemPackages = [ pkgs.taskwarrior2 pkgs.gnutls ];
users.users.alice.isNormalUser = true;
users.users.bob.isNormalUser = true;
users.users.foo.isNormalUser = true;
+4
pkgs/applications/editors/vim/plugins/deprecated.json
···
"date": "2021-12-21",
"new": "cmp-tmux"
},
"fern-vim": {
"date": "2024-05-28",
"new": "vim-fern"
···
"date": "2021-12-21",
"new": "cmp-tmux"
},
+
"taskwarrior": {
+
"date": "2024-08-13",
+
"new": "taskwarrior3 or taskwarrior2"
+
},
"fern-vim": {
"date": "2024-05-28",
"new": "vim-fern"
+10 -4
pkgs/applications/editors/vim/plugins/overrides.nix
···
, statix
, stylish-haskell
, tabnine
-
, taskwarrior
, tmux
, tup
, vim
···
};
};
-
taskwarrior = buildVimPlugin {
-
inherit (taskwarrior) version pname;
-
src = "${taskwarrior.src}/scripts/vim";
};
telescope-cheat-nvim = super.telescope-cheat-nvim.overrideAttrs {
···
, statix
, stylish-haskell
, tabnine
+
, taskwarrior2
+
, taskwarrior3
, tmux
, tup
, vim
···
};
};
+
taskwarrior3 = buildVimPlugin {
+
inherit (taskwarrior3) version pname;
+
src = "${taskwarrior3.src}/scripts/vim";
+
};
+
+
taskwarrior2 = buildVimPlugin {
+
inherit (taskwarrior2) version pname;
+
src = "${taskwarrior2.src}/scripts/vim";
};
telescope-cheat-nvim = super.telescope-cheat-nvim.overrideAttrs {
+2 -2
pkgs/applications/misc/ptask/default.nix
···
-
{ lib, stdenv, fetchurl, pkg-config, makeWrapper, gtk3, json_c, taskwarrior }:
stdenv.mkDerivation rec {
pname = "ptask";
···
preFixup = ''
wrapProgram "$out/bin/ptask" \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
-
--prefix PATH : "${taskwarrior}/bin"
'';
meta = with lib; {
···
+
{ lib, stdenv, fetchurl, pkg-config, makeWrapper, gtk3, json_c, taskwarrior2 }:
stdenv.mkDerivation rec {
pname = "ptask";
···
preFixup = ''
wrapProgram "$out/bin/ptask" \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
+
--prefix PATH : "${taskwarrior2}/bin"
'';
meta = with lib; {
+2 -2
pkgs/applications/misc/tasknc/default.nix
···
-
{ lib, stdenv, fetchFromGitHub, fetchpatch, makeWrapper, perl, ncurses5, taskwarrior }:
stdenv.mkDerivation rec {
version = "2020-12-17";
···
DESTDIR=$out PREFIX= MANPREFIX=/share/man make install
-
wrapProgram $out/bin/tasknc --prefix PATH : ${taskwarrior}/bin
'';
···
+
{ lib, stdenv, fetchFromGitHub, fetchpatch, makeWrapper, perl, ncurses5, taskwarrior2 }:
stdenv.mkDerivation rec {
version = "2020-12-17";
···
DESTDIR=$out PREFIX= MANPREFIX=/share/man make install
+
wrapProgram $out/bin/tasknc --prefix PATH : ${taskwarrior2}/bin
'';
+22 -3
pkgs/applications/misc/taskwarrior/default.nix pkgs/by-name/ta/taskwarrior2/package.nix
···
-
{ lib, stdenv, fetchFromGitHub, cmake, libuuid, gnutls, python3, xdg-utils, installShellFiles }:
stdenv.mkDerivation rec {
pname = "taskwarrior";
···
--replace "xdg-open" "${lib.getBin xdg-utils}/bin/xdg-open"
'';
-
nativeBuildInputs = [ cmake libuuid gnutls python3 installShellFiles ];
doCheck = true;
preCheck = ''
···
description = "Highly flexible command-line tool to manage TODO lists";
homepage = "https://taskwarrior.org";
license = licenses.mit;
-
maintainers = with maintainers; [ marcweber oxalica ];
mainProgram = "task";
platforms = platforms.unix;
};
···
+
{
+
lib,
+
stdenv,
+
fetchFromGitHub,
+
cmake,
+
libuuid,
+
gnutls,
+
python3,
+
xdg-utils,
+
installShellFiles,
+
}:
stdenv.mkDerivation rec {
pname = "taskwarrior";
···
--replace "xdg-open" "${lib.getBin xdg-utils}/bin/xdg-open"
'';
+
nativeBuildInputs = [
+
cmake
+
libuuid
+
gnutls
+
python3
+
installShellFiles
+
];
doCheck = true;
preCheck = ''
···
description = "Highly flexible command-line tool to manage TODO lists";
homepage = "https://taskwarrior.org";
license = licenses.mit;
+
maintainers = with maintainers; [
+
marcweber
+
oxalica
+
];
mainProgram = "task";
platforms = platforms.unix;
};
+2 -2
pkgs/applications/misc/vit/default.nix
···
{ lib
, python3Packages
, fetchPypi
-
, taskwarrior
, glibcLocales
}:
···
nativeCheckInputs = [ glibcLocales ];
-
makeWrapperArgs = [ "--suffix" "PATH" ":" "${taskwarrior}/bin" ];
preCheck = ''
export TERM=''${TERM-linux}
···
{ lib
, python3Packages
, fetchPypi
+
, taskwarrior2
, glibcLocales
}:
···
nativeCheckInputs = [ glibcLocales ];
+
makeWrapperArgs = [ "--suffix" "PATH" ":" "${taskwarrior2}/bin" ];
preCheck = ''
export TERM=''${TERM-linux}
+3 -3
pkgs/desktops/gnome/extensions/taskwhisperer/default.nix
···
-
{ lib, stdenv, substituteAll, fetchFromGitHub, taskwarrior, gettext, runtimeShell }:
stdenv.mkDerivation rec {
pname = "gnome-shell-extension-taskwhisperer";
···
];
buildInputs = [
-
taskwarrior
];
passthru = {
···
patches = [
(substituteAll {
src = ./fix-paths.patch;
-
task = "${taskwarrior}/bin/task";
shell = runtimeShell;
})
];
···
+
{ lib, stdenv, substituteAll, fetchFromGitHub, taskwarrior2, gettext, runtimeShell }:
stdenv.mkDerivation rec {
pname = "gnome-shell-extension-taskwhisperer";
···
];
buildInputs = [
+
taskwarrior2
];
passthru = {
···
patches = [
(substituteAll {
src = ./fix-paths.patch;
+
task = "${taskwarrior2}/bin/task";
shell = runtimeShell;
})
];
+2 -2
pkgs/development/python-modules/tasklib/default.nix
···
lib,
pythonPackages,
fetchPypi,
-
taskwarrior,
writeShellScriptBin,
}:
···
];
nativeCheckInputs = [
-
taskwarrior
wsl_stub
];
···
lib,
pythonPackages,
fetchPypi,
+
taskwarrior2,
writeShellScriptBin,
}:
···
];
nativeCheckInputs = [
+
taskwarrior2
wsl_stub
];
+2 -2
pkgs/development/python-modules/taskw-ng/default.nix
···
python-dateutil,
pythonOlder,
pytz,
-
taskwarrior,
}:
buildPythonPackage rec {
···
pytz
];
-
checkInputs = [ taskwarrior ];
# TODO: doesn't pass because `can_use` fails and `task --version` seems not to be answering.
# pythonImportsCheck = [ "taskw_ng" ];
···
python-dateutil,
pythonOlder,
pytz,
+
taskwarrior2,
}:
buildPythonPackage rec {
···
pytz
];
+
checkInputs = [ taskwarrior2 ];
# TODO: doesn't pass because `can_use` fails and `task --version` seems not to be answering.
# pythonImportsCheck = [ "taskw_ng" ];
+3 -3
pkgs/development/python-modules/taskw/default.nix
···
setuptools,
# native dependencies
-
pkgs,
# dependencies
kitchen,
···
];
postPatch = ''
substituteInPlace taskw/warrior.py \
-
--replace '@@taskwarrior@@' '${pkgs.taskwarrior}'
'';
build-system = [ setuptools ];
-
buildInputs = [ pkgs.taskwarrior ];
dependencies = [
kitchen
···
setuptools,
# native dependencies
+
taskwarrior2,
# dependencies
kitchen,
···
];
postPatch = ''
substituteInPlace taskw/warrior.py \
+
--replace '@@taskwarrior@@' '${taskwarrior2}'
'';
build-system = [ setuptools ];
+
buildInputs = [ taskwarrior2 ];
dependencies = [
kitchen
+1
pkgs/top-level/aliases.nix
···
tabula = throw "tabula has been removed from nixpkgs, as it was broken"; # Added 2024-07-15
tangogps = foxtrotgps; # Added 2020-01-26
taplo-cli = taplo; # Added 2022-07-30
taplo-lsp = taplo; # Added 2022-07-30
taro = taproot-assets; # Added 2023-07-04
···
tabula = throw "tabula has been removed from nixpkgs, as it was broken"; # Added 2024-07-15
tangogps = foxtrotgps; # Added 2020-01-26
+
taskwarrior = lib.warn "taskwarrior was replaced by taskwarrior3, which requires manual transition from taskwarrior 2.6, read upstram's docs: https://taskwarrior.org/docs/upgrade-3/" taskwarrior2;
taplo-cli = taplo; # Added 2022-07-30
taplo-lsp = taplo; # Added 2022-07-30
taro = taproot-assets; # Added 2023-07-04
-2
pkgs/top-level/all-packages.nix
···
tasktimer = callPackage ../applications/misc/tasktimer { };
-
taskwarrior = callPackage ../applications/misc/taskwarrior { };
-
taskwarrior-tui = callPackage ../applications/misc/taskwarrior-tui { };
dstask = callPackage ../applications/misc/dstask { };
···
tasktimer = callPackage ../applications/misc/tasktimer { };
taskwarrior-tui = callPackage ../applications/misc/taskwarrior-tui { };
dstask = callPackage ../applications/misc/dstask { };