Skip to content
Discussion options

You must be logged in to vote

The packages are meant to be a flat set of packages according to nix flake check and some other sources. Not much we can do about that. legacyPackages doesn't have any restrictions like that, so you could use that attribute instead.

Turns out bundlers was already a thing; just didn't make it onto the docs site. fixed. It's probably not right for arbitrary builders though.

So flakes does not have great answers for this out of the box.
You could however create your own flake.lib and refer to the getSystem/withSystem module arguments for constructing system-dependent stuff inside of it.

Perhaps something like this:

# mkFlake module or imported flake parts module file
{ lib, flake-parts-lib, g…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mrtnvgr
Comment options

@roberth
Comment options

Answer selected by mrtnvgr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants