summary refs log tree commit diff
path: root/pkgs/stdenv
Commit message (Collapse)AuthorAge
* darwin make-bootstrap-tools: Document reason for special coreutilsTuomas Tynkkynen2016-07-09
| | | | | Discussion: https://github.com/NixOS/nixpkgs/commit/ac4958efc33322c9
* Revert "Revert "make-bootstrap-tools: try again to fix on Darwin""Tuomas Tynkkynen2016-07-09
| | | | | | | | This reverts commit debd401b0f8bedae10c368abd0cacf75ef7f6350. We must not use a single-binary build for the bootstrap since the common binary gains a dynamic linkage to gmp (due to 'factor' and 'expr' handling arbitrary-precision arithmetic).
* make-bootstrap-tools: try again to fix on DarwinVladimír Čunát2016-07-03
| | | | | For discussion see: https://github.com/NixOS/nixpkgs/commit/ac4958efc33322c9
* Revert "make-bootstrap-tools: try again to fix on Darwin"Vladimír Čunát2016-07-03
| | | | This reverts commit ac4958efc33322c9ae4252a1a239c33f21d8714c.
* make-bootstrap-tools: try again to fix on DarwinVladimír Čunát2016-07-03
| | | | I've got no way to test, so just trying a likely safer way blindly.
* make-bootstrap-tools*: fixup after #16406Vladimír Čunát2016-06-28
| | | | | | | | | | | Our coreutils now uses single-binary-build mode where, by default, simple shebang scripts are used for all the binaries. That doesn't work e.g. with the Linux unpacker which only handles standard binaries and symlinks. Let's use the symlinked mode instead for boostrapping. This does NOT change any stdenv hashes. I only tested the case most important to me: $ nix-build pkgs/top-level/release.nix -A stdenvBootstrapTools.x86_64-linux.test
* Merge 'master' into staging and re-revert mergeVladimír Čunát2016-06-23
|\ | | | | | | ... from staging to master, reverted temporarily in aa9a04883e34.
| * Revert "Merge branch 'staging'" due to glibcVladimír Čunát2016-06-23
| | | | | | | | | | | | | | | | The main output started to retain dependency on bootstrap-tools; see https://github.com/NixOS/nixpkgs/pull/15867#issuecomment-227949096 This reverts commit c05d8295988697adbb920a7b4a999ae3670c5504, reversing changes made to f073df60d60444c30c49cb26d6b187a4100b41fe.
| * Merge branch 'staging'Vladimír Čunát2016-06-22
| |\ | |/ |/|
| * Remove more dead code: `stdenvDarwinNaked` no longer existsJohn Ericson2016-06-20
| |
| * Remove dead code in stdenvCross adaptorJohn Ericson2016-06-20
| |
* | make-bootstrap-tools-cross.nix: Strip extra whitespaceTuomas Tynkkynen2016-06-10
| |
* | pkgs.runCommand: passAsFile (buildCommand can be very long)Domen Kožar2016-06-10
|/ | | | | | | | | | | | | | Close #15803. This avoids the error: while setting up the build environment: executing ‘/nix/store/7sb42axk5lrxqz45nldrb2pchlys14s1-bash-4.3-p42/bin/bash’: Argument list too long Note: I wanted to make it optional based on buildCommand length, but that seems pointless as I'm sure it's less performant. Amended by vcunat: https://github.com/NixOS/nixpkgs/pull/15803#issuecomment-224841225
* stdenv: fix paxmarkJoachim Fasting2016-05-27
| | | | | | | | | | On Linux, paxctl's setup hook should overwrite the paxmark stub, but the stub is defined after the setup hooks are sourced, so the stub ends up overwriting the real function. The result is that paxmark fails to do anything. The fix is to define the stub before any setup hooks are sourced. Thanks to @vcunat for figuring this out. Closes #15492
* Allow not rebasing in cygwin stdenv.Lluís Batlle i Rossell2016-05-20
| | | | | | | | | | | | | This changes cygwin stdenv, but I don't think it will hurt much people. This allows mkDerivation to get "dontRebase=true" to skip the usual cygwin rebase. This is required, if we are using this stdenv to build DLLs for win32 inside x86_64-cygwin, because /bin/rebase crashes at finding an arch mismatch. Additionally, we don't need any rebase for libraries built by visual studio and meant for visual studio (my use case). I'm using nix in x86_64-cygwin to build libraries with visual studio, both for x86_64 and x86.
* stdenv setup.sh: revert most of changes around #14907Vladimír Čunát2016-05-12
| | | | | | | | | | | I'm giving this up. Feel free to find some reasonable variant that works at least on Linux and Darwin. Problems encountered: - During bootstrap of Darwin stdenv `env -0` and some bash features don't work. - Without `env -0` the contents of some multi-line phases is taken as variable declarations, which wouldn't typically matter, but the PR wanted to refuse bash-invalid names which would be occasionally triggered. This commit dowgrades that to a warning with explanation.
* stdenv substituteAll: use yet another implementationVladimír Čunát2016-05-08
| | | | | | | | It turned out that process substitution fed into a while-cycle isn't recognized during darwin bootstrap: http://hydra.nixos.org/build/35382446/nixlog/1/raw Also fix broken NIX_DEBUG output, noticed by abbradar.
* stdenv substituteAll: use more robust codeVladimír Čunát2016-05-07
| | | | | | | The set/env fix in #14907 wasn't very good, so let's use a null-delimited approach. Suggested by Aszlig. In particular, this should fix a mass-breakage on Darwin, though I was unable to test that.
* Merge #14920: windows improvements, mainly mingwVladimír Čunát2016-05-05
|\
| * stdenv on mingw: fix 64-bin DLL detection in some casesVladimír Čunát2016-04-23
| | | | | | | | | | In particular, this makes 64-bit libpng create DLL now, and thus depending packages won't fail anymore (e.g. freetype).
| * stdenv for windows: auto-link dependency DLLsVladimír Čunát2016-04-23
| | | | | | | | | | | | | | | | | | | | For every *.{exe,dll} in $output/bin/ we try to find all (potential) transitive dependencies and symlink those DLLs into $output/bin so they are found on invocation. (DLLs are first searched in the directory of the running exe file.) The links are relative, so relocating whole /nix/store won't break them. The hook is activated on cygwin and when cross-compiling to mingw.
* | Merge commit 'refs/pull/14907/head' of git://github.com/NixOS/nixpkgs into ↵Nikolay Amiantov2016-04-25
|\ \ | | | | | | | | | staging
| * | doc/stdenv.xml document substitution env variablesProfpatsch2016-04-23
| | | | | | | | | | | | | | | The filtering of environment variables that start with an uppercase letter is documented in the manual.
| * | setup.hs: substitute uses only valid bash namesProfpatsch2016-04-23
| |/ | | | | | | | | | | | | | | | | | | bash variable names may only contain alphanumeric ASCII-symbols and _, and must not start with a number. Nix expression attribute names however might contain nearly every character (in particular spaces and dashes). Previously, a substitution that was not a valid bash name would be expanded to an empty string. This commit introduce a check that throws a (hopefully) helpful error when a wrong name is used in a substitution.
* | stdenv: clarify how `outputsToInstall` is chosenNikolay Amiantov2016-04-25
| | | | | | | | See https://github.com/NixOS/nixpkgs/pull/14694/files#r60013871
* | add get* helper functions and mass-replace manual outputs search with themNikolay Amiantov2016-04-25
|/
* bootstrap-tools-linux: Use tar without aclAlexander Ried2016-04-18
|
* bootstrap-tools-linux: Qualify all multi-output packagesAlexander Ried2016-04-18
|
* stdenv-darwin: fix buildDan Peebles2016-04-16
| | | Fixes #14704
* Merge branch 'master' into closure-sizeVladimír Čunát2016-04-10
|\ | | | | | | | | | | Comparison to master evaluations on Hydra: - 1255515 for nixos - 1255502 for nixpkgs
| * Merge commit 'bde820' from stagingTuomas Tynkkynen2016-04-06
| |\ | | | | | | | | | | | | http://hydra.nixos.org/eval/1252653 - only ~9400 packages to go at the time of writing this.
| * | useOldCXXAbi: Change into a setup hookEelco Dolstra2016-04-01
| | | | | | | | | | | | Stdenv adapters considered weird.
| * | stdenvAdapters.useOldCXXAbi: add new adapterNikolay Amiantov2016-03-31
| | |
* | | Merge #12653: rework default outputsVladimír Čunát2016-04-07
|\ \ \
| * | | buildEnv: respect meta.outputsToInstallVladimír Čunát2016-04-07
| | | | | | | | | | | | | | | | | | | | | | | | As a result `systemPackages` now also respect it. Only nix-env remains and that has a PR filed: https://github.com/NixOS/nix/pull/815
| * | | stdenv: set meta.outputsToInstall unless overriddenVladimír Čunát2016-04-07
| | | |
* | | | Merge 'staging' into closure-sizeVladimír Čunát2016-04-07
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | This is mainly to get the update of bootstrap tools. Otherwise there were mysterious segfaults: https://github.com/NixOS/nixpkgs/pull/7701#issuecomment-203389817
| * | | | stdenv-linux: Update bootstrap toolsEelco Dolstra2016-04-07
| | |_|/ | |/| |
| * | | stdenv: don't complain about configure script not existingCharles Strahan2016-04-02
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Close #14335. Since 89036ef76ab09a, when a package doesn't include a configure script, the build complains with: grep: : No such file or directory grep: : No such file or directory This prevents that.
* | | Merge branch 'master' into closure-sizeVladimír Čunát2016-04-01
|\| | | | | | | | | | | | | | Beware that stdenv doesn't build. It seems something more will be needed than just resolution of merge conflicts.
| * | Merge remote-tracking branch 'origin/staging'Domen Kožar2016-03-27
| |\ \
| | * | cc-wrapper: add option to skip flags for native optimizationsNikolay Amiantov2016-03-24
| | | |
| | * | stdenv-darwin: Fix dependency on bootstrapToolsEelco Dolstra2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 2040a9ac574fffd36fe20130897ccec2d5928827 changed the order of $PATH elements, causing initialpath to appear after buildInputs. Thus gnugrep ended up depending on bin/sh from bootstrapTools, rather than from pkgs.bash. The fix is to provide pkgs.bash via buildInputs rather than initialPath. http://hydra.nixos.org/build/33276697
| | * | stdenv: don't overwrite $NIX_ENFORCE_PURITY settingTim Cuthbertson2016-03-13
| | | | | | | | | | | | | | | | Close #13583.
| | * | Merge remote-tracking branch 'origin/gcc-5' into stagingEelco Dolstra2016-03-11
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | Still some breakage but no blockers: http://hydra.nixos.org/eval/1242130?filter=x86_64-linux&compare=1237852&full=#tabs-now-fail
| | | * | Switch to GCC 5Eelco Dolstra2016-02-28
| | | | |
| | * | | Merge remote-tracking branch 'origin/binutils-2.26' into stagingEelco Dolstra2016-03-11
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This still breaks a few packages, but nothing really major: http://hydra.nixos.org/eval/1241850?filter=x86_64-linux&compare=1237919&full=#tabs-now-fail
| | | * | | 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.
| | | * | | stdenv-linux: Avoid building m4/bison twiceEelco Dolstra2016-02-28
| | | |/ /
| | * | | Merge remote-tracking branch 'upstream/master' into stagingTuomas Tynkkynen2016-03-06
| | |\ \ \