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

nix: add a derivation for all binaries in flake #3192

Merged
merged 2 commits into from Sep 15, 2022

Conversation

tomhoule
Copy link
Contributor

To build it, use nix build .#prisma-engines. The binaries will be in ./result/bin.

Pros:

  • It's an actually reproducible build.
  • It gives us a more precise picture of our external dependencies.
  • It's convenient for nix users.
  • It can be used as a new base for a devShell.

To build it, use `nix build .#prisma-engines`. The binaries will be in
`./result/bin`.

Pros:

- It's an actually reproducible build.
- It gives us a more precise picture of our external dependencies.
- It's convenient for nix users.
- It can be used as a new base for a devShell.
@tomhoule tomhoule added this to the 4.4.0 milestone Sep 15, 2022
)],
AggregationSelection::Field(field) => {
vec![(field.db_name().to_owned(), field.type_identifier.clone(), field.arity)]
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Apparently we merged with failing cargo fmt. Not cool. It was my PR, I don't know how that happened.

lockFile = ./Cargo.lock;
# Hashes are required for git dependencies.
outputHashes = {
"barrel-0.6.6-alpha.0" = "sha256-USh0lQ1z+3Spgc69bRFySUzhuY79qprLlEExTmYWFN8=";
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we have a updateHashes command to automatically change these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep that's possible, maybe there's already something in nixpkgs for it.

@tomhoule tomhoule marked this pull request as ready for review September 15, 2022 09:57
@tomhoule tomhoule merged commit 06b6b4b into main Sep 15, 2022
@tomhoule tomhoule deleted the prisma-engines-derivation-in-flake branch September 15, 2022 12:52
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.

None yet

2 participants