hercules-ci / gitignore.nix

Nix functions for filtering local git sources
The Unlicense
242 stars 19 forks source link

refactor(flake): add overlay output #54

Closed lovesegfault closed 2 years ago

lovesegfault commented 2 years ago

This should make it easier to use this from flakes, where users can just add this with their other overlays and have gitignoreSource show up in pkgs.

So this becomes possible:

{
  outputs = { self, fenix, gitignore, nixpkgs, sbt-derivation }:
  let
    pkgs = import nixpkgs {
      overlays = [ fenix.overlay gitignore.overlay sbt-derivation.overlay ];
    };
  in
  { };
}

As opposed to having to manually create an overlay that just does (_: _: inherit (gitignore.lib) gitignoreSource)

roberth commented 2 years ago

Thanks!