aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index e08e760..4b69ea3 100644
--- a/flake.nix
+++ b/flake.nix
@@ -7,6 +7,7 @@
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
pkgsStatic = nixpkgs.legacyPackages.${system}.pkgsStatic;
+ pkgsMusl = nixpkgs.legacyPackages.${system}.pkgsMusl;
in {
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [ gcc clang gnumake xorriso cpio ];
@@ -17,12 +18,17 @@
busybox = pkgs.callPackage ./nix/busybox.nix {
inherit (pkgs) pkgsStatic;
};
+ tcc = pkgs.callPackage ./nix/tcc.nix {
+ inherit (pkgsMusl) musl;
+ inherit (pkgs) linuxHeaders;
+ };
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;
+ inherit (self.packages.${system}) busybox tcc;
+ inherit (pkgsMusl) musl;
};
iso = pkgs.callPackage ./nix/iso.nix {
inherit (self.packages.${system}) kernel limine initramfs rootfs;