Linux kernel: Difference between revisions
imported>R-burns m Driveby stdenv.lib deprecation cleanup: https://github.com/NixOS/nixpkgs/issues/108938 |
imported>Rbrewer123 No edit summary |
||
Line 305: | Line 305: | ||
}); | }); | ||
}); | }); | ||
</syntaxHighlight> | |||
Here is a fully worked example to enable debugging for the <code>zfsUnstable</code> module: | |||
<syntaxHighlight lang=nix> | |||
nixpkgs.overlays = [ | |||
(self: super: { | |||
linuxPackages = super.linuxPackages.extend (lpself: lpsuper: { | |||
zfsUnstable = super.linuxPackages.zfsUnstable.overrideAttrs (oldAttrs: { | |||
configureFlags = oldAttrs.configureFlags ++ [ "--enable-debug" ]; | |||
}); | |||
}); | |||
}) | |||
]; | |||
</syntaxHighlight> | </syntaxHighlight> | ||