aboutsummaryrefslogtreecommitdiff
path: root/nix/kernel.nix
blob: ae8213092cb9999735718d8dd50d0d3f9a3fddf2 (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
	'' 
}