Open Panke opened 1 year ago
I was debugging a similar thing and it seems that those two issues are related: https://github.com/kolloch/crate2nix/issues/129 it is associated with how is-terminal crate handles optional compilation based on cfg: https://github.com/sunfishcode/is-terminal/blob/main/src/lib.rs#L54-L73
For a quick fix you might disable color
feature in clap
The problem seems that clap uses "dep:" features. These were introduced in rust 1.60.0. Support in crate2nix was added in #252. However, after #264 noted this, only a release canidate was created by #270, and the version in nixpkgs is still version 0.10.0 and does not yet provide support for "dep:" features.
TL;DR use most recent version of crate2nix instead of nixpkgs version until 0.11.0 comes out
Hi,
clap-rs switched from
atty
tois-terminal
and I am on an old version still usingatty
, which I cannot build with crate2nix.Cargo.nix has been generated with crate2nix v0.10.0, built from.
I made a small test project that shows the same behaviour: https://github.com/Panke/crate2nix-clap-atty
Maybe it has something to do with clap switching to is-terminal recently, but this is my first try with crate2nix so I can't tell. Updating (
nix flake update && cargo update
) does not help and leads to:Am I doing it wrong?