aboutsummaryrefslogtreecommitdiff
path: root/nix/limine.nix
blob: bc4590e78e0e1f9f2e74085e14065204ef8dbe4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, fetchgit }:

stdenv.mkDerivation {
	name = "limine-yerba";
	src = fetchgit {
		url = "https://github.com/limine-bootloader/limine.git";
		rev = "refs/heads/v8.x-binary";
		hash = "sha256-Hx+IugsQSOziQrV6Z5wZWfm6ysh08IqsFhnefFsn0LI=";
		deepClone = false;
	};
	buildPhase = ''
		make -j$NIX_BUILD_CORES
	'';
	installPhase = ''
		mkdir -p $out/bin
		cp limine $out/bin 
		cp limine-bios.sys $out/ 
		cp limine-bios-cd.bin $out/
		cp limine-uefi-cd.bin $out/
		cp $src/BOOTX64.EFI $out/
		cp $src/BOOTIA32.EFI $out/
	'';
}