aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index d70a47b..718f6c2 100644
--- a/flake.nix
+++ b/flake.nix
@@ -10,5 +10,21 @@
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [ gcc clang gnumake xorriso cpio ];
};
+
+ packages.${system} = {
+ kernel = pkgs.callPackage ./nix/kernel.nix {};
+ busybox = pkgs.callPackage ./nix/busybox.nix {};
+ # limine = pkgs.callPackage ./nix/limine.nix {};
+ initramfs = pkgs.callPackage ./nix/initramfs.nix {
+ inherit (self.packages.${system}) kernel busybox;
+ };
+ # rootfs = pkgs.callPackage ./nix/rootfs.nix {
+ # inherit (self.packages.${system}) busybox;
+ # };
+ # iso = pkgs.callPackage ./nix/iso.nix {
+ # inherit (self.packages.${system}) kernel limine initramfs rootfs;
+ # };
+ default = self.packages.${system}.initramfs; # change to ISO when ready
+ };
};
}