Skip to content

Relocatable data-files: support #1262

Closed
@lukexi

Description

@lukexi

I have some packages that require some accompanying data to be placed alongside any executables that depend on them; in a few cases that's some closed-source DLLs, and in another it's some shader files. I could use file-embed as a workaround for the shaders, but the DLLs aren't as straightforward.

cabal-install has the ability to specify where the data-files: of a package are placed via --datadir and --datasubdir, which I think would solve this nicely alongside the existing --local-bin-dir option?

(I haven't needed this until I switched to Stack, but I assume cabal-install's --datadir flag works alongside the Paths_foo module system to enable use of getDataFileName regardless of installation destination, for the shader example case)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions