Home

Awesome

<!-- SPDX-FileCopyrightText: 2022 The Standard Authors SPDX-License-Identifier: Unlicense -->

Usage

# flake.nix
{
  inputs.incl.url = "github:divnix/incl";
  inputs.incl.inputs.nixpkgs.follows = "nixpkgs";

  outputs = { incl, self }: {
    filteredSource = incl self [
      ./README.md
      ./folder # and all below
    ];
  };
}

Debug Filter

# flake.nix
{
  inputs.incl.url = "github:divnix/incl";
  inputs.incl.inputs.nixpkgs.follows = "nixpkgs";

  outputs = { incl, self }: {
    filteredSource = (incl // {debug = true;}) self [
      ./README.md
      ./folder # and all below
    ];
  };
}