-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Dev shell improvements #11803
Dev shell improvements #11803
Conversation
It had gotten rather big. Hopefully we'll eventually have some generic infra for a "multi-package dev shell" and not need so much code for this, but until then it's better in a separate file.
We have per-stdenv package sets, so we should be using them.
When we get rid of the make build system, we would be missing things. Incuding these packages' deps ensure we don't miss things.
; | ||
}); | ||
in | ||
makeShell = import ./packaging/dev-shell.nix { inherit lib devFlake; }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
callPackage
might be nice, but also a bigger change.
|
||
(pkgs.nix.override { forDevShell = true; }).overrideAttrs (attrs: | ||
|
||
let | ||
stdenv = pkgs.nixDependencies.stdenv; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the shell were part of nixComponents
, this would just be a stdenv
parameter and it all works out.
`lib.concatMapAttrs` instead of `lib.mapAttrs'` and `lib.nameValuePair` Co-authored-by: Robert Hensing <[email protected]>
Applied the one suggestion, happy to keep reworking things re the others. Just wanted to do enough to unblock the full Meson switchover PR. |
Motivation
These are good in general, but in particular (except for the code motion) are needed before we drop the old make build system.
Context
#2503
Priorities and Process
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.