Skip to content

Commit

Permalink
drop perSystem from publisherArgs... (#58)
Browse files Browse the repository at this point in the history
As this was broken from the start and is at least non-trivial to fix,
if it possible at all. Happy about suggestions and/or PRs on how to
re-introduce it in a known broken way.
  • Loading branch information
phaer authored Feb 3, 2025
1 parent d9d31d0 commit 04e98eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions docs/folder-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,9 @@ If a module is wrapped in a function that accepts one (or more) of the following

* `flake`
* `inputs`
* `perSystem`

Then that function is called before exposing the module as an output.
This allows modules to refer to the flake where it is defined, while the module arguments
`flake`, `inputs` and `perSystem` refer to the flake where the module is consumed. Those can
This allows modules to refer to the flake where it is defined, while the module arguments refer to the flake where the module is consumed. Those can
be but do not need to be the same flake.

### `package.nix`, `formatter.nix`, `packages/<pname>(.nix|/default.nix)`
Expand Down
1 change: 0 additions & 1 deletion lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ let

publisherArgs = {
inherit flake inputs;
inherit (flake) perSystem;
};

expectsPublisherArgs =
Expand Down

0 comments on commit 04e98eb

Please sign in to comment.