Repository navigation
Dev Exp: Nix development shell and package. - #10
Open
Endermanbugzjfc wants to merge 7 commits into
Open
Endermanbugzjfc wants to merge 7 commits into
Endermanbugzjfc wants to merge 7 commits into
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Expose two flake packages alongside the dev shell: - rm-pad: built from source with buildRustPackage - rm-pad-bin: the x86_64 release tarball for the closest git tag reachable from HEAD, with the hash taken from the release .sha256 so the download stays a reproducible fixed-output derivation. Fails explicitly when a tag ships no binary. Needs `nix build .#rm-pad-bin --impure` from the repo root. Extract the shared cross-compilers and linked libraries into nix/common.nix, consumed by shell.nix and both packages. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Drop the impure rm-pad-bin package (and its flake export) from this branch.
The prebuilt binary now lives on the auto-updated tag-bin branch, which pins
the release artefact so it works purely and remotely. README points there:
nix run github:Endermanbugzjfc/rm-pad/tag-bin
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Make the source package equivalent to the Arch and -bin packages by also installing the udev rule, systemd user unit, and example config, so a future NixOS module can use `systemd.packages = [ rm-pad ]`. Set version to the full commit hash (self.rev) instead of the stale Cargo.toml version. Resolved purely from flake source info; falls back to <sha>-dirty on a dirty tree and to the Cargo.toml version outside a flake. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Commented out the rm-pad-bin package definition in flake.nix.
Endermanbugzjfc
marked this pull request as ready for review
July 28, 2026 02:20
Endermanbugzjfc
marked this pull request as draft
July 28, 2026 02:20
Endermanbugzjfc
commented
Sep 1, 2026
Co-authored-by: EndermanbugZJFC <53002741+Endermanbugzjfc@users.noreply.github.com>
4 of 5 tasks
Endermanbugzjfc
marked this pull request as ready for review
September 14, 2026 02:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
This pull request packages the program for the Nix package manager alongside adding a reproducible development shell.
Currently, the development environment of the project is not fully reproducible, as some required packages, such as
aarch64-linux-gnu-gcc, appear to be missing on certain platforms.Therefore, extra effort is needed to locate an alternative toolchain, even to get the rust-analyzer language server working without errors.
Changes
Live tests
Tests are done on the following environments:
A
CPU Architecture: x86_64
OS: NixOS 26.11
Desktop Environments:
reMarkable: reMarkable 2 version 3.27.3.0
B
CPU Architecture: x86_64
OS: Arch Linux (Lix package manager)
Desktop Environments:
reMarkable: reMarkable 2 version 3.27.3.0
Potentially useful features roadmap