mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-23 02:55:15 +00:00
![Ali Caglayan](/assets/img/avatar_default.png)
Add a nix flake to `Toolchain/` that wraps the existing nix derivation `Toolchain/serenity.nix`. This also comes with a lockfile making the nix developer enviornment setup more reproducible. We also update the documentation for "other builds" to mention the flake.
21 lines
444 B
Nix
21 lines
444 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; };
|
|
}
|
|
);
|
|
|
|
|
|
}
|