about summary refs log tree commit diff
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2017-12-08 replace lolcat with nix-infoGraham Christensen1-1/+1
2017-12-08 darwin installer: fix on High SierraGraham Christensen1-6/+20
2017-11-20 install-darwin-multi-user.sh: Remove superfluous nix.conf settingsEelco Dolstra1-8/+0
2017-10-16 Pull nix-profile-daemon from 1.11Shea Levy2-0/+55
2017-10-12 Merge pull request #1591 from shlevy/darwin-installer-no-sudo-iEelco Dolstra1-3/+3
darwin installer: Fix on systems where sudo -i is disabled.
2017-10-05 darwin installer: Fix on systems where sudo -i is disabled.Shea Levy1-3/+3
2017-10-02 install-darwin-multi-user: relax assumption checkAnthony Cowley1-1/+1
The installer will error out if a user's shell configuration includes any mention of ~nix-profile~, even if this is in a comment. This change is designed to do the bare minimum to ignore lines beginning with a `#`.
2017-08-31 Rename a few configuration optionsEelco Dolstra1-3/+3
In particular, drop the "build-" and "gc-" prefixes which are pointless. So now you can say nix build --no-sandbox instead of nix build --no-build-use-sandbox
2017-07-30 Replace Unicode quotes in user-facing strings by ASCIIJörg Thalheim1-2/+2
Relevant RFC: NixOS/rfcs#4 $ ag -l | xargs sed -i -e "/\"/s/’/'/g;/\"/s/‘/'/g"
2017-07-14 Rename PINCH_ME_IM_SILLY to ALLOW_PREEXISTING_INSTALLATIONGraham Christensen1-3/+3
2017-07-14 If there is no TTY, also skip verbose sudo messagesGraham Christensen1-3/+33
2017-07-14 Ensure PINCH_ME_IM_SILLY allows a /nix/store to stick around between buildsGraham Christensen1-5/+3
Also output in the status report that the user is very silly
2017-07-14 Assume yes if we have no TTYGraham Christensen1-0/+11
Starve the TTY of input to ensure this works, but provide yes to the current installer to handle the current broken case.
2017-07-14 Address feedback around printf & execGraham Christensen2-2/+2
2017-07-14 Don't install a second nix after the initial installation, and the rsync ↵Graham Christensen1-4/+1
change fixes a bug hidden by the nix replacement where the store files were being owned by the installing user due to rsync's -a implying -og.
2017-07-14 Clean up issues around uninstall directions, and only showGraham Christensen1-29/+77
relevant directions
2017-07-14 Prompt for sudo before validating assumptions, and check ourselves for ↵Graham Christensen1-25/+13
root-owned files instead of making a scary warning.
2017-07-14 multi-user install: move the profile in to the nix etc/profiles.d outputGraham Christensen1-68/+1
2017-07-14 Switch to a fancy multi-user installer on DarwinGraham Christensen2-7/+825
2017-05-07 nix-profile.sh: remove sbin from PATHJörg Thalheim1-1/+1
sbin is a symlink to bin. profiles only contains packages, which have this symlink. It is a subset of bin. related to https://github.com/NixOS/nixpkgs/pull/25550
2017-02-07 Merge branch 'nix-copy-closure-c++' of https://github.com/shlevy/nixEelco Dolstra2-109/+1
2017-02-07 Remove build-remote.pl.inEelco Dolstra2-277/+0
2017-01-25 bail out if macOS 10.9 or lower is used during installerDomen Kožar1-0/+7
2017-01-20 nix-copy-closure: Implement in C++.Shea Levy2-109/+1
Tests fail currently because the database is not given proper hashes in the VM
2016-12-19 shellcheck scripts/install-nix-from-closure.shJames Broadhead1-9/+9
2016-11-26 Revert "Get rid of unicode quotes (#1140)"Eelco Dolstra3-8/+8
This reverts commit f78126bfd6b6c8477fcdbc09b2f98772dbe9a1e7. There really is no need for such a massive change...
2016-11-25 Get rid of unicode quotes (#1140)Guillaume Maudoux3-8/+8
2016-11-03 installation: allow profile modification to be skipped (#1072)Manav Rathi1-13/+17
The current behaviour modifies the first writeable file from amongst .bash_profile, .bash_login and .profile. So .bash_profile (if it is writable) would be modified even if a user has already sourced nix.sh in, say, .profile. This commit introduces a new environment variable, NIX_INSTALLER_NO_MODIFY_PROFILE. If this is set during installation, then the modifications are unconditionally skipped. This is useful for users who have a manually curated set of dotfiles that they are porting to a new machine. In such scenarios, nix.sh is already sourced at a place where the user prefers. Without this change, the nix installer would insist on modifying .bash_profile if it exists. This commit also add documentations for both the current behaviour and the new override.
2016-10-13 SSL_CERT_FILE -> NIX_SSL_CERT_FILEEelco Dolstra2-9/+9
This prevents collisions with the "native" OpenSSL, in particular on OS X. Fixes #921.
2016-08-31 Merge branch 'nix-build-c++'Shea Levy2-361/+0
2016-08-31 Merge branch 'nix-channel-c++'Shea Levy2-229/+0
2016-08-13 remove old traces of resolve-system-dependenciesJude Taylor2-129/+0
2016-08-11 nix-channel: implement in c++Shea Levy2-229/+0
2016-08-10 Nuke nix-push.Shea Levy2-297/+0
Rarely used, nix copy replaces it.
2016-08-10 Remove download-from-binary-cache.pl.in.Shea Levy1-632/+0
We have BinaryCacheStore now
2016-08-10 Remove scripts/show-duplication.plShea Levy1-73/+0
Was added in 2006 to "measure the cost of the Nix approach". Given that it uses /usr/bin/perl, I think this is safe to remove.
2016-08-10 Remove nix-install-package.Shea Levy2-128/+0
Refs #831
2016-08-09 nix-build: Port to c++Shea Levy2-361/+0
This was a dumb line-for-line rewrite, because nix build/nix run/etc. will replace it.
2016-07-29 Set $MANPATH (#1005)Alexey Shmalko1-0/+4
Currently, man has issues finding man pages for Nix-installed application (also, `nix-env --help` doesn't work). The issue is caused by custom `$MANPATH` set by my system. That makes man use it instead of searching in default location. Either of next lines workaround the issue: ```sh unset MANPATH export MANPATH=$HOME/.nix-profile/share/man:$MANPATH ``` This patch adds the later line to the `nix-profile.sh` if user has `MANPATH` set. (Not clearing `MANPATH` as that would be disrespect of user's preferences.) As a side-effect, host's man might find man pages installed by Nix.
2016-07-24 Merge branch 'find-runtime-roots-c++'Shea Levy2-81/+0
2016-07-21 resolve-system-dependencies.pl: Only install on darwinShea Levy1-2/+7
2016-07-21 find-runtime-roots: fold into gc.ccShea Levy2-81/+0
2016-06-02 LocalStore: Allow the physical and logical store directories to differEelco Dolstra1-103/+0
This is primarily to subsume the functionality of the copy-from-other-stores substituter. For example, in the NixOS installer, we can now do (assuming we're in the target chroot, and the Nix store of the installation CD is bind-mounted on /tmp/nix): $ nix-build ... --option substituters 'local?state=/tmp/nix/var&real=/tmp/nix/store' However, unlike copy-from-other-stores, this also allows write access to such a store. One application might be fetching substitutes for /nix/store in a situation where the user doesn't have sufficient privileges to create /nix, e.g.: $ NIX_REMOTE="local?state=/home/alice/nix/var&real=/home/alice/nix/store" nix-build ...
2016-05-31 Fix reference to $NIX_LINKEelco Dolstra1-1/+1
2016-05-31 nix-profile.sh: Don't pollute the environmentEelco Dolstra1-5/+4
2016-05-31 nix-copy-closure / build-remote.pl: Disable signature checkingEelco Dolstra2-2/+2
This restores the Nix 1.11 behaviour.
2016-05-18 Fix `??` in Nix warning messageGabriel Gonzalez1-1/+1
Nix sometimes outputs a warning message like this: ``` directory /nix does not exist; creating it by running ‘?? using sudo ``` ... when it really meant to output something that looked like this: ``` directory /nix does not exist; creating it by running 'mkdir -m 0755 /nix && chown gabriel /nix' using sudo ``` The reason why is due to some bizarre behavior in Bash where it will translate anything of the form `$x’` to `??`, leading to the incorrect warning message. I don't know what is the origin of this Bash behavior, but the easiest fix is to just use ASCII quotes instead of unicode quotes.
2016-05-04 Remove OpenSSL-based signingEelco Dolstra2-12/+4
2016-05-03 Merge pull request #883 from sheenobu/bugfix/ruby_shebangEelco Dolstra1-6/+20
Workaround to support ruby as an interpreter
2016-04-29 Eliminate the substituter mechanismEelco Dolstra1-7/+1
Substitution is now simply a Store -> Store copy operation, most typically from BinaryCacheStore to LocalStore.