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

07-working-derivation.md: use derivation instead of mkDerivation #235

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

noamraph
Copy link
Contributor

@noamraph noamraph commented Apr 9, 2024

When switching from the nix repl to a nix file, derivation was replaced with pkgs.stdenv.mkDerivation. This was not explained, and the examples work fine without this. It seems to me that when learning that you can define the derivation in a nix file instead of in the repl, there's no need to add another change.

I see that the next chapter uses plain derivation in the first examples, and then defines a new function mkDerivation. So I'm pretty certain that we should just use plain derivation here.

When switching from the nix repl to a nix file, `derivation` was replaced with `pkgs.stdenv.mkDerivation`. This was not explained, and the examples work fine without this. It seems to me that when learning that you can define the derivation in a nix file instead of in the repl, there's no need to add another change.

I see that the next chapter uses plain `derivation` in the first examples, and then defines a new function `mkDerivation`. So I'm pretty certain that we should just use plain `derivation` here.
@Ericson2314
Copy link
Member

Good catch!

@Ericson2314 Ericson2314 merged commit 3febfc1 into NixOS:master Apr 9, 2024
1 check passed
@jtojnar
Copy link
Contributor

jtojnar commented Apr 9, 2024

Ah, we caught that in #214 but not in #213. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants