Refer to data-files
from parent directory
#352
Replies: 2 comments 1 reply
-
Such a project structure is not compatible with hackage either, if that is a goal for you. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
For a project with the following structure:
. ├── cabal.project ├── data.txt ├── pkg1 │ └── pkg1.cabal └── pkg2 └── pkg2.cabal
IIUC sub-packages cannot access files in parent directory by design, what are the alternatives that doesn’t involve copying the
data.txt
to every sub-package?Beta Was this translation helpful? Give feedback.
All reactions