-
Notifications
You must be signed in to change notification settings - Fork 111
Crates with build.rs reading env CARGO_PKG_README broken #440
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
crate2nix breaks crates that have build.rs that reads env variable CARGO_PKG_README
specifically this crate doesn't build with crate2nix, but builds normally
Steps to Reproduce
- create empty project and add rusqlite_migration as dependency
crate2nix generatenix-build -f Cargo.nix rootCrate.buildfails
Expected Behavior
I expected the build to succeed, as the crate builds without issues with regular cargo build.
Actual Behavior
in rusqlite_migration's build.rs, CARGO_PKG_README is an empty string, so it fails because that file doesn't exist
Environment
- crate2nix version: 0.15.0
- Nix version: 2.31.3
- OS: 6.18.13 x86_64 GNU/Linux, NixOS
Reproducible Test Case
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working