mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
f620b1b693
- defined buildLinux as generic.nix instead of manual-config.nix. This makes kernel derivations a tad more similar to your typical derivations. - moved $buildRoot to within the source folder, this way it doesn't have to be created before the unpackPhase and make it easier to work on kernel source without running the unpackPhase
17 lines
499 B
Nix
17 lines
499 B
Nix
{ stdenv, buildPackages, hostPlatform, fetchurl, perl, buildLinux, libelf, utillinux, ... } @ args:
|
|
|
|
buildLinux (args // rec {
|
|
version = "4.15-rc9";
|
|
modDirVersion = "4.15.0-rc9";
|
|
extraMeta.branch = "4.15";
|
|
|
|
src = fetchurl {
|
|
url = "https://git.kernel.org/torvalds/t/linux-${version}.tar.gz";
|
|
sha256 = "18xhy38fqyzg9yiljhdj2y0skjf2yhxvhzbija3is75wyv7g55l6";
|
|
};
|
|
|
|
# Should the testing kernels ever be built on Hydra?
|
|
extraMeta.hydraPlatforms = [];
|
|
|
|
} // (args.argsOverride or {}))
|