WIP: Windows support -- depends on Meson build system (#3160) #3185
Credits to @volth and @p01arst0rm for doing the real work. I just fixed some merge conflicts, fixed linux regressions, and unified the build systems. [Will delete @volth's temporary build system once I can get things building with https://github.com/NixOS/nixpkgs/pull/72366.]
The history is....wild, but if someone want's that fixed, I don't think it's worth fixing until this is closer to being ready.
The text was updated successfully, but these errors were encountered:
The profile present in PATH is not necessarily the actual profile location. User profiles are generally added as $HOME/.nix-profile in which case the indirect profile link needs to be resolved first. /home/user/.nix-profile -> /nix/var/nix/profiles/per-user/user/profile /nix/var/nix/profiles/per-user/user/profile -> profile-15-link /nix/var/nix/profiles/per-user/user/profile-14-link -> /nix/store/hyi4kkjh3bwi2z3wfljrkfymz9904h62-user-environment /nix/var/nix/profiles/per-user/user/profile-15-link -> /nix/store/6njpl3qvihz46vj911pwx7hfcvwhifl9-user-environment To upgrade nix here we want /nix/var/nix/profiles/per-user/user/profile-16-link instead of /home/user/.nix-profile-1-link. The latter is not a gcroot and would be garbage collected, resulting in a broken profile. Fixes NixOS#2175 (cherry picked from commit d85bb48)
E.g. $ nix upgrade-nix error: directory '/home/eelco/Dev/nix/inst/bin' does not appear to be part of a Nix profile instead of $ nix upgrade-nix error: '/home/eelco/Dev/nix/inst' is not a symlink (cherry picked from commit f08b14c)
…-user/... Also some cosmetic improvements. (cherry picked from commit 39f1722)
(cherry picked from commit 81d1385)
This is already done by coerceToString(), provided that the argument is a path (e.g. 'fetchGit ./bla'). It fixes the handling of URLs like firstname.lastname@example.org:owner/repo.git. It breaks 'fetchGit "./bla"', but that was never intended to work anyway and is inconsistent with other builtin functions (e.g. 'readFile "./bla"' fails). (cherry picked from commit 475a0a5)
(cherry picked from commit 0b7568f)
…t selected for Linux with systemd, and the bug about selinux (cherry picked from commit 4be7652)
This commit just moves the code, nothing leverages this yet.
I'll try to fix this upstream so we can revert this commit.
OK build instructions
Of course, I hope to automate all of this away.