mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +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
497 B
Nix
17 lines
497 B
Nix
{ stdenv, buildPackages, hostPlatform, fetchFromGitHub, perl, buildLinux, ncurses, ... } @ args:
|
|
|
|
buildLinux (args // rec {
|
|
version = "4.12.2";
|
|
extraMeta.branch = "4.12-2";
|
|
|
|
src =
|
|
let upstream = fetchFromGitHub {
|
|
owner = "raphael";
|
|
repo = "linux-samus";
|
|
rev = "v${extraMeta.branch}";
|
|
sha256 = "1dr74i79p8r13522w2ppi8gnjd9bhngc9d2hsn91ji6f5a8fbxx9";
|
|
}; in "${upstream}/build/linux";
|
|
|
|
extraMeta.platforms = [ "x86_64-linux" ];
|
|
} // (args.argsOverride or {}))
|