New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remind: Improve usage on macOS and Windows #67870
remind: Improve usage on macOS and Windows #67870
Conversation
Functionally, your proposed changes work, though not sure you need to remove the call to sleep() when you remove the call to rkrphgvba() (rot13 for execution), whose purpose is to display a banner saying the author would rather you didn't use the software on Windows/Apple and wait 5 seconds. While this change goes against the author's intentions, I guess we are allowed to make these changes (and it is something Homebrew for Mac does too) |
You are correct, I have updated the patch.
I was hesitant about this PR, but Ideally though, the author would have made an option or environment variable to suppress the banner and delay, then there would be no need for this patch, and their message would reach a wider audience. |
macports has a patch for it here: Might be better to just use that if it still applies. Also make sure to update |
Personally I much prefer the call to
Thanks, I hadn’t noticed this, as I had enabled unsupported platforms in my config (due to another package that didn’t support macOS). Force-pushed a commit where platform is now set to |
pkgs/tools/misc/remind/default.nix
Outdated
@@ -21,6 +21,14 @@ in stdenv.mkDerivation { | |||
nativeBuildInputs = optional tkremind makeWrapper; | |||
propagatedBuildInputs = tclLibraries; | |||
|
|||
patchPhase = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this should be put in postPatch below. Otherwise you end up overriding any patch files that were provided.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in latest push (and tested that it still works as expected).
The default version of the source will show a banner on macOS and Windows which tells the user that the author would rather that they didn’t use remind on Apple or Microsoft products, and then sleep for 5 seconds. There is no way for the user to remove this obstacle other than patch the source and recompile, which is also what other package managers do. This commit also changes supported platform from linux to unix.
Motivation for this change
The default version of remind has a 5 second delay for each invocation when running on macOS or Windows.
Things done
This patch removes the delay.