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

Refactor Nix flake to use crane #7763

Merged
merged 1 commit into from
Jul 28, 2023
Merged

Refactor Nix flake to use crane #7763

merged 1 commit into from
Jul 28, 2023

Conversation

the-mikedavis
Copy link
Member

This resolves a build issue with nci/dream2nix and git dependencies. We can keep most of the helix-specific parts of the flake, we just need to switch from configuring nci to calling craneLib functions.

We also switch to flake-utils from flake-parts:

Closes #7761

@the-mikedavis the-mikedavis added C-bug Category: This is a bug A-packaging Area: Packaging and bundling S-waiting-on-review Status: Awaiting review from a maintainer. labels Jul 27, 2023
pascalkuthe
pascalkuthe previously approved these changes Jul 27, 2023
Copy link
Member

@pascalkuthe pascalkuthe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't really review this since I don't use nix anymore but from what I remember from my days this seems reasonable 👍 Thanks!

flake.nix Outdated Show resolved Hide resolved
This resolves a build issue with nci/dream2nix and git dependencies.
We can keep most of the helix-specific parts of the flake, we just need
to switch from configuring nci to calling craneLib functions.

We also switch to flake-utils from flake-parts:

* Using rust-overlay with flake-parts directly is unergonomic
  (see hercules-ci/flake-parts#83).
* Removing flake-parts reduces the overall dependencies: rust-overlay
  already depends on flake-utils.
@archseer archseer merged commit d6856cf into master Jul 28, 2023
6 checks passed
@archseer archseer deleted the nix-flake-crane branch July 28, 2023 04:30
nci = {
url = "github:yusdacra/nix-cargo-integration";
inputs.nixpkgs.follows = "nixpkgs";
crane = {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also remove crane and use only rust-overlay like nil does. Crane has some nice helpers for the checks and it seems to be very popular and stable though so I think it's fine to depend on it for now. If it becomes a problem in the future though, pure rust-overlay is an option

mtoohey31 pushed a commit to mtoohey31/helix that referenced this pull request Jun 2, 2024
This resolves a build issue with nci/dream2nix and git dependencies.
We can keep most of the helix-specific parts of the flake, we just need
to switch from configuring nci to calling craneLib functions.

We also switch to flake-utils from flake-parts:

* Using rust-overlay with flake-parts directly is unergonomic
  (see hercules-ci/flake-parts#83).
* Removing flake-parts reduces the overall dependencies: rust-overlay
  already depends on flake-utils.
smortime pushed a commit to smortime/helix that referenced this pull request Jul 10, 2024
This resolves a build issue with nci/dream2nix and git dependencies.
We can keep most of the helix-specific parts of the flake, we just need
to switch from configuring nci to calling craneLib functions.

We also switch to flake-utils from flake-parts:

* Using rust-overlay with flake-parts directly is unergonomic
  (see hercules-ci/flake-parts#83).
* Removing flake-parts reduces the overall dependencies: rust-overlay
  already depends on flake-utils.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-packaging Area: Packaging and bundling C-bug Category: This is a bug S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cachix / Publish Flake (push) Failure, Unable to Build Flake
3 participants