| Commit message (Collapse) | Author | Age |
... | |
| |
| |
| |
| |
| |
| | |
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.
|
|\|
| |
| |
| |
| | |
The kde-5 stuff still didn't merge well.
I hand-fixed what I saw, but there may be more problems.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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).
|
| |
| |
| |
| |
| |
| | |
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.
|
|\|
| |
| |
| | |
Let's get rid of those merge conflicts.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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).
|
|\| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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).
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\|
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
env-vars is a debugging aid, see
https://github.com/NixOS/nix/commit/3e5dbb24337d8416cfe46484eb2692811546a9c1
for a rationale for this change.
|
|\|
| |
| |
| | |
Many non-conflict problems weren't (fully) resolved in this commit yet.
|
| |
| |
| |
| |
| |
| | |
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).
|
| |
| |
| |
| |
| |
| |
| |
| | |
Previously saying
buildInputs = [ "bla" ];
was quietly ignored. Now it's a fatal error.
|
| |
| |
| |
| |
| | |
This prevents "closeNest: command not found" messages if setup fails
early.
|
| |
| |
| |
| | |
Partial fix for #7524.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\|
| |
| |
| |
| |
| |
| |
| | |
- 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.
|
| | |
|
| |
| |
| |
| |
| | |
On Darwin, "chmod -f" does not suppress an error message if the file
doesn't exist. So just check if the file exists.
|
| |\
| | |
| | | |
stdenv substitute: avoid using a temporary file
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- 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)
|
| |/
| |
| |
| | |
Nix already shows what paths are being built.
|
| |\ |
|
| | |
| | |
| | |
| | |
| | | |
Previously it was set to /run/current-system/sw/sbin/nologin or
similar.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| |/
| |
| |
| | |
Accidentally (?) lost in e3875297fac671f20feb803306e7c55789ac749e.
|
| |
| |
| |
| | |
Don't preserve hardlinks, and instead use reflinks if they're available.
|
| | |
|
| |
| |
| |
| | |
[Bjørn: rationale is portability, "echo -n" isn't in POSIX]
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
This allows envHooks and crossEnvHooks to be handled using the regular
hook mechanism.
|
|
|
|
|
|
|
|
|
|
| |
Just use bash arrays directly. I.e.
addHook preConfigure myPreConfigure
is now
preConfigureHooks+=(myPreConfigure)
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
unpackCmd is now a regular hook, so there can be multiple functions
hooking into it.
|
|
|
|
|
|
| |
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.
|
| |
|