summary refs log tree commit diff
path: root/pkgs/stdenv
Commit message (Collapse)AuthorAge
* pkgsStatic: set BUILD_SHARED_LIBS=OFF for cmakeDmitry Kalinkin2020-01-03
|
* Merge pull request #74090 from obsidiansystems/ghcjs-cross-without-ccJohn Ericson2019-12-30
|\ | | | | stdenv, haskell: bonafied GHCJS cross compilation without stdenv.cc
| * Merge remote-tracking branch 'obsidian/ghcjs-cross-without-cc-common' into ↵John Ericson2019-12-30
| |\ | | | | | | | | | ghcjs-cross-without-cc
| | * pkgs/stdenv/booter.nix: Add comment explaining hasCC trickeryJohn Ericson2019-12-30
| | |
| * | Merge remote-tracking branch 'obsidian/ghcjs-cross-without-cc-19.09' into ↵John Ericson2019-11-26
| |\| | | | | | | | | | ghcjs-cross-without-cc
| | * Fix lib testsJohn Ericson2019-11-26
| | | | | | | | | | | | js-ghcjs didn't fit in an existing categor.
| * | Merge remote-tracking branch 'upstream/master' into ghcjs-cross-without-ccJohn Ericson2019-11-25
| |\ \ | | |/ | |/|
| * | Add support for cross compiling to `js-ghcjs`John Ericson2019-11-25
| | | | | | | | | | | | | | | This platform doesn't have a C compiler, and so relies and the changes in the previous commit to work.
| * | stdenv: Introduce hasCC attributeJohn Ericson2019-11-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, we'd always use `cc = null`, and check for that. The problem is this breaks for cross compilation to platforms that don't support a C compiler. It's a very subtle issue. One might think there is no problem because we have `stdenvNoCC`, and presumably one would only build derivations that use that. The problem is that one still wants to use tools at build-time that are themselves built with a C compiler, and those are gotten via "splicing". The runtime version of those deps will explode, but the build time / `buildPackages` versions of those deps will be fine, and splicing attempts to work this by using `builtins.tryEval` to filter out any broken "higher priority" packages (runtime is the default and highest priority) so that both `foo` and `foo.nativeDrv` works. However, `tryEval` only catches certain evaluation failures (e.g. exceptions), and not arbitrary failures (such as `cc.attr` when `cc` is null). This means `tryEval` fails to let us use our build time deps, and everything comes apart. The right solution is, as usually, to get rid of splicing. Or, baring that, to make it so `foo` never works and one has to explicitly do `foo.*`. But that is a much larger change, and certaily one unsuitable to be backported to stable. Given that, we instead make an exception-throwing `cc` attribute, and create a `hasCC` attribute for those derivations which wish to condtionally use a C compiler: instead of doing `stdenv.cc or null == null` or something similar, one does `stdenv.hasCC`. This allows quering without "tripping" the exception, while also allowing `tryEval` to work. No platform without a C compiler is yet wired up by default. That will be done in a following commit.
* | | allowInsecureDefaultPredicate: fix to use getNameRobert Scott2019-12-15
| |/ |/| | | | | | | this allows correct operation with packages only having pname and version specified, resolving issue #73737
* | setup.sh: rewrite stripHashLily Ballard2019-11-12
| | | | | | | | | | | | | | | | Rewrite the `stripHash` helper function with 2 differences: * Paths starting with `--` will no longer produce an error. * Use Bash string manipulation instead of shelling out to `grep` and `cut`. This should be faster.
* | stdenv: Don't unset propagated*DepFiles before main phasesJohn Ericson2019-11-05
| | | | | | | | | | | | | | | | | | A bunch of stdenv-internal variables were deleted in 1601a7fcce389ae3f1b1b36676fd5545035566af, but these are needed in the fixup phase, whereas the rest are just needed for the initial work (findInputs, etc) before the user phases. CC @matthewbauer
* | Merge pull request #69603 from matthewbauer/unset-unused-setup-varMatthew Bauer2019-11-05
|\ \ | | | | | | Unset unused variables in setup.sh
| * | generic/setup.sh: Unset locally defined variablesMatthew Bauer2019-09-26
| | | | | | | | | | | | | | | | | | setup.sh adds a bunch of variables that only it needs. To avoid polluting environments, we should unset these as soon as we are done with them.
* | | Merge staging-next into stagingFrederik Rietdijk2019-11-05
|\ \ \
| * | | Revert "stdenv/check-meta: getEnv if the attribute is unset (#72376)" (#72752)Dmitry Kalinkin2019-11-03
| | | | | | | | | | | | This reverts commit 71184f8e157672789602d3f28bdd3c8079800687.
| * | | stdenv/check-meta: getEnv if the attribute is unset (#72376)zimbatm2019-11-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were two issues: * builtins.getEnv was called deep into the nixpkgs tree making it hard to discover. This is solved by moving the call into pkgs/top-level/impure.nix * when the config was explicitly set by the user to false, it would still try and load the environment variable. This meant that it was not possible to guarantee the same outcome on two different systems.
| * | | Merge pull request #72070 from graham33/fix/license_listMatthew Bauer2019-11-03
| |\ \ \ | | | | | | | | | | Fix handling of lists in whitelistedLicenses and blacklistedLicenses
| | * | | Fix handling of lists in whitelistedLicenses and blacklistedLicensesGraham Bennett2019-10-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A package's meta.license can either be a single license or a list. The code to check config.whitelistedLicenses and config.blackListedLicenses wasn't handling this, nor was the showLicense function.
| * | | | make-bootstrap-tools: use 'extreme' option to reduce size but not costWill Dietz2019-11-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apparently this option trades compression time for size, and explicitly does so without increasing resources needed in decomp. Doesn't make tarball creation unbearable, so add it to options!
| * | | | binutils: offer "for bootstrap" variant that's less.. feature-completeWill Dietz2019-11-03
| | | | |
| * | | | gcc7: make building w/LTO support optional, don't use in bootstrap toolsWill Dietz2019-11-03
| |/ / /
* | | | stdenv: Don't stop `set -u`-ingJohn Ericson2019-11-01
| | | | | | | | | | | | | | | | | | | | | | | | Before, we very carefully unapplied and reapplied `set -u` so the rest of Nixpkgs could continue to not fail on undefined variables. Let's rip off the band-aid.
* | | | treewide: Make still dont* Variables are optional in most casesJohn Ericson2019-11-01
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | Go beyond the obvious setup hooks now, with a bit of sed, with a skipped case: - cc-wrapper's `dontlink`, because it already is handled. Also, in nix files escaping was manually added. EMP
* | | Merge pull request #69028 from matthewbauer/remove-iselfexec-iselfdynMatthew Bauer2019-09-20
|\ \ \ | | | | | | | | Revert "setup.sh introduce isELFExec, isELFDyn"
| * | | Revert "setup.sh introduce isELFExec, isELFDyn"Matthew Bauer2019-09-18
| | |/ | |/| | | | | | | | | | | | | | | | This reverts commit e1b80a5a99a3013c6556ec2e2e73ef6ca8e8b80b. This is broken in PIE (#68513). Best to not keep it in until something else starts using it.
* | | Merge remote-tracking branch 'origin/master' into stagingMatthew Bauer2019-09-20
|\ \ \ | | |/ | |/|
| * | stdenv/adapters.nix: remove static from makeStaticLibrariesMatthew Bauer2019-09-19
| |/ | | | | | | | | | | | | | | This logic should be in the pkgs/top-level/static.nix. We don’t want to pollute Nixpkgs with =if stdenv.static=. Also, "static" is not descriptive. We have two types of static stdenvs, ‘makeStaticLibaries’ and ‘makeStaticBinaries’. We shouldn’t rely on a static boolean like this.
* | setup.sh: avoid subshells: iterating a fileAlbert Safin2019-09-20
| |
* | setup.sh: avoid subshells: type -t in _callImplicitHookAlbert Safin2019-09-20
| |
* | setup.sh: avoid subshells: mapOffsetAlbert Safin2019-09-20
| |
* | setup.sh: avoid subshells: type -tAlbert Safin2019-09-20
| |
* | setup.sh: avoid subshells: shopt -po nounsetAlbert Safin2019-09-19
|/
* Merge branch 'master' into stagingVladimír Čunát2019-09-02
|\
| * Merge remote-tracking branch 'upstream/master' into feature/js-unknown-ghcjsJohn Ericson2019-09-02
| |\
| * | Add support for `js-unknown-ghcjs`Moritz Angermann2019-09-02
| | | | | | | | | | | | This adds enough logic to nixpkgs to support the `js-unknown-ghcjs` triple.
* | | treewide: remove redundant recvolth2019-08-28
| | |
* | | Merge staging-next into stagingFrederik Rietdijk2019-08-28
|\ \ \ | | |/ | |/|
| * | Merge pull request #66657 from danbst/pgpackages-fixesDanylo Hlynskyi2019-08-18
| |\ \ | | | | | | | | Postgresql plugins fixes
| | * | stdenv/check-meta: construct name from pname and version if name unavailabledanbst2019-08-15
| | | |
* | | | treewide: remove redundant quotesvolth2019-08-26
| | | |
* | | | Merge pull request #66725 from flokli/wrapqtappshook-execFlorian Klink2019-08-18
|\ \ \ \ | |/ / / |/| | | stdenv: add isELFExec, isELFDyn, fix wrappers
| * | | setup.sh introduce isELFExec, isELFDynFlorian Klink2019-08-17
| |/ / | | | | | | | | | | | | | | | | | | | | | These can be used to determine whether a ELF file with ELF header is an executable or shared library. We can't implement it in pure bash, as bash has problems with null bytes.
* | | Merge pull request #65484 from arcnmx/pr-stdenv-cmake-crossMatthew Bauer2019-08-14
|\ \ \ | |/ / |/| | stdenv: correct cross CMAKE_SYSTEM_NAME
| * | stdenv: correct cross CMAKE_SYSTEM_NAMEarcnmx2019-07-27
| | | | | | | | | | | | | | | | | | | | | As described in cmake cross instructions, CMAKE_SYSTEM_NAME should be set to "Generic" if there is no applicable OS: https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/CrossCompiling#setting-up-the-system-and-toolchain
* | | Merge master into staging-nextFrederik Rietdijk2019-08-01
|\ \ \
| * | | pkgsStatic: propagate all buildInputsTobias Mayer2019-07-24
| | | |
| * | | Signal static build option in makeStaticLibrariesTobias Mayer2019-07-21
| |/ / | | | | | | | | | | | | This flag can replace the extra static parameter to packages that don't work automatically with this adapter.
* / / stdenv: MACOSX_DEPLOYMENT_TARGET 10.10 -> 10.12Daiderd Jordan2019-07-08
|/ /
* | setup.sh: add dontUnpackworldofpeace2019-07-01
| |