Skip to content

Commit

Permalink
package-sets: init
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorBaker committed Jun 18, 2024
1 parent c82e661 commit 4dad44b
Show file tree
Hide file tree
Showing 2 changed files with 162 additions and 10 deletions.
151 changes: 141 additions & 10 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
ocaml-flake.url = "github:9glenda/ocaml-flake";
ocaml-flake.inputs.nixpkgs.follows = "nixpkgs";
ocaml-flake.inputs.treefmt-nix.follows = "treefmt-nix";
package-sets.url = "github:ConnorBaker/package-sets";
package-sets.inputs.nixpkgs.follows = "nixpkgs";
pre-commit-hooks-nix.url = "github:cachix/pre-commit-hooks.nix";
pre-commit-hooks-nix.inputs.nixpkgs.follows = "nixpkgs";
proc-flake.url = "github:srid/proc-flake";
Expand Down Expand Up @@ -264,6 +266,25 @@
'';
};

package-sets = {
flakeRef = "github:ConnorBaker/package-sets";
baseUrl = "https://github.com/ConnorBaker/package-sets";
intro = ''
Populate `packages` and `overlays` with ease.
[package-sets](https://github.com/ConnorBaker/package-sets) was born out of frustration with the manual
process of adding packages and overlays to a flake. If your flakes have more than a few packages,
dependencies between packages, or require Nixpkgs use a non-standard configuration, this module is for you.
## Limitations
A great deal of this module's functionality is based on `lib.packagesFromDirectoryRecursive`.
Unfortunately, [`flake.packages`](../options/flake-parts.html#opt-flake.packages) does not allow nested
attributes, so there are some limitations to what this module can do. See the notes on the options in
[`strategies`](#opt-packageSets.strategies) for more information.
'';
};

pre-commit-hooks-nix = {
baseUrl = "https://github.com/cachix/pre-commit-hooks.nix/blob/master";
intro = ''
Expand Down

0 comments on commit 4dad44b

Please sign in to comment.