Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get relative path of NIX_DATA_DIR #2700

Closed
wants to merge 1 commit into from

Conversation

matthewbauer
Copy link
Member

This is useful when you want Nix to look in a relative path at
runtime. For instance, you can make Nix work without a Nix store dir
by building like this:

$ make datadir=./share

and you just need “share” to be in the same directory as the Nix
binary. If statically linked properly, no references to $prefix should
remain.

This is useful when you want Nix to look in a relative path at
runtime. For instance, you can make Nix work without a Nix store dir
by building like this:

$ make datadir=./share

and you just need “share” to be in the same directory as the Nix
binary. If statically linked properly, no references to $prefix should
remain.
@matthewbauer
Copy link
Member Author

Nevermind, I can just set NIX_DATA_DIR to $PWD/NIX_DATA_DIR at run time.

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.

None yet

1 participant