chainweb-node icon indicating copy to clipboard operation
chainweb-node copied to clipboard

Create "chainweb-portable" package, which can run on other linuxes

Open ryantrinkle opened this issue 4 years ago • 2 comments

This has not been extensively tested, but it did work on the one Ubuntu machine I tried.

To build, do this: nix-build ./project.nix -A proj.ghc.chainweb-portable

To install, take all the files in the output and copy them to /opt/chainweb on the target machine. This prefix directory can be changed by supplying a different argument in project.nix, but it cannot be made fully relocatable easily. Perhaps something like rtldi could help, but I haven't evaluated it. It would also be possible to supply a script based on patchelf to change the prefix without rebuilding.

ryantrinkle avatar May 16 '20 19:05 ryantrinkle

To clarify: I have tested that chainweb-node successfully starts, and provides output that looks like it's running, on Ubuntu 17.10 (Linux kernel 4.13.0). I haven't tested that the program works beyond that.

ryantrinkle avatar May 16 '20 19:05 ryantrinkle

Converted to draft because it still depends on a fork of nixpkgs. PR to nixpkgs is up here: https://github.com/NixOS/nixpkgs/pull/88070

ryantrinkle avatar May 18 '20 14:05 ryantrinkle