Skip to content

Commit

Permalink
expose lib as a functor
Browse files Browse the repository at this point in the history
This allows calling the nix-filter input directly. Eg:

    outputs = { self, nix-filter }:
      ...
      src = nix-filter {
        root = self;

        includes = [
          ./dir
        ];
      };
  • Loading branch information
zimbatm committed Sep 16, 2023
1 parent d6381c4 commit 41fd48e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
description = "nix-filter";

outputs = { self }: {
__functor = self.lib.__functor;
lib = import ./default.nix;
overlays.default = _: _: { nix-filter = self.lib; };
};
Expand Down

0 comments on commit 41fd48e

Please sign in to comment.