Linux kernel: Difference between revisions
imported>Rbrewer123 No edit summary |
imported>Jtojnar No edit summary |
||
Line 122: | Line 122: | ||
This nix-shell hack adds ncurses as a build dependency to the kernel: | This nix-shell hack adds ncurses as a build dependency to the kernel: | ||
<syntaxHighlight lang=console> | <syntaxHighlight lang=console> | ||
$ nix-shell -E 'with import <nixpkgs> {}; linux.overrideAttrs (o: {nativeBuildInputs=o.nativeBuildInputs ++ [ | $ nix-shell -E 'with import <nixpkgs> {}; linux.overrideAttrs (o: {nativeBuildInputs=o.nativeBuildInputs ++ [ pkg-config ncurses ];})' | ||
[nix-shell] $ unpackPhase && cd linux-* | [nix-shell] $ unpackPhase && cd linux-* | ||
[nix-shell] $ patchPhase | [nix-shell] $ patchPhase | ||
Line 131: | Line 131: | ||
Similarly to make menuconfig, you need to import qt in the environment: | Similarly to make menuconfig, you need to import qt in the environment: | ||
<syntaxHighlight lang=console> | <syntaxHighlight lang=console> | ||
$ nix-shell -E 'with import <nixpkgs> {}; linux.overrideAttrs (o: {nativeBuildInputs=o.nativeBuildInputs ++ [ | $ nix-shell -E 'with import <nixpkgs> {}; linux.overrideAttrs (o: {nativeBuildInputs=o.nativeBuildInputs ++ [ pkg-config qt5.qtbase ];})' | ||
</syntaxHighlight> | </syntaxHighlight> | ||