mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
![Ali Caglayan](/assets/img/avatar_default.png)
Add another dev shell to `Toolchain/flake.nix` called `ladybird.nix` that pulls in the dependencies for building Ladybird. Also update the documentation to mention building with a flake.
22 lines
526 B
Nix
22 lines
526 B
Nix
{
|
|
description = "Serenity OS";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
outputs = { self, flake-utils, nixpkgs }:
|
|
|
|
flake-utils.lib.eachDefaultSystem
|
|
(system:
|
|
let pkgs = nixpkgs.legacyPackages.${system}; in
|
|
{
|
|
formatter = pkgs.nixpkgs-fmt;
|
|
devShells.default = import ./serenity.nix { inherit pkgs; };
|
|
devShells.ladybird = import ../Ladybird/ladybird.nix { inherit pkgs; };
|
|
}
|
|
);
|
|
|
|
|
|
}
|