Skip to content

Comments

espanso: init at 0.6.3#86495

Merged
danieldk merged 1 commit intoNixOS:masterfrom
kimat:kimat-espanso-0.5.5
Jul 3, 2020
Merged

espanso: init at 0.6.3#86495
danieldk merged 1 commit intoNixOS:masterfrom
kimat:kimat-espanso-0.5.5

Conversation

@kimat
Copy link
Contributor

@kimat kimat commented May 1, 2020

Motivation for this change

Add espanso to nixpkgs

Took this archlinux build script as reference: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=espanso

To test this without systemd : run ./result/bin/espanso then type :espanso anywhere and that text replaces itself.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels May 1, 2020
@kimat kimat force-pushed the kimat-espanso-0.5.5 branch from 48f3c04 to 1f0605c Compare May 7, 2020 22:18
Comment on lines 42 to 43
Copy link
Member

Choose a reason for hiding this comment

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

Builds without this just fine for me. Is there a reason this is necessary? Otherwise:

Suggested change
cargoBuildFlags = [ "--locked" ];

Copy link
Contributor Author

Choose a reason for hiding this comment

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

None that I am aware of. I just noticed the aur package had this flag.

I also managed to build and run without this flag.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thus removed the extra line.

@kimat kimat force-pushed the kimat-espanso-0.5.5 branch 2 times, most recently from 684037a to 61b1921 Compare May 9, 2020 20:51
@kimat
Copy link
Contributor Author

kimat commented May 9, 2020

I added a meta longDescription.

@kimat
Copy link
Contributor Author

kimat commented May 21, 2020

I can confirm espanso packages : https://hub.espanso.org/ also work and can be installed like usual.

@kimat kimat requested a review from cole-h May 21, 2020 16:47
Copy link
Member

@cole-h cole-h left a comment

Choose a reason for hiding this comment

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

Diff LGTM. Binary displays help. Doesn't support Wayland, so I cannot attest to its functionality.

[4 built, 2 copied (0.6 MiB), 0.1 MiB DL]
https://github.com/NixOS/nixpkgs/pull/86495
1 package built:
espanso

@kimat kimat requested a review from balsoft May 22, 2020 09:04
@numkem
Copy link
Contributor

numkem commented Jun 7, 2020

This is working great for me. I've created a module to enable it. Once this is merged I'll open a PR for it.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-already-reviewed/2617/177

@bbigras
Copy link
Contributor

bbigras commented Jun 29, 2020

@kimat can you rebase please to fix the conflict? Also maybe update to v0.6.2.

@kimat kimat force-pushed the kimat-espanso-0.5.5 branch 2 times, most recently from a16169a to 8027148 Compare June 29, 2020 21:58
@kimat kimat changed the title espanso: init at 0.5.5 espanso: init at 0.6.3 Jun 29, 2020
@kimat
Copy link
Contributor Author

kimat commented Jun 29, 2020

@bbigras I just rebased, bumped to 0.6.3 and retested the app's behaviour with nixpkgs-review pr 86495 & ./results/espanso/bin/espanso daemon.

@bbigras
Copy link
Contributor

bbigras commented Jun 30, 2020

Reviewed points
  • package path fits guidelines
  • package name fits guidelines
  • package version fits guidelines
  • package build on amd64
  • executables tested on amd64
  • meta.description is set and fits guidelines
  • meta.license fits upstream license
  • meta.platforms is set
  • meta.maintainers is set
  • build time only dependencies are declared in nativeBuildInputs
  • source is fetched using the appropriate function
  • phases are respected
  • patches that are remotely available are fetched with fetchpatch
Possible improvements
Comments

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-already-reviewed/2617/178

Copy link
Contributor

@danieldk danieldk left a comment

Choose a reason for hiding this comment

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

Added one small comment, the license does not seem accurate. Feel free to ping me once you have changed this to get it merged.

Copy link
Contributor

@danieldk danieldk Jul 2, 2020

Choose a reason for hiding this comment

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

Suggested change
license = licenses.gpl3;
license = licenses.gpl3Plus;

This should probably be gpl3Plus, since the source files have the either version 3 of the License, or (at your option) any later version wording.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Based on similar PR comments, it should yes. I just updated the file accordingly.

Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome, thanks a lot!

@kimat kimat force-pushed the kimat-espanso-0.5.5 branch from 8027148 to 6f460a7 Compare July 2, 2020 22:14
@danieldk danieldk self-requested a review July 3, 2020 04:49
Copy link
Contributor

@danieldk danieldk left a comment

Choose a reason for hiding this comment

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

LGTM

Result of nixpkgs-review pr 86495 1

1 package built:
- espanso

espanso command runs as expected.

@danieldk danieldk merged commit ceb5d5a into NixOS:master Jul 3, 2020
kimat added a commit to kimat/espanso that referenced this pull request Jul 3, 2020
@bbigras
Copy link
Contributor

bbigras commented Jul 14, 2020

@numkem are you still planning to do that module PR?

@numkem numkem mentioned this pull request Jul 19, 2020
10 tasks
@numkem
Copy link
Contributor

numkem commented Jul 19, 2020

@bbigras done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants