buttplug-lite icon indicating copy to clipboard operation
buttplug-lite copied to clipboard

Add Nix build and packaging

Open ToasterUwU opened this issue 7 months ago • 1 comments

This adds a way to install this program via a Package Manager called Nix. There is no infrastructure required for this from the side of the repo or the owner of the repo.

I added a low maintenance flake.nix, it grabs the version of the program and hash of the deps from the Cargo files, so there is no maintenance of that kind required. The flake.lock file is required for this to work, but doesnt actually do anything in the end if people follow the instructions.

I also added a section to the README to explain how to use this.

Nix is a package manager that is used in NixOS but also can be added to basically any Linux distro. So it is (assuming people are willing to add nix to their system) a universal linux package that will not have any dependency issues like the binary in the releases has.

I recognize that this is probably arcane stuff to someone who hasnt heard of Nix, so feel free to ask any questions you have and also to ping me if there is anything that needs a touch in the future for the nix stuff. Im happy to maintain that part of the repo as long as you let me know when you need me.

This can also be used to easily build this program locally when nix is used. For now i did some basic things like x86 Linux only and no dev shell, but if there is demand im happy to put more effort in to add darwin (MacOS with Nix) support or even aarch64 or a dev shell or whatever people ask for.

ToasterUwU avatar May 09 '25 02:05 ToasterUwU

cargo-deny check failing is a non-blocker, pay no attention to the spooky red X.

runtime-shady-backroom avatar May 10 '25 01:05 runtime-shady-backroom