Remix.run Logo
Siyo 7 hours ago

I wonder if something equivalent exists for loading other kinds of assets. Take files that would normally live under `/usr/share`. References to these files are typically hardcoded with an absolute path as well. It's usually possible to relocate them at build time by specifying a different absolute prefix, but making them relative the conventional way would likely require patching.

aboardRat4 2 hours ago | parent [-]

You can always set "RESOURCE_PATH" and load your files from there.

Siyo 42 minutes ago | parent [-]

Sure, assuming this is your own software. The context of the article is on working towards a general approach to relocatable nix binaries so I don't think that's going to scale across nixpkgs.