mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 06:02:07 +03:00
0347d04289
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; };
|
|
}
|
|
);
|
|
|
|
|
|
}
|