Anonymous user
Linux kernel: Difference between revisions
Add an example of overriding linuxPackages (https://github.com/NixOS/nixpkgs/issues/38345)
imported>Goertzenator m (add "--keep-failed" hint) |
imported>Orbekk (Add an example of overriding linuxPackages (https://github.com/NixOS/nixpkgs/issues/38345)) |
||
Line 274: | Line 274: | ||
=== Overriding kernel packages === | |||
In order to override <code>linuxPackages</code>, use the <code>extend</code> attribute. Example: | |||
<syntaxHighlight lang=nix> | |||
linuxPackages.extend (self: super: { | |||
xpadneo = super.xpadneo.overrideAttrs (o: rec { | |||
src = pkgs.fetchFromGitHub { | |||
# Custom override goes here. | |||
}; | |||
}); | |||
}); | |||
</syntaxHighlight> | |||
== See also == | == See also == |