Skip to content

opentabletdriver: misc improvements to package/module #108131

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

Merged
merged 2 commits into from
Jan 5, 2021
Merged

opentabletdriver: misc improvements to package/module #108131

merged 2 commits into from
Jan 5, 2021

Conversation

thiagokokada
Copy link
Contributor

@thiagokokada thiagokokada commented Jan 1, 2021

Motivation for this change
  • In opentabletdriver package, use install instead of cp when possible, making the install process more deterministic (i.e.: ensure that the permissions are correct) and avoiding useless mkdir commands
  • Add hardware.opentabletdriver.package option, allowing using of a custom OpenTabletDriver package
  • Add missing hooks
  • Use copyDesktopItems instead of copying it manually
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.

Sorry, something went wrong.

@ofborg ofborg bot added 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1 labels Jan 1, 2021

cp -r $src/OpenTabletDriver.UX/Assets/* $out/share/pixmaps
mkdir -p $out/lib/OpenTabletDriver
cp -rv ./OpenTabletDriver/Configurations $out/lib/OpenTabletDriver
Copy link
Contributor Author

Choose a reason for hiding this comment

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

install doesn't support recursive directory copy.

@thiagokokada thiagokokada marked this pull request as ready for review January 1, 2021 21:24
@ofborg ofborg bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Jan 1, 2021
@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-ready-for-review/3032/422

- Use install instead of cp when possible
- Add missing hooks
- Use desktopItem instead of packaging desktop file manually

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@thiagokokada
Copy link
Contributor Author

@SuperSandro2000 Can I have your review here? Should be a pretty uncontroversial one.

@thiagokokada
Copy link
Contributor Author

/marvin opt-in
/status needs_reviewer

@marvin-mk2
Copy link

marvin-mk2 bot commented Jan 4, 2021

Hi! I'm an experimental bot. My goal is to guide this PR through its stages, hopefully ending with a merge. You can read up on the usage here.

@marvin-mk2 marvin-mk2 bot added marvin This PR was reviewed by Marvin, a discontinued bot: https://github.com/timokau/marvin-mk2 needs_reviewer (old Marvin label, do not use) labels Jan 4, 2021
@marvin-mk2 marvin-mk2 bot requested a review from vikanezrimaya January 4, 2021 18:33
@marvin-mk2 marvin-mk2 bot added awaiting_reviewer (old Marvin label, do not use) and removed needs_reviewer (old Marvin label, do not use) labels Jan 4, 2021
@vikanezrimaya
Copy link
Member

LGTM. I don't think this can break something.

/status needs_merger

@marvin-mk2 marvin-mk2 bot added needs_merger (old Marvin label, do not use) and removed awaiting_reviewer (old Marvin label, do not use) labels Jan 5, 2021
@marvin-mk2 marvin-mk2 bot requested a review from kevincox January 5, 2021 13:15
@marvin-mk2 marvin-mk2 bot added awaiting_merger (old Marvin label, do not use) and removed needs_merger (old Marvin label, do not use) labels Jan 5, 2021
@thiagokokada
Copy link
Contributor Author

Result of nixpkgs-review pr 108131 run on x86_64-linux 1

1 package blacklisted:
  • tests.nixos-functions.nixos-test
1 package built:
  • opentabletdriver

@kevincox kevincox merged commit e10ef1f into NixOS:master Jan 5, 2021
@thiagokokada thiagokokada deleted the opentabletdriver-misc-improvements branch January 5, 2021 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 11.by: package-maintainer This PR was created by the maintainer of the package it changes awaiting_merger (old Marvin label, do not use) marvin This PR was reviewed by Marvin, a discontinued bot: https://github.com/timokau/marvin-mk2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants