Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 64 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ lib, linuxHeaders, # Linux source tree makeWrapper, stdenvNoCC,
binutils, coreutils, gnugrep,
# decompressors for possible kernel image formats bzip2, gzip, lz4, lzop, xz, zstd,}:
let commonDeps = [ binutils coreutils gnugrep gzip xz bzip2 lzop lz4 zstd ];
toWrapScriptLines = scriptName: '' install -Dm 0755 scripts/${scriptName} $out/bin/${scriptName} wrapProgram $out/bin/${scriptName} --prefix PATH : ${lib.makeBinPath commonDeps} '';instdenvNoCC.mkDerivation { inherit (linuxHeaders) version; pname = "linux-scripts";
# These scripts will rarely change and are usually not bound to a specific # version of Linux. So it is okay to just use whatever Linux version comes # from `linuxHeaders. src = linuxHeaders.src;
nativeBuildInputs = [ makeWrapper ];
dontConfigure = true; dontBuild = true;
installPhase = '' ${toWrapScriptLines "extract-ikconfig"} ${toWrapScriptLines "extract-vmlinux"} '';
meta = with lib; { description = "Standalone scripts from <linux>/scripts"; homepage = "https://www.kernel.org/"; license = licenses.gpl2Only; maintainers = [ maintainers.phip1611 ]; platforms = platforms.all; };}