wd2/flake.nix

36 lines
804 B
Nix

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { nixpkgs, flake-utils, ... }:
let mkWd2 = import ./wd2.nix; in
{
overlays = {
default = final: prev: {
wd2 = prev.callPackage mkWd2 { };
};
};
} //
flake-utils.lib.eachDefaultSystem (system:
let
inherit (builtins) mapAttrs;
pkgs = import nixpkgs { inherit system; };
wd2 = pkgs.callPackage mkWd2 { };
mkApp = drv: flake-utils.lib.mkApp { inherit drv; };
packages = {
inherit wd2;
default = wd2;
};
in
{
check = packages;
inherit packages;
apps = mapAttrs (name: mkApp) packages;
});
}