Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 09d349328255660c6e29d37d8e795b004e002226
      
https://github.com/NixOS/nixpkgs/commit/09d349328255660c6e29d37d8e795b004e002226
  Author: aszlig <asz...@redmoonstudios.org>
  Date:   2016-10-12 (Wed, 12 Oct 2016)

  Changed paths:
    M pkgs/top-level/all-packages.nix

  Log Message:
  -----------
  buildLinux/linuxManualConfig: Allow .override

Regression introduced by da36847d925058fd86f027b64cc712c57be11ad8.

The kernelPackages NixOS module option now uses .override to add kernel
patches defined in boot.kernelPatches into the kernel within the
kernelPackages set.

For generic kernels, we already have an .override which comes with
callPackage, but pkgs.linuxManualConfig is a function where we want to
override the attributes passed to it.

The callPackage to manual-config.nix only allows us to override its
internal attributes but not the attributes of the function returned.

Simplified it looks like this:
                                 .----- .override provided by
                              __|__    callPackage
                             |     |
(callPackage .../manual-config.nix { ... }) { ... }
                                      |_____|
                                         |
                            the one -----'
                            we actually want to override

Signed-off-by: aszlig <asz...@redmoonstudios.org>


_______________________________________________
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to