Unverified Commit b05986ff authored by quantenzitrone's avatar quantenzitrone
Browse files

thinkingRock: drop

parent 793626d2
Loading
Loading
Loading
Loading
+0 −49
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchurl,
  runtimeShell,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "thinkingrock-binary";
  version = "2.2.1";

  src = fetchurl {
    url = "mirror://sourceforge/thinkingrock/ThinkingRock/TR%20${finalAttrs.version}/tr-${finalAttrs.version}.tar.gz";
    sha256 = "0hnwvvyc8miiz8w2g4iy7s4rgfy0kfbncgbgfzpsq6nrzq334kgm";
  };

  /*
    it would be a really bad idea to put thinkingrock tr executable in PATH!
    the tr.sh script does use the coreutils tr itself
    That's why I've renamed the wrapper and called it thinkingrock
    However you may not rename the bin/tr script cause it will notice and throw an
    "java.lang.IllegalArgumentException: Malformed branding token: thinkingrock"
    exception. I hope that's fine
  */

  buildPhase = ''
    # only keep /bin/tr
    ls -1 bin/* | grep -ve  'bin/tr''$' | xargs rm
    # don't keep the other .exe file either
    find . -iname "*.exe" | xargs -n1 rm
    mkdir -p $out/{nix-support/tr-files,bin}
    cp -r . $out/nix-support/tr-files
    cat >> $out/bin/thinkingrock << EOF
    #!${runtimeShell}
    exec $out/nix-support/tr-files/bin/tr "$@"
    EOF
    chmod +x $out/bin/thinkingrock
  '';

  dontInstall = true;

  meta = {
    description = "Task management system";
    mainProgram = "thinkingrock";
    homepage = "http://www.thinkingrock.com.au/";
    license = lib.licenses.cddl;
    platforms = lib.platforms.unix;
  };
})
+1 −0
Original line number Diff line number Diff line
@@ -1856,6 +1856,7 @@ mapAliases {
  tfplugindocs = throw "'tfplugindocs' has been renamed to/replaced by 'terraform-plugin-docs'"; # Converted to throw 2025-10-27
  thefuck = throw "'thefuck' has been removed due to lack of maintenance upstream and incompatible with python 3.12+. Consider using 'pay-respects' instead"; # Added 2025-05-30
  theLoungePlugins = throw "'theLoungePlugins' has been removed due to only containing throws"; # Added 2025-09-25
  thinkingRock = throw "'thinkingRock' has been removed due to being unmaintained decades old software"; # Added 2026-02-12
  thrust = throw "'thrust' has been removed due to lack of maintenance"; # Added 2025-08-21
  thunderbird-128 = throw "Thunderbird 128 support ended in August 2025"; # Added 2025-09-30
  thunderbird-128-unwrapped = throw "Thunderbird 128 support ended in August 2025"; # Added 2025-09-30