2022-12-12 14:32:40 +03:00
|
|
|
{
|
|
|
|
inputs = {
|
2023-04-03 16:11:38 +03:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
2022-12-12 14:32:40 +03:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
|
2023-04-03 16:11:38 +03:00
|
|
|
outputs = { nixpkgs, flake-utils, ... }:
|
2023-04-03 16:40:55 +03:00
|
|
|
let mkWd2 = import ./wd2.nix; in
|
2022-12-12 14:32:40 +03:00
|
|
|
{
|
|
|
|
overlays = {
|
|
|
|
default = final: prev: {
|
|
|
|
wd2 = prev.callPackage mkWd2 { };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
} //
|
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
inherit (builtins) mapAttrs;
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
|
2023-04-03 16:11:38 +03:00
|
|
|
wd2 = pkgs.callPackage mkWd2 { };
|
2022-12-12 14:32:40 +03:00
|
|
|
|
|
|
|
mkApp = drv: flake-utils.lib.mkApp { inherit drv; };
|
|
|
|
packages = {
|
|
|
|
inherit wd2;
|
|
|
|
default = wd2;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
check = packages;
|
|
|
|
|
|
|
|
inherit packages;
|
|
|
|
|
|
|
|
apps = mapAttrs (name: mkApp) packages;
|
|
|
|
});
|
|
|
|
}
|