blob: 6266d80aecb4c17f7eddc2c4aaaaa82bd74b9db9 (
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-26.05";
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
};
};
}
|