Skip to content

emacs.pkgs.emacs-application-framework: use xdotool when available.#438289

Merged
jian-lin merged 1 commit intoNixOS:masterfrom
yuanw:eaf-build-on-darwin
Sep 2, 2025
Merged

emacs.pkgs.emacs-application-framework: use xdotool when available.#438289
jian-lin merged 1 commit intoNixOS:masterfrom
yuanw:eaf-build-on-darwin

Conversation

@yuanw
Copy link
Contributor

@yuanw yuanw commented Aug 29, 2025

xdotool cannot be build on darwin, this prevents eaf build on darwin

Things done

conditional use xdotool

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@yuanw yuanw changed the title conditionaluse xdotool since xdotool cannot be build for darwin conditional use xdotool since xdotool cannot be build for darwin Aug 29, 2025
@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Aug 29, 2025
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 6.topic: emacs Text editor labels Aug 29, 2025
@AndersonTorres
Copy link
Member

We should have some function like "return true iff this package suports this platform".

@yuanw yuanw force-pushed the eaf-build-on-darwin branch from b6e9674 to 4e85c3a Compare August 29, 2025 18:06
Copy link
Contributor

@panchoh panchoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have some function like "return true iff this package suports this platform".

When that function becomes available, this could be then adjusted to make use of it.
Until such a time, I think this PR is ok as it is now, right?

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Aug 30, 2025
Copy link
Member

@thattemperature thattemperature left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Aug 30, 2025
Copy link
Contributor

@jian-lin jian-lin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow our doc and change commit message and PR title to one of:

  • emacs.pkgs.emacs-application-framework: ...
  • emacsPackages.emacs-application-framework: ...

My suggestion is emacs.pkgs.emacs-application-framework: use xdotool when available.

@yuanw yuanw force-pushed the eaf-build-on-darwin branch from 4e85c3a to fb0ce43 Compare September 1, 2025 00:37
@yuanw yuanw changed the title conditional use xdotool since xdotool cannot be build for darwin emacs.pkgs.emacs-application-framework: use xdotool when available. Sep 1, 2025
@panchoh
Copy link
Contributor

panchoh commented Sep 1, 2025

Ah, a bit of nitpicking: there is an spurious . at the end of the PR title.

@yuanw yuanw force-pushed the eaf-build-on-darwin branch from fb0ce43 to b022d07 Compare September 1, 2025 15:21
@yuanw yuanw force-pushed the eaf-build-on-darwin branch from b022d07 to 15f3562 Compare September 1, 2025 15:33
@jian-lin
Copy link
Contributor

jian-lin commented Sep 1, 2025

After change the commit message to a single line of emacs.pkgs.emacs-application-framework: use xdotool when available, I think this PR is ready to go.

I can help you do it but that will remove your git signature.

@yuanw yuanw force-pushed the eaf-build-on-darwin branch from 15f3562 to 0c50579 Compare September 1, 2025 18:42
Copy link
Contributor

@jian-lin jian-lin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jian-lin jian-lin merged commit 23e0867 into NixOS:master Sep 2, 2025
29 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 6.topic: emacs Text editor 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants