-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
Installation on Docker image (derived from ubuntu:18.04) does not set NIX_PATH #59370
Comments
For issues with or questions about Nix, please go to the Nix issue tracker. This tracker is for the Nixpkgs package set. |
You need to source: . nix-profile At least. See: So much for Docker. I covered some of Docker issues in https://youtu.be/hhgrCV_r7YE?t=7162. It is a Nix installer thing, I'd had supported it, covered all these reports, if my PR of new installer was merged NixOS/nix#1565, I informed and met with people that I am doing the installer, they anyway not merged my work and created a couple of installers more, now there are number of installers inside, and by that blocked the merge and my work and my support pretty much. I've made a report and even made a terraform testing setup (https://github.com/Anton-Latukha/nix-tests-terraform) to show that that installer works in 8 completely different Linux distributions in container restricted environment. |
But you would need to do |
If you serious - you can patch upstream with my code. Or look through the code of it to understand the install process and what you are having, inside it is very well structured and documented. |
Issue description
Version is 2.2.1. It's in a docker container derived from
ubuntu:18.04
.I can't run a number of the nix-related calls (e.g.
nix-env
to install Obsidian's obelisk project) because$NIX_PATH
is not properly set. I don't know what it's supposed to be set to, and I believe other things are not being properly set up by the installation script.Steps to reproduce
Installation is from source, because other modes of installation ran in to the same problem. I run
bootstrap.sh
(even though I believe it's not needed), then./configure
, thenmake
andmake install
.Technical details
The text was updated successfully, but these errors were encountered: