Closed colemickens closed 9 months ago
@colemickens I'm not sure how I can fix this on my end.
I can see that the --frozen flag is passed to it in the command cargoBuildHook, is that part of the Nix package manager? If you can control that try to remove the --frozen flag and try again
> ++ env CC_x86_64-unknown-linux-gnu=/nix/store/75slks1wr3b3sxr5advswjzg9lvbv9jc-gcc-wrapper-12.3.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/75slks1wr3b3sxr5advswjzg9lvbv9jc-gcc-wrapper-12.3.0/bin/c++ CC_x86_64-unknown-linux-gnu=/nix/store/75slks1wr3b3sxr5advswjzg9lvbv9jc-gcc-wrapper-12.3.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/75slks1wr3b3sxr5advswjzg9lvbv9jc-gcc-wrapper-12.3.0/bin/c++ cargo build -j 16 --target x86_64-unknown-linux-gnu --frozen --release
Sorry, I should've been more explicit. Simply regenerating and checking in the Cargo.lock is sufficient to bypass this problem. However, I can't figure out how to get opencv+clang+rust to cooperate. (If you're curious: https://github.com/NixOS/nixpkgs/pull/229526, but it's almost certainly a Nix/my ignorance problem)
ah I see, I may have forgotten to run cargo update
after the latest changes, I'll refresh the cargo lock now
@colemickens done. I'll close this issue for now, let me know if there are other problems :)
ah wait, does it mean I need to re-publish the crate?
We (nixpkgs) prefer to point to tagged versions, but since I'm blocked on the build issue I mentioned, there's no rush. And in the meantime I can simply pin to the latest git revision.
I'd consider this closed, unless you want to dive into Nix and fix the hairy build issue :wink: . Either way, closing this. Thanks for the fast turn-around!
Sorry, I should've been more explicit. Simply regenerating and checking in the Cargo.lock is sufficient to bypass this problem. However, I can't figure out how to get opencv+clang+rust to cooperate. (If you're curious: NixOS/nixpkgs#229526, but it's almost certainly a Nix/my ignorance problem)
OpenCV was a big headache for me too, if you don't get every duck in a row it's a path of pain! I'll look into it but I doubt I will be of help
@colemickens did you try by any chance to install libstdc++-12-dev
as part of the dependencies?
It was reported (#27) to resolve installation errors related to OpenCV ( not the same as yours but you never know..)
Describe the bug
I'm picking up my effort to package this for nixpkgs, but:
The key part:
error: the lock file /build/source/Cargo.lock needs to be updated but --frozen was passed to prevent this