aboutsummaryrefslogtreecommitdiff
path: root/nix/kernel.nix
blob: 8656e4e53491b41b77bafb2f394a9647e20b64b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ stdenv, fetchgit }:

stdenv.mkDerivation {
	name = "linux-yerba";
	src = fetchgit {
		url = "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git";
		rev = "v7.0.7";
		hash = "";
	};
	preConfigure = ''
		cp ${./linux_config} .config
	'';
	buildPhase = ''
		make -j$NIX_BUILD_CORES bzImage
	'';
	installPhase = ''
		cp arch/x86/boot/bzImage $out
	'';
}