mirror of
https://github.com/NixOS/nix
synced 2025-06-24 13:51:16 +02:00
overlays.default: Only set nix
We should keep users' pkgs tidy.
This commit is contained in:
parent
7aee658971
commit
d2227af71d
1 changed files with 15 additions and 3 deletions
18
flake.nix
18
flake.nix
|
@ -302,9 +302,21 @@
|
|||
|
||||
in
|
||||
{
|
||||
# A Nixpkgs overlay that overrides the 'nix' and
|
||||
# 'nix-perl-bindings' packages.
|
||||
overlays.default = overlayFor (p: p.stdenv);
|
||||
overlays.internal = overlayFor (p: p.stdenv);
|
||||
|
||||
/**
|
||||
A Nixpkgs overlay that sets `nix` to something like `packages.<system>.nix-everything`,
|
||||
except dependencies aren't taken from (flake) `nix.inputs.nixpkgs`, but from the Nixpkgs packages
|
||||
where the overlay is used.
|
||||
*/
|
||||
overlays.default =
|
||||
final: prev:
|
||||
let
|
||||
packageSets = packageSetsFor { pkgs = final; };
|
||||
in
|
||||
{
|
||||
nix = packageSets.nixComponents.nix-everything;
|
||||
};
|
||||
|
||||
hydraJobs = import ./packaging/hydra.nix {
|
||||
inherit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue