Refer to data-files from parent directory
#352
Unanswered
shivaraj-bh
asked this question in
Q&A
Replies: 2 comments 1 reply
|
Such a project structure is not compatible with hackage either, if that is a goal for you. |
1 reply
You don't need to duplicate it in git repo, but you can copy it as part of the source derivations, by overriding: haskell-flake/nix/modules/project/packages/package.nix Lines 16 to 24 in 66dcee2 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
For a project with the following structure:
. ├── cabal.project ├── data.txt ├── pkg1 │ └── pkg1.cabal └── pkg2 └── pkg2.cabalIIUC sub-packages cannot access files in parent directory by design, what are the alternatives that doesn’t involve copying the
data.txtto every sub-package?All reactions