summary refs log tree commit diff
path: root/pkgs/stdenv/generic/setup.sh
Commit message (Collapse)AuthorAge
...
| * stdenv-linux: Ensure binutils comes before bootstrapTools in $PATHEelco Dolstra2016-02-28
| | | | | | | | | | | | Otherwise, when building glibc and other packages, the "strip" from bootstrapTools is used, which doesn't recognise some tags produced by the newer "ld" from binutils.
* | Merge master into closure-sizeVladimír Čunát2016-03-08
|\| | | | | | | | | The kde-5 stuff still didn't merge well. I hand-fixed what I saw, but there may be more problems.
| * stdenv: set SSL_CERT_FILE only if it isn't alreadyNikolay Amiantov2016-02-25
| |
| * Don't try to apply patchelf to non-ELF binariesEelco Dolstra2016-02-18
| |
| * stdenv: accept wider range of $configureScript optionsVladimír Čunát2016-02-03
| | | | | | | | | | | | | | | | | | | | | | Fixes #12632. I think it's better to quote this variable in general, because it is common and even documented to pass space-separated commands in there. The greps should just fail in that case and `if` won't proceed which seems fine for such cases, and it's certainly better than passing additional unintended parameters to grep (which was happening all the time before).
| * Move setting $SSL_CERT_FILE to stdenvEelco Dolstra2016-02-03
| | | | | | | | | | | | Doing it in an openssl setup hook only works if packages have openssl as a build input - it doesn't work if they're using a program linked against openssl.
* | Merge recent 'staging' into closure-sizeVladimír Čunát2016-02-03
|\| | | | | | | Let's get rid of those merge conflicts.
| * defaultUnpack: Preserve timestamps when copying filesEelco Dolstra2016-01-26
| | | | | | | | | | | | | | | | | | Commit 6d928ab684327e0eeb1bf6cd889d57ca7127e8a7 changed this to not preserve timestamps. However, that results in non-determinism; in particular, it gives us a broken $SOURCE_DATE_EPOCH (especially for everything using fetchFromGitHub). Builds affected by timestamps < 1980 should be fixed in some other way (e.g. changing the timestamp to some fixed date > 1980).
* | Merge branch 'staging' into closure-sizeVladimír Čunát2016-01-19
|\|
| * Set a fallback default value for SOURCE_DATE_EPOCHEelco Dolstra2016-01-05
| | | | | | | | | | | | | | | | | | | | | | This is used by some build tools to provide reproducible builds. See https://reproducible-builds.org/specs/source-date-epoch/ for more info. Later, we'll want to set this to a more intelligent value (such as the most recent mtime of any source file).
| * stdenv/setup.sh: don't skip post-hooks (close #12032)Vladimír Čunát2016-01-05
| | | | | | | | | | | | | | | | | | | | So far if no configure script is found or no makefile, the rest of the phase is skipped, *including* post-hooks. I find that behavior unexpected/unintuitive. Earlier version of this patch had problems due to me assuming that $configureScript is always a simple path, but that turned out to be false in many cases, e.g. perl.
* | Merge staging into closure-sizeVladimír Čunát2015-11-20
|\| | | | | | | | | | | The most complex problems were from dealing with switches reverted in the meantime (gcc5, gmp6, ncurses6). It's likely that darwin is (still) broken nontrivially.
| * Don't fail if env-vars cannot be written toWout Mertens2015-11-04
| | | | | | | | | | | | env-vars is a debugging aid, see https://github.com/NixOS/nix/commit/3e5dbb24337d8416cfe46484eb2692811546a9c1 for a rationale for this change.
* | Merge commit staging+systemd into closure-sizeVladimír Čunát2015-10-03
|\| | | | | | | Many non-conflict problems weren't (fully) resolved in this commit yet.
| * Force Nixpkgs rebuildEelco Dolstra2015-08-03
| | | | | | | | | | | | Gratuitous change to force Hydra to rebuild Nixpkgs after some derivations had their references corrupted by a Hydra bug (https://github.com/NixOS/hydra/commit/ff3f5eb4d8751243a1f7e738a5124c650e541aca).
| * Barf on non-existant build inputsEelco Dolstra2015-06-15
| | | | | | | | | | | | | | | | Previously saying buildInputs = [ "bla" ]; was quietly ignored. Now it's a fatal error.
| * Define closeNest before exitHandlerEelco Dolstra2015-06-15
| | | | | | | | | | This prevents "closeNest: command not found" messages if setup fails early.
| * Ensure that errexit is honoured in hooksEelco Dolstra2015-05-13
| | | | | | | | Partial fix for #7524.
* | stdenv multiple-outputs: change propagation rulesVladimír Čunát2015-04-18
| | | | | | | | | | | | | | Now development stuff is propagated from the first output, and userEnvPkgs from the one with binaries. Also don't move *.la files (yet). It causes problems, and they're small.
* | Merge 'staging' into closure-sizeVladimír Čunát2015-04-18
|\| | | | | | | | | | | | | | | - there were many easy merge conflicts - cc-wrapper needed nontrivial changes Many other problems might've been created by interaction of the branches, but stdenv and a few other packages build fine now.
| * stdenv: Substitute correctly chmods instead of .tmp which never existsWilliam A. Kennington III2015-03-26
| |
| * substitute: Fix "No such file or directory" message on DarwinEelco Dolstra2015-03-24
| | | | | | | | | | On Darwin, "chmod -f" does not suppress an error message if the file doesn't exist. So just check if the file exists.
| * Merge pull request #5714 from vcunat/p/stdenv-substWout Mertens2015-01-23
| |\ | | | | | | stdenv substitute: avoid using a temporary file
| | * stdenv substitute: avoid using a temporary fileVladimír Čunát2015-01-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - IMO using a temporary is not needed here (anymore), - temporary at that location can cause a problem (in a specific case): for example, when using the substituteAll function from nixpkgs on a single file directly under /nix/store/ (or ./foo-file), the stdenv's substitute tries to create a temporary directly under /nix/store, which causes problems on chrooted darwin (according to @copumpkin earlier today on IRC)
| * | stdenv: Remove redundant "building ..." messageEelco Dolstra2015-01-12
| |/ | | | | | | Nix already shows what paths are being built.
| * Merge remote-tracking branch 'origin/bash-4.3' into stagingEelco Dolstra2014-11-16
| |\
| | * Ensure a correct value for $BASHEelco Dolstra2014-11-10
| | | | | | | | | | | | | | | Previously it was set to /run/current-system/sw/sbin/nologin or similar.
| | * substituteAll: Enumerate environment variables more reliablyEelco Dolstra2014-11-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Getting the names of all environment variables is tricky. The previous implementation easily got confused by multi-line variables. The new one is more reliable but not still not perfect. This works around a segfault in Bash 4.3, where the expression "${!var}" (where var="-9") crashes under certain conditions. http://hydra.nixos.org/build/16693445
| * | stdenv: Statically include the default build inputsEelco Dolstra2014-11-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise, stdenv won't have a reference to e.g. patchelf on Linux (because it was passed in by mkDerivation). This causes the installer tests to fail, because having "stdenv" in the installation CD closure is not enough to pull in all stdenv packages. http://hydra.nixos.org/build/16546643
| * | Fix running preHookEelco Dolstra2014-11-06
| |/ | | | | | | Accidentally (?) lost in e3875297fac671f20feb803306e7c55789ac749e.
| * stdenv: Prevent issues like #4266Wout Mertens2014-10-31
| | | | | | | | Don't preserve hardlinks, and instead use reflinks if they're available.
| * stdenv: Use "pipefail" in setup.shNikolay Amiantov2014-10-10
| |
| * stdenv: change 'echo -n' to 'printf "%s"'Nikolay Amiantov2014-10-09
| | | | | | | | [Bjørn: rationale is portability, "echo -n" isn't in POSIX]
| * stdenv: Fix handling spaces in 'substitute'Nikolay Amiantov2014-10-09
| |
| * stdenv: added escaping for patchesNikolay Amiantov2014-10-09
| |
| * stdenv: fail if the patch does not existNikolay Amiantov2014-10-09
| |
* | WIPVladimír Čunát2014-08-25
| |
* | stdenv: add first iteration of the multiout hookVladimír Čunát2014-08-24
| | | | | | | | | | | | Now it should contain *all* information from stdenv/setup.sh of the original mutiple-output branch. However, the configurability of the output paths is much greater.
* | stdenv/setup.sh: add $propagateIntoInputVladimír Čunát2014-08-24
|/ | | | | | | This is needed for multiple-output derivations, where it is desirable to propagate deps and setup-hooks into $dev instead of $out. Also drop an unused simple function which will not even make sense.
* stdenv: Put moving docs to $out/share in a separate setup hookEelco Dolstra2014-08-09
|
* fixupPhase: Fix making the outputs writableEelco Dolstra2014-08-09
|
* Allow passing arguments to hooksEelco Dolstra2014-08-09
| | | | | This allows envHooks and crossEnvHooks to be handled using the regular hook mechanism.
* Remove addHookEelco Dolstra2014-08-09
| | | | | | | | | | Just use bash arrays directly. I.e. addHook preConfigure myPreConfigure is now preConfigureHooks+=(myPreConfigure)
* stdenv: Don't use sed to build the setup scriptEelco Dolstra2014-08-09
|
* stdenv: Remove the special handling of gccEelco Dolstra2014-08-09
| | | | | | | Now gcc is just another build input, making it possible in the future to have a stdenv that doesn't depend on a C compiler. This is very useful on NixOS, since it would allow trivial builders like writeTextFile to work without pulling in the C compiler.
* stdenv: Move paxmark function to paxctl's setup hookEelco Dolstra2014-08-09
|
* stdenv: Move unzip support to unzip's setup hookEelco Dolstra2014-08-09
|
* stdenv: Make unpackFile extensible via the hook mechanismEelco Dolstra2014-08-09
| | | | | unpackCmd is now a regular hook, so there can be multiple functions hooking into it.
* unpackFile: Always copy directoriesEelco Dolstra2014-08-09
| | | | | | If $src refers to a directory, then always copy it. Previously, we checked the extension first, so if the directory had an extension like .tar, unpackPhase would fail.
* Factor out fixup phase stuff into separate setup hooksEelco Dolstra2014-08-09
|