Skip to content

Conversation

@hamishmack
Copy link
Collaborator

New versions of srcOnly pass the prePatch hook in and we cd into the sub directory for the package in that hook. This means that the output includes only the package subdirectory.

We worked around this, but the work around breaks for older nixpkgs where prePatch is not passed.

This change replaces the use of srcOnly and instead uses the same trick as source so that the buildPhase is replaced and runs in the expected source directory (including and it should still include any sibling directories that have not been filtered).

New versions of `srcOnly` pass the `prePatch` hook in and we `cd` into the sub directory for the package in that hook.  This means that the output includes only the package subdirectory.

We worked around this, but the work around breaks for older nixpkgs where `prePatch` is not passed.

This change replaces the use of `srcOnly` and instead uses the same trick as source so that the `buildPhase` is replaced and runs in the expected source directory (including and it should still include any sibling directories that have not been filtered).
@hamishmack
Copy link
Collaborator Author

bors try

iohk-bors bot added a commit that referenced this pull request Jul 29, 2022
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jul 29, 2022

@hamishmack hamishmack merged commit 5341ac4 into master Jul 29, 2022
@iohk-bors iohk-bors bot deleted the hkm/subdir-fix branch July 29, 2022 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants