- Jun 23, 2021
-
-
Jan Tojnar authored
This is only rudimentary support as allowed by `NIX_GET_COMPLETIONS`. In the future, we could use complete’s `--wraps` argument to autocomplete arguments for programs after `nix shell -c`.
-
Alyssa Ross authored
Previously, the build system used uname(1) output when it wanted to check the operating system it was being built for, which meant that it didn't take into-account cross-compilation when the build and host operating systems were different. To fix this, instead of consulting uname output, we consult the host triple, specifically the third "kernel" part. For "kernel"s with stable ABIs, like Linux or Cygwin, we can use a simple ifeq to test whether we're compiling for that system, but for other platforms, like Darwin, FreeBSD, or Solaris, we have to use a more complicated check to take into account the version numbers at the end of the "kernel"s. I couldn't find a way to just strip these version numbers in GNU Make without shelling out, which would be even more ugly IMO. Because these checks differ between kernels, and the patsubst ones are quite fiddly, I've added variables for each host OS we might want to check to make them easier to reuse.
-
- Jun 13, 2021
-
-
Matthew Bauer authored
Installed site-functions need to be run directly, not via compdef.
-
- Jun 01, 2021
-
-
Chua Hou authored
-
- May 04, 2021
-
-
Anders Kaseorg authored
Before: UID PID PPID C STIME TTY TIME CMD 0 1737 1 0 2:28PM ?? 0:00.00 /bin/sh -c /bin/wait4path /nix/var/nix/profiles/default/bin/nix-daemon && /nix/var/nix/profiles/default/bin/nix-daemon 0 1739 1737 0 2:28PM ?? 0:00.05 /nix/var/nix/profiles/default/bin/nix-daemon After: UID PID PPID C STIME TTY TIME CMD 0 1763 1 0 2:29PM ?? 0:00.05 /nix/var/nix/profiles/default/bin/nix-daemon Signed-off-by:
Anders Kaseorg <andersk@mit.edu>
-
- Oct 18, 2020
-
-
Eelco Dolstra authored
-
- Oct 09, 2020
-
-
regnat authored
Based on @clhodapp's suggestion in https://github.com/spwhitt/nix-zsh-completions/issues/32#issuecomment-705315356 and adapted to use the description of the completions
-
regnat authored
Make nix output completions in the form `completion\tdescription`. This can't be used by bash (afaik), but other shells like zsh or fish can display it along the completion choices
-
- Sep 16, 2020
-
-
Marwan Aljubeh authored
Mac OS multi-user installations are currently broken because all requests made by nix-daemon to the binary cache fail with: ``` unable to download ... Problem with the SSL CA cert (path? access rights?) (77). ``` This change ensures that the nix-daemon knows where to find the SSL CA cert file. Fixes #2899 and #3261.
-
- Jun 04, 2020
-
-
Eelco Dolstra authored
-
- May 11, 2020
-
-
Eelco Dolstra authored
-
- May 10, 2020
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
- Oct 09, 2019
-
-
Dan Callahan authored
We're calling `wait4path` on the full, resolved `@bindir@/nix-daemon` path. That means we're hardcoding something like: /bin/wait4path /nix/store/zs9c5xhp3zv9p23qnjxp87nl5injsi1i-nix-2.3/bin/nix-daemon && /nix/var/nix/profiles/default/bin/nix-daemon That seems unnecessarily fragile. It might be better to wait4path on the path we intend to call.
-
Matthew Bauer authored
On Catalina, the /nix filesystem might not be mounted at start time. To avoid this service not starting, we need to keep the launch agent outside of the Nix store. A wait4pid will hold for our /nix dir to be mounted. Fixes #3125.
-
- Sep 02, 2019
-
-
Matthew Bauer authored
launchd has some weird syntx. Apparently the program needs to be in the ProgramArguments, as Program appears to be ignored.
-
- Aug 27, 2019
-
-
Matthew Bauer authored
When using a volume, the nix-daemon path may not exist. To avoid this issue, we must use the wait4path tool. This should solve one of the issues in multi-user on macOS Catalina.
-
Piotr Szubiakowski authored
Signed-off-by:
Piotr Szubiakowski <pszubiak@eso.org>
-
- Feb 09, 2019
-
-
Daiderd Jordan authored
Since macOS 10.14 this has become an error, causing problems if the nix-daemon loads nix during substitution (this is a forked process). Workaround for #2523.
-
- Jun 21, 2018
-
-
https://github.com/NixOS/dockerPeter Simons authored
We have automated builds at https://hub.docker.com/r/nixos/nix/ now. The master branch of the "docker" repository is available as "latest". Branches that match the regular expression "^[0-9.]+$" are pushed to the tag that corresponds to their branch name. Other branches are ignored.
-
- Jun 06, 2018
-
-
Lorenzo Manacorda authored
-
- May 08, 2018
-
-
Domen Kožar authored
-
Domen Kožar authored
-
Domen Kožar authored
-
Domen Kožar authored
-
- Mar 19, 2018
-
-
Ben Challenor authored
-
- Mar 18, 2018
-
-
Ben Challenor authored
-
- Feb 28, 2018
-
-
Daiderd Jordan authored
Without this the daemon won't be restarted if the process ever dies, for example when sending a SIGHUP to reload nix.conf.
-
- Oct 07, 2017
-
-
Peter Simons authored
The path /root/.nix-profile is a sym-link to /nix/var/nix/profiles/default. The latter path, however, works for everyone while the former path works only for root, so we prefer the public path whenever possible.
-
- Sep 11, 2017
-
-
Peter Simons authored
- Use the latest Nix version 1.11.14. - Attempts to download the Nix installation tarball from http://nixos.org redirect to https these days, which wget doesn't support unless OpenSSL is available. - Use addgroup and adduser commands to create the Nix build users. - Link the Nix profile script into /etc/profile.d, where it's run automatically. - Dropped installation of bash and tar. Neither tool is essential for running Nix. Use the command "docker build -t nix . && docker run -it --rm nix sh -" to build and run the Nix docker container.
-
- Aug 20, 2017
-
-
Matthew Bauer authored
This removes the file nix-mode.el from Nix. The file is now available within the repository https://github.com/NixOS/nix-mode. Fixes #662 Fixes #1040 Fixes #1054 Fixes #1055 Closes #1119 Fixes #1419 NOTE: all of the above should be fixed within NixOS/nix-mode. If one of those hasn’t please reopen within NixOS/nix-mode and not within NixOS/nix.
-
- Jun 12, 2017
-
-
Eelco Dolstra authored
This is mostly to ensure that when Nix is started on macOS via a launchd service or sshd (for a remote build), it gets a certificate bundle.
-
- May 05, 2017
-
-
Eelco Dolstra authored
-
- Apr 29, 2017
-
-
Jörg Thalheim authored
Otherwise starting nix-daemon fails ● nix-daemon.service - Nix Daemon Loaded: loaded (/nix/store/mnf00a6gc55xl47smk0b32gmi7xpvlfp-nix-1.12pre5308_2f21d522/lib/systemd/system/nix-daemon.service; enabled; vendor preset: enabled) Drop-In: /nix/store/m2rgjp71n4kyp8j5fxgbrlv13scd5vvv-system-units/nix-daemon.service.d └─overrides.conf Active: failed (Result: exit-code) since Sat 2017-04-29 11:29:21 CEST; 9s ago Process: 7299 ExecStart=nix-daemon --daemon (code=exited, status=1/FAILURE) Main PID: 7299 (code=exited, status=1/FAILURE) CPU: 19ms ... systemd[1]: Started Nix Daemon. ... nix-daemon[7299]: error: $XDG_CONFIG_HOME and $HOME are not set ... systemd[1]: nix-daemon.service: Main process exited, code=exited, status=1/FAILURE ... systemd[1]: nix-daemon.service: Unit entered failed state. ... systemd[1]: nix-daemon.service: Failed with result 'exit-code'. ... systemd[1]: nix-daemon.service: Start request repeated too quickly. ... systemd[1]: Failed to start Nix Daemon. ... systemd[1]: nix-daemon.service: Failed with result 'exit-code'.
-
- Mar 11, 2017
-
-
Domen Kožar authored
-
- Mar 05, 2017
-
-
Shea Levy authored
-
- Oct 13, 2016
-
-
Eelco Dolstra authored
This prevents collisions with the "native" OpenSSL, in particular on OS X. Fixes #921.
-
- Aug 31, 2016
-
-
Eelco Dolstra authored
Nix requires either $HOME or $XDG_CACHE_HOME to be set.
-
- Aug 12, 2016
-
-
Eelco Dolstra authored
Otherwise in particular https://cache.nixos.org won't work in the daemon.
-
- Aug 04, 2016
-
-
Aneesh Agrawal authored
* Dockerfile: add GNU tar native dependency `builtins.fetchTarball` requires GNU tar to be available in the $PATH in order to unpack the fetched tarball (there is a FIXME comment for this), which Alpine does not ship by default (it ships BusyBox tar). * Dockerfile: add GNU bash native dependency `nix-shell` defaults to invoking `bash` from the $PATH for the subshell. In theory this can be overriden with the NIX_BUILD_SHELL environment variable, but this does not work properly. `nix-shell` generates and passes a script (`$rcFile`) to be executed by the subshell which uses bashisms (`source` and `shopt`). Additionally, in interactive mode, `nix-shell` passes the `--rcfile` argument to the shell, which is another bashism. Because `bash` is thus de-facto required, add `bash` as a native package dependency to make it available for `nix-shell`.
-