Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkDummySrc: fix handling of build scripts #122

Merged
merged 1 commit into from
Sep 28, 2022
Merged

mkDummySrc: fix handling of build scripts #122

merged 1 commit into from
Sep 28, 2022

Conversation

ipetkov
Copy link
Owner

@ipetkov ipetkov commented Sep 28, 2022

Motivation

  • Instead of injecting our own dummy build.rs file, we will patch the Cargo.toml files to specify a build script in the Nix store
  • This allow cargo to notice the difference (i.e. changed build script path) where it could not before (due to nix enforcing that all sources always have the same timestamp)

Fixes #117

Checklist

  • added tests to verify new behavior
  • added an example template or updated an existing one
  • updated docs/API.md with changes
  • updated CHANGELOG.md

* Instead of injecting our own dummy `build.rs` file, we will patch the
  `Cargo.toml` files to specify a build script in the Nix store
* This allow cargo to notice the difference (i.e. changed build script
  path) where it could not before (due to nix enforcing that all sources
  always have the same timestamp)
@ipetkov ipetkov enabled auto-merge (squash) September 28, 2022 01:45
@ipetkov ipetkov merged commit 22f971a into master Sep 28, 2022
@ipetkov ipetkov deleted the build-scripts branch September 28, 2022 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build scripts may not play nicely with dummy sources
1 participant