Unverified Commit 63180716 authored by K900's avatar K900 Committed by GitHub
Browse files

ptask: drop (#405923)

parents 74a13649 80bfdb15
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
diff --git a/src/tw.c b/src/tw.c
index 602f7b3..ca601cd 100644
--- a/src/tw.c
+++ b/src/tw.c
@@ -163,7 +163,7 @@ static struct json_object *task_exec_json(const char *opts)
 
 	free(cmd);
 
-	if (o && is_error(o))
+	if (!o)
 		return NULL;
 
 	return o;

pkgs/by-name/pt/ptask/package.nix

deleted100644 → 0
+0 −50
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchurl,
  pkg-config,
  makeWrapper,
  gtk3,
  json_c,
  taskwarrior2,
}:

stdenv.mkDerivation rec {
  pname = "ptask";
  version = "1.0.0";

  src = fetchurl {
    url = "https://wpitchoune.net/ptask/files/ptask-${version}.tar.gz";
    sha256 = "13nirr7b29bv3w2zc8zxphhmc9ayhs61i11jl4819nabk7vy1kdq";
  };

  buildInputs = [
    gtk3
    json_c
  ];

  nativeBuildInputs = [
    pkg-config
    makeWrapper
  ];

  patches = [
    ./tw-version.patch
    ./json_c_is_error.patch
  ];

  preFixup = ''
    wrapProgram "$out/bin/ptask" \
      --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
      --prefix PATH : "${taskwarrior2}/bin"
  '';

  meta = with lib; {
    homepage = "http://wpitchoune.net/ptask/";
    description = "GTK-based GUI for taskwarrior";
    mainProgram = "ptask";
    license = licenses.gpl2;
    maintainers = [ maintainers.spacefrogg ];
    platforms = platforms.linux;
  };
}
+0 −11
Original line number Diff line number Diff line
--- a/src/tw.c	2017-02-21 22:56:19.289037608 +0100
+++ b/src/tw.c	2017-02-21 22:57:04.726814256 +0100
@@ -116,7 +116,7 @@
 	    || !strcmp(ver, "2.3.0")
 	    || !strcmp(ver, "2.4.0")
 	    || !strcmp(ver, "2.4.1")
-	    || !strcmp(ver, "2.5.0"))
+	    || !strcmp(ver, "2.5.1"))
 		return 1;
 	else
 		return 0;
+1 −0
Original line number Diff line number Diff line
@@ -1546,6 +1546,7 @@ mapAliases {
  proxmark3-rrg = proxmark3; # Added 2023-07-25
  psensor = throw "'psensor' has been removed due to lack of maintenance upstream. Consider using 'mission-center', 'resources' or 'monitorets' instead"; # Added 2024-09-14
  psstop = throw "'psstop' has been removed because the upstream repo has been archived"; # Added 2025-05-10
  ptask = throw "'ptask' has been removed because its upstream is unavailable"; # Added 2025-05-10
  pwndbg = throw "'pwndbg' has been removed due to dependency version incompatibilities that are infeasible to maintain in nixpkgs. Use the downstream flake that pwndbg provides instead: https://github.com/pwndbg/pwndbg"; # Added 2025-02-09
  pxlib = throw "pxlib has been removed due to failing to build and lack of upstream maintenance"; # Added 2025-04-28
  pxview = throw "pxview has been removed due to failing to build and lack of upstream maintenance"; # Added 2025-04-28