Separate binaries and kdist in nix derivation into different outputs #35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When installing a nix derivation into a profile, the entire content of that output is placed into a profile directory. This currently included the generated kdist directories like, e.g.,
wasm-semantics,evm-semantics, etc.Due to this,
nixwill fail to install a derivation if another installed derivation provides conflicting files. This can happen, e.g., when installing bothkometandskribe. Nix will then throw an error like this:This PR fixes this by placing the kdist files in a separate nix derivation output
out. The binaries are placed in outputbin. This is properly following nix conventions of multiple-output derivations.A PR like this should be created in every RV nix repository, respectively. Though this already resolves every conflict between
skribeand another RV nix-packaged tool.