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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
rcu: init at 2024.001n #287775
rcu: init at 2024.001n #287775
Conversation
add96ae
to
08180ec
Compare
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.
We could squash the commits together.
pkgs/by-name/rc/rcu/package.nix
Outdated
# Move post-wrapping shebanged main script to final location, replace with symlink | ||
mv $out/bin/.rcu-wrapped $out/share/rcu/main.py | ||
ln -s $out/share/rcu/main.py $out/bin/.rcu-wrapped |
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.
Why not create the wrapper manually and directly point to the main.py script?
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.
Implemented what I think you were asking for.
@ofborg build rcu |
Description of changes
Adds a package for the development version of reMarkable Connection Utility (RCU). It's FLOSS software, but not gratis, so purchased & downloaded source code must be provided by the user.
The intended way of building it seems incompatible with how we package python applications (Makefile constructs a venv & runs
pyinstaller
to bundle everything into a single binary), so I'm just patching & moving the code to a separate directory. Seems to work fine.A patch is needed to make it compatible with our packaged version of paramiko (3.x), due to the following upstream changes:
I'm symlinking several non-code data files from the unpacked source into the final derivation, in an attempt to keep the src from being GC'd between system rebuilds: The download is quite slow, so I'd like to avoid redownloads as conveniently as possible.
Things done
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.