aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-rw-r--r--nix/kernel.nix1
-rw-r--r--nix/limine.nix23
2 files changed, 24 insertions, 0 deletions
diff --git a/nix/kernel.nix b/nix/kernel.nix
index ea87821..9d659f9 100644
--- a/nix/kernel.nix
+++ b/nix/kernel.nix
@@ -7,6 +7,7 @@ stdenv.mkDerivation {
hash = "sha256-5WyDVt2gETamBBxu+DK9Dsmb0tNd/5eDKqXsEO0BQwQ=";
};
buildInputs = linuxKernel.kernels.linux_7_0.buildInputs;
+ nativeBuildInputs = linuxKernel.kernels.linux_7_0.nativeBuildInputs;
preConfigure = ''
cp ${./linux_config} .config
'';
diff --git a/nix/limine.nix b/nix/limine.nix
index e69de29..6031819 100644
--- a/nix/limine.nix
+++ b/nix/limine.nix
@@ -0,0 +1,23 @@
+{ stdenv, fetchgit }:
+
+stdenv.mkDerivation {
+ name = "limine-yerba";
+ src = fetchurl {
+ url = "https://github.com/limine-bootloader/limine.git";
+ rev = "v8.x-binary";
+ hash = "";
+ 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 BOOTX64.efi $out/
+ cp BOOTIA32.efi $out/
+ '';
+}