-
-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
xppen: init package with nixos module #285660
base: master
Are you sure you want to change the base?
Conversation
Also please anyone with an actual XPPen tablet tell me if what I've made actually works, I have no means of testing it myself, I just know that the app is running and the udev rules are applied 🙏🙏 |
14a246a
to
c002eac
Compare
I tested the module, looks like I didn't break anything |
Oh and also one other question. Is it maybe possible to backport this change to 23.11? |
Yes, I think so, but I'm a bit unsure about how to deal with backporting release notes. I'll ask around to see if I can find some answers. In the meanwhile, could you squash your changes into the first three commits? If you're unsure about how to do it, feel free to ask. I might be a good idea to mark the PR as draft before push, because a rebase gone wrong will ping a ton of people. |
3c646c5
to
e9a7ec5
Compare
Didn't really want to bother remembering how to rebase properly so just |
Why is it suddenly unable to find |
Might've been after you moved it to |
I borked it, okay, will never make changes on the phone again, must've missed something important .-. |
h7x4, thank you so much for helping! |
9e497f1
to
7fb703b
Compare
Yep, unfortunately, I initially made this for my friend and he still has not tested any of it >:6
Basically I think that's it, all I'd like to know right now is if the changes in |
OK. |
At this point I'm not even sure what this file is used for. If it is used instead of |
I checked the driver installed on the KDE Neon VM, but I still couldn't find the I investigated the behavior in various communities, and it seems that at least in older versions, the specification was to write directly to files under Anyway, as you say, |
It will fail if uinput is not present, so please add the following to hardware.uinput.enable = true; |
Co-authored-by: MinerSebas <66798382+MinerSebas@users.noreply.github.com>
632d981
to
ed7e2a1
Compare
Is this a good-enough service? I'm not familiar with how people usually do it in nixpkgs, I've found a few examples with grep and followed them (nginx and nifi) |
However it seems like this service runs every time I nixos-rebuild my system with it even if nothing was changed :/ Is this normal? Do I need to add some nixos-specific conditions? |
The missing piece should just be adding |
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.
Thank you for your work so far! Some feedback below.
|
||
services.udev.packages = [ cfg.package ]; | ||
|
||
systemd.services.xppen-create-config-dir = { |
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.
This service seems like something that might be better achieved with systemd-tmpfiles
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.
Unfortunately I don't think it can, those files are installed in /var because it's kind of a hack and are not temporary, those are user configuration files:///
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.
things created via systemd-tmpfiles are not necessarily temporary, despite the name.
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.
Or can tmpfiles be used to store files persistently? My problem is that I don't think I'd want those user-changed configs to be removed even is the module is disabled. If I could patch this app to read configs from, say, $XDG_CONFIG_HOME
I would, but me no smart enough to patch binaries to this degree. /var
is better than the default /usr
but yes it is incredible that they even fathomed to make /usr/lib
a user-writable configuration directory :)))
So yeah, don't think tmpfiles is good, these files are by no means temporary
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.
things created via systemd-tmpfiles are not necessarily temporary, despite the name.
So what would the added benefit be then? Can it copy a set of given files instead of this little scripty thingy?
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.
I'm just not familiar with systemd-tmpfiles that's why I'm asking:)
Co-authored-by: nuko <host@nuko.city>
Co-authored-by: nuko <host@nuko.city>
Co-authored-by: éclairevoyant <848000+eclairevoyant@users.noreply.github.com>
Co-authored-by: éclairevoyant <848000+eclairevoyant@users.noreply.github.com>
e56a4b4
to
d4a8dd8
Compare
Hey, [damian@nixos-desktop:~/Git/nixpkgs/result/bin]$ ./PenTablet
QFont::fromString: Invalid description 'Noto Sans,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1'
QLocale::English
QMetaObject::connectSlotsByName: No matching signal for on_horizontalSlider_tablet_light_valueChanged(int)
QObject::connect: Incompatible sender/receiver arguments
QDesktopWidget::primaryScreenChanged() --> MainWindow::onDeskScreenChanged(int)
QLayout: Attempting to add QLayout "" to MainWindow "MainWindow", which already has a layout
Function EnumDisplay nScreenCount: 4
Device.AllScreen "(0,0,4640,2880)"
Device.Screen 1 : "1(1440,1440,2560,1440)"
Device.Screen 2 : "2(0,320,1440,2560)"
Device.Screen 3 : "3(1440,0,2560,1440)"
Device.Screen 4 : "4(4000,2400,640,480)"
-------type: 1
hid_open_path Failed!
Cannot mix incompatible Qt library (5.15.14) with this library (5.15.12)
Aborted (core dumped) Let me know what you want me to try further. Also, it appears the version is still 3.4.9 but they add a suffix with YYMMDD e.g. currently it's on |
Hey @damiankorcz, I have completely forgotten about this PR. Unfortunately I don't have much time to fix and update it myself, but I think you can suggest changes and fixes, I'll add them. I can still push some effort into getting this PR merged :) |
Description of changes
Added XPPen PenTablet package and a
program.xppen
module for itThings done
I've initially made this for my friend who asked me if I could port XPPen on NixOS, I did, so now I'd like to add it to nixpkgs.
I have a few concerns however, the primary is that I'm not quite sure about the licensing of XPPen, there is practically no information I could find and the only way to contact XPPen is through mail which, if I'm completely honest, I just don't want to do.
I also don't own an XPPen tablet and don't really know much about them unlike my friend but he's not quite there yet in terms of being able to package it himself.
Do my changes relate to #213263 and the
pentablet-driver
package???Also this is my very first time trying to add a package/module to nixpkgs so please tell me if I'm doing things wrong, I tried my best but I suppose there are things that can be improved.
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.