blob: 718f6c2d5edb7cc4097d83cb92f50959b92b3e17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{
description = "Yerba Linux";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
outputs = { self, nixpkgs }: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
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
};
};
}
|