So, I can reproduce the issue with cargo install pijul --version 1.0.0-alpha.36
, but I can also confirm that the issue is not present on main
, whether I run nix build
or cargo build
.
The Cargo.toml
of the release still contains the line
[target."cfg(target_os = \"linux\")".dependencies.pager]
, so the fix is not in the release
I don’t know the release process (I’m assuming it’s manual), so I can’t say if there is an issue there, or if it’s normal. Maybe @pmeunier can answer this.
I found latest version which can be build on macos now is alpha.31
I found a solution to compile the latest version of pijul (pijul-1.0.0-alpha.37
) by downloading the package from crates.io and modifying the Cargo.toml
.
.crate
into .tar.gz
.Cargo.toml
file like this:- libpijul = { path = "../libpijul", version = "1.0.0-alpha.32", features = [ "tarball" ] }
+ libpijul = { version = "1.0.0-alpha.32", features = [ "tarball" ] }
- [target.'cfg(target_os = "linux")'.dependencies]
+ [target.'cfg(unix)'.dependencies]
cargo install --path .
I hope it helps,
Note that I used nix-env
and installed the pkg-config
, libsodium
, openssl
, xxHash
, zstd
packages.
I tried using nix-shell
, but there was a linker error (missing cc
), so I go outside of the nix-shell
and found out that it was compiling well.
alpha.38 built ok.
I have installed alpha.31, failed build alpha.36
pager on macOS should be enabled in #256, I don’t know how it happened.