about summary refs log tree commit diff
path: root/pkgs/stdenv
Commit message (Collapse)AuthorAge
* make-bootstrap-tools: fix #13629: glibc problemsVladimír Čunát2016-03-03
| | | | On x86_64-linux glibc started to use linker scripts more extensively.
* Fix "nix" stdenv (close #13554)Danny Wilson2016-02-28
| | | | Broken by changes introduced in d96893647de5c519c458c1254f043f2d67d9b29c
* fetchurlBoot: Use Nix's builtin fetchurl functionEelco Dolstra2016-02-27
| | | | | This removes the need for curl in bootstrapTools, and enables https for bootstrap tarballs.
* stdenv: set SSL_CERT_FILE only if it isn't alreadyNikolay Amiantov2016-02-25
|
* stdenvLinux: Use bash instead of sh from bootstrapToolsEelco Dolstra2016-02-24
| | | | | | | "sh" is also bash, but invoking it as "sh" disables certain features like process substitution. Closes #13395.
* Don't try to apply patchelf to non-ELF binariesEelco Dolstra2016-02-18
|
* bootstrap tools: have curl without http2 supportVladimír Čunát2016-02-17
| | | | | | I assume there's not much use for it during bootstrapping. This fixes them as well, as curl was compiled against libnghttp2 but the lib wasn't copied to the bootstrap tools.
* 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.
* 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).
* linux stdenv bootstrap: avoid building grep twiceVladimír Čunát2016-01-25
| | | | | It's perfectly enough when we use the bootstrapped grep everywhere except the one put into the final stdenv and final pkgs.
* Linux stdenv update: pass gnugrep to cc-wrapperAnthony Cowley2016-01-24
|
* cc-wrapper: fix on darwinAnthony Cowley2016-01-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | The ld-wrapper.sh script calls `readlink` in some circumstances. We need to ensure that this is the `readlink` from the `coreutils` package so that flag support is as expected. This is accomplished by explicitly setting PATH at the top of each shell script. Without doing this, the following happens with a trivial `main.c`: ``` nix-env -f "<nixpkgs>" -iA pkgs.clang $ clang main.c -L /nix/../nix/store/2ankvagznq062x1gifpxwkk7fp3xwy63-xnu-2422.115.4/Library -o a.out readlink: illegal option -- f usage: readlink [-n] [file ...] ``` The key element is the `..` in the path supplied to the linker via a `-L` flag. With this patch, the above invocation works correctly on darwin, whose native `/usr/bin/readlink` does not support the `-f` flag. The explicit path also ensures that the `grep` called by `cc-wrapper.sh` is the one from Nix. Fixes #6447
* Merge branch 'master' into stagingVladimír Čunát2016-01-18
|\
| * stdenv-darwin: add parent attribute to bootstrapDan Peebles2016-01-16
| | | | | | | | | | This makes it far easier than before to hit/test early stages of the stdenv bootstrap.
* | Set SOURCE_DATE_EPOCH to latest source fileEelco Dolstra2016-01-05
| | | | | | | | | | This provides a timestamp that's more useful than 1970-01-01 yet still deterministic.
* | 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).
* | Merge branch 'master' into stagingVladimír Čunát2016-01-05
|\|
| * stdenv-darwin: allow easier testing of bootstrap toolsDan Peebles2016-01-03
| | | | | | | | | | | | | | This un-hardcodes the bootstrap tools passed into the Darwin stdenv and thus allows us to quickly iterate on improving the design of the full bootstrap process. We can easily change the contents of the bootstrap tools and evaluate an entire bootstrap all the way up to real packages.
| * stdenv-darwin: rename folder and associated attributeDan Peebles2016-01-03
| | | | | | No point in calling it pure-darwin anymore. It's the only stdenv we have
| * stdenv-darwin: kill old impure Darwin stdenvDan Peebles2016-01-03
| | | | | | | | I'll be moving the other one over it next commit (I split it into two to improve git's rename detection)
* | Merge #10816: improve FreeBSD supportVladimír Čunát2016-01-05
|\ \
| * | FreeBSD: undo removal of Solaris and remove changes to native stdenv now ↵janus2016-01-01
| | | | | | | | | | | | that FreeBSD has its own
| * | FreeBSD: improve bootstrapping, re-enable bdb for heimdaljanus2016-01-01
| | |
| * | FreeBSD: minor fixes, add notes and make stdenv more robustjanus2016-01-01
| | |
| * | FreeBSD: apr-util, cyrus-sasl, berkeley db, glib, gnutls, kerberos, ↵janus2016-01-01
| | | | | | | | | | | | libelf-freebsd, openldap, serf, guile, tet, shishi, gawk, gnugrep
| * | FreeBSD: patch expat, kerberos, libedit, ossp-uuid, lz4, sharutils, add ↵janus2016-01-01
| | | | | | | | | | | | libelf-freebsd
| * | FreeBSD: use own stdenv, do not run libtiff tests, use PIC for zlibjanus2016-01-01
| | |
| * | FreeBSD: use clang37janus2016-01-01
| | |
| * | FreeBSD patches for GNU m4, stdenv, miniupnpcjanus2016-01-01
| |/
| * stdenvBootstrapTools.x86_64-darwin: unbreakDan Peebles2015-12-28
| | | | | | | | | | This is blocking Hydra from updating the nixpkgs-unstable channel. Also add myself as a maintainer so Hydra can notify me if it breaks again
* | 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.
* allow{reason}: a bit more explicit error messageDomen Kožar2015-12-09
|
* Merge recent staging built on HydraVladimír Čunát2015-12-05
|\ | | | | | | | | | | http://hydra.nixos.org/eval/1231884 Only Darwin jobs seem to be queued now, but we can't afford to wait for that single build slave.
| * reintroduce impure host deps to all derivationsJude Taylor2015-11-21
| |
| * switch to zero underscores for sandbox profiles; remove generateFrameworkProfileJude Taylor2015-11-21
| |
| * use single underscore for sandboxProfileJude Taylor2015-11-21
| |
| * allow networking by default and remove it from derivationsJude Taylor2015-11-19
| |
| * remove useless muting lines; they interfere with debuggingJude Taylor2015-11-19
| |
| * use per-derivation sandbox profilesJude Taylor2015-11-19
| |
| * start on sandbox stuffJude Taylor2015-11-19
| |
* | stdenv: `licenseAllowed` -> `checkValidity`Profpatsch2015-11-27
|/ | | | | Rename and make it a true function (that can be re-used and could be moved to the library).
* 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 branch 'master.upstream' into staging.upstreamWilliam A. Kennington III2015-10-30
|\
| * Move stdenv-darwin bootstrap binaries to nixos.orgEelco Dolstra2015-10-29
| | | | | | | | These are taken from http://hydra.nixos.org/build/27002702.
| * rebase on eelco's bootstrap-tools changesJude Taylor2015-10-23
| |
| * update pure-darwin make-bootstrap-toolsJude Taylor2015-10-23
| |
| * Add stdenv bootstrap tools generation to release.nixEelco Dolstra2015-10-23
| |
* | Merge master into stagingVladimír Čunát2015-10-23
|\|
| * Drop unnecessary __impureHostDepsEelco Dolstra2015-10-21
| | | | | | | | | | <nix/fetchurl.nix> is a builtin derivation so it shouldn't need any host dependencies.