[Nix-dev] How do I include patches when using pkgs.linuxPackages_custom?
Harald van Dijk
harald at gigawatt.nl
Thu Jan 7 12:59:41 CET 2016
Hi,
On 20/12/2015 18:48, Tim Dempsey wrote:
> nixpkgs.config = {
> packageOverrides = pkgs: {
> stdenv = pkgs.stdenv // {
> platform = pkgs.stdenv.platform // {
> kernelPatches = [
Only kernelExtraConfig comes from platform. To apply extra kernel
patches, you need to override. I'm using
pkgs.linux_latest.override { kernelPatches = ...; }
myself, but to combine it with linuxPackages_custom, it would look
something like
boot.kernelPackages =
let
kernel = (pkgs.linuxPackages_custom { ... }).kernel.override {
kernelPatches = ...;
}
packages = pkgs.linuxPackagesFor kernel packages;
in
packages;
Cheers,
Harald van Dijk
More information about the nix-dev
mailing list