summaryrefslogtreecommitdiff
path: root/pkgs/stdenv/nix (follow)
Commit message (Expand)AuthorAgeFilesLines
* treewide: format all inactive Nix files•••After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \ --argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7 result/bin/apply-formatting $NIXPKGS_PATH Silvan Mosberger2024-12-101-8/+31
* stdenv/common-path.nix: move to stdenv/generic/•••Do this since it is part of the generic stdenv/`mkDerivation` infrastructure, rather than being a bootstrapping strategy. John Ericson2022-07-291-1/+1
* stdenv/{native,nix}: add lib to cc-wrapper argsTaeer Bar-Yam2021-04-211-0/+1
* stdenv: implement crossOverlays•••crossOverlays only apply to the packages being built, not the build packages. It is useful when you don’t care what is used to build your packages, just what is being built. The idea relies heavily on the cross compiling infrastructure. Using this implies that we need to create a cross stdenv. Matthew Bauer2018-12-041-2/+2
* cc-wrapper: Use stdenvNoCC to build•••cc-wrapper may wrap a cc-compiler, but it doesn't need one to build itself. (c.f. expand-response-params is a separate derivation.) This helps avoid cycles on the cross stuff, in addition to removing a useless dependency edge. I could have been super careful with overrides in the stdenv to avoid the mass rebuild, but I don't think it's worth it. John Ericson2017-09-261-8/+5
* cc-wrapper: Remove unused params•••Ensured hashes unchanged and eval succeeds in tarball job John Ericson2017-08-211-6/+2
* top-level: {build,host,target}Platform are defined in the stdenv instead•••See #27069 for a discussion of this John Ericson2017-07-071-3/+4
* cc-wrapper: Learn about target prefixes•••This is first step towards getting rid of gcc-wrapper-cross John Ericson2017-06-221-0/+1
* cc-wrapper: Remove `stdenv.is*` for `targetPlatform.is*`•••Modify bootstrapping stdenvs to make sure `targetPlatform` also passed. John Ericson2017-06-221-0/+1
* stdenv: define is* predicates with hostPlatform.is*•••This is a saner default until stdenv's are removed altogether John Ericson2017-05-221-2/+2
* top-level: Lay the groundwork for `{build,host,target}Platform`•••The long term goal is a big replace: { inherit system platform; } => buildPlatform crossSystem => hostPlatform stdenv.cross => targetPlatform And additionally making sure each is defined even when not cross compiling. This commit refactors the bootstrapping code along that vision, but leaves the old identifiers with their null semantics in place so packages can be modernized incrementally. John Ericson2017-01-241-2/+2
* top-level: Normalize stdenv booting•••Introduce new abstraction, `stdenv/booter.nix` for composing bootstraping stages, and use it everywhere for consistency. See that file for more doc. Stdenvs besides Linux and Darwin are completely refactored to utilize this. Those two, due to their size and complexity, are minimally edited for easier reviewing. No hashes should be changed. John Ericson2017-01-131-31/+45
* top-level: Modernize stdenv.overrides giving it self and super•••Document breaking change in 17.03 release notes John Ericson2017-01-131-1/+1
* cc-wrapper: add option to skip flags for native optimizationsNikolay Amiantov2016-03-241-0/+1
* stdenv: don't overwrite $NIX_ENFORCE_PURITY setting•••Close #13583. Tim Cuthbertson2016-03-131-1/+1
* Fix "nix" stdenv (close #13554)•••Broken by changes introduced in d96893647de5c519c458c1254f043f2d67d9b29c Danny Wilson2016-02-281-2/+1
* add is{GNU,Clang} attrs to cc-wrapper.•••These will be more pleasant to use than the existing (cc.cc.isClang or false) nonsense we currently do. Eric Seidel2015-05-111-0/+1
* rename gcc-wrapper to cc-wrapper.•••also makes cc-wrapper compatible with clang in the darwin fork. Eric Seidel2015-01-141-4/+4
* Remove dead codeEelco Dolstra2014-11-041-16/+1
* Prevent an unnecessary evaluation of libEelco Dolstra2014-08-091-3/+3
* DohEelco Dolstra2014-07-281-1/+1
* Export SDKROOTEelco Dolstra2014-07-281-1/+1
* $xcodePath -> $SDKROOT•••SDKROOT is standard. In particular, this fixes the cmake build on Mac OS X 10.9. Eelco Dolstra2014-07-241-3/+3
* stdenv-darwin: Shut up some warnings from SDK headers•••The Carbon headers spew out zillions of multichar / deprecations warnings, which isn't very helpful. So turn them off. Eelco Dolstra2014-07-231-2/+1
* Set MACOSX_DEPLOYMENT_TARGET•••This variable sets the minimal Mac OS X version required for running binaries produced by the Darwin toolchain. Since it defaults to the version of the user's SDK, setting it explicitly should make our builds more deterministic. It's now set to 10.6 because that's what hydra.nixos.org runs. Eelco Dolstra2014-07-021-9/+7
* Darwin: Search for libraries in $sdk/usr/lib•••This required adding a new environment variable NIX_LDFLAGS_AFTER that ensures that the -L.../usr/lib flag happens last. Eelco Dolstra2014-07-011-6/+4
* Darwin: Use xcrun to get the path to the SDK•••Recent versions of Xcode don't install headers in /usr/include but in a directory like /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include So use that instead, falling back to /usr/include in case of an older version of Xcode. Eelco Dolstra2014-07-011-1/+8
* Change stdenv on darwin to not set NIX_ENFORCE_PURITYJohn Wiegley2014-05-291-0/+1
* GCC 4.7.2 + updated libraries compiles on Illumos/SmartOS!•••- Add solaris native ld support to GCC build wrapper - Add solaris ld wrapper that fixes -L argument order Danny Wilson2013-02-281-0/+1
* Remove trailing whitespaceEelco Dolstra2012-12-281-3/+3
* Add an option ‘stdenv.userHook’ to set a global stdenv setup hook•••This allows various applications. It allows users to set global optimisation flags, e.g. stdenv.userHook = ''NIX_CFLAGS_COMPILE+=" -funroll-loops"''; But the impetus is as an alternative to issue #229, allowing impure stdenv setup for people who want to use distcc: stdenv.userHook = "source /my/impure/setup-script.sh"; This is probably a bad idea, but at least now it's a bad idea in people's configuration and not in Nixpkgs. :-) Eelco Dolstra2012-12-281-1/+3
* Darwin: Use GCC 4.6 in `stdenvNix'.•••svn path=/nixpkgs/trunk/; revision=33894 Ludovic Courtès2012-04-231-1/+1
* * Call all the stdenvs "stdenv" (rather than e.g. "stdenv-linux")••• so that "nix-env -i stdenv" does the expected. svn path=/nixpkgs/branches/stdenv-updates/; revision=31742 Eelco Dolstra2012-01-201-2/+0
* * Reuse packages in the Darwin stdenv to prevent unnecessary rebuilds.•••svn path=/nixpkgs/branches/stdenv-updates/; revision=31710 Eelco Dolstra2012-01-191-2/+10
* * Prepend the "prehook" rather than sourcing it.•••* Don't call xargs with the -r flag in the Darwin bootstrap. svn path=/nixpkgs/branches/stdenv-updates/; revision=31703 Eelco Dolstra2012-01-192-11/+15
* * Remove the NIX_STRIP_DEBUG flag. It was undocumented and confusing••• in its interaction with the ‘dontStrip’ attribute. svn path=/nixpkgs/branches/stdenv-updates/; revision=30848 Eelco Dolstra2011-12-121-1/+0
* Updating from trunk.•••svn path=/nixpkgs/branches/stdenv-updates/; revision=18878 Lluís Batlle i Rossell2009-12-101-1/+1
|\
| * changes for x86_64-darwin support•••svn path=/nixpkgs/trunk/; revision=18667 Rob Vermaas2009-11-271-1/+1
* | Trying to fix the stdenv used on i686-darwin, which stopped working after my•••statement of the gcc-wrapper coreutils dependency on r17867. I don't have i686-darwin to try this. svn path=/nixpkgs/branches/stdenv-updates/; revision=18490 Lluís Batlle i Rossell2009-11-201-0/+1
|/
* * xargsFlag empty on darwin•••svn path=/nixpkgs/trunk/; revision=15919 Rob Vermaas2009-06-101-0/+1
* * Fix stdenvNative/stdenvNix.•••svn path=/nixpkgs/branches/stdenv-updates/; revision=13957 Eelco Dolstra2009-02-021-2/+1
* * Folded the Cygwin, powerpc-darwin and FreeBSD stdenv into the "native"••• stdenv. svn path=/nixpkgs/trunk/; revision=12147 Eelco Dolstra2008-06-181-4/+2
* * curl: build with OpenSSL (https) support by default.•••* Some fetchurl-related refactoring. The `realCurl' attribute is gone, `curl' is the real thing. To prevent an infinite recursion in `fetchurl' (because it depends on curl and building curl needs fetchurl), curl and its dependencies (openssl, zlib, perl) use `fetchurlBoot', which is the fetchurl used by the previous bootstrap phase (e.g. the statically linked version of curl for stdenv-linux). So as a result you can use https:// urls almost everywhere. There's also some hackery to prevent a different curl from being built in every stdenv-linux bootstrap phase (namely the stdenv.fetchurl attribute which allows fetchurl to be overriden everywhere). svn path=/nixpkgs/trunk/; revision=11905 Eelco Dolstra2008-05-271-2/+3
* svn path=/nixpkgs/branches/stdenv-updates-merge/; revision=10814Eelco Dolstra2008-02-211-0/+1
* * gcc-wrapper: separately store the flags necessary to find GCC and••• Glibc. This is useful when building GCC. * gcc-wrapper: the dynamic linker has a different name on x86_64 and powerpc. * gcc-wrapper: "glibc" -> "libc", because someday we might support different C libraries. * gcc: don't do a multilib build (e.g., 32-bit support on x86_64), don't need it. * gcc: merge in support for static builds. * gcc: various simplifications in the compiler/linker flags, hope they work. svn path=/nixpkgs/trunk/; revision=6823 Eelco Dolstra2006-10-241-1/+1
* * `drv + /path' is deprecated, so don't do that anymore.•••svn path=/nixpkgs/trunk/; revision=6754 Eelco Dolstra2006-10-171-2/+2
* * Don't use the subpath operator (~) anymore, it's subsumed by normal••• concatenation (+). svn path=/nixpkgs/trunk/; revision=6080 Eelco Dolstra2006-08-091-2/+2
* * Pass along realCurl.•••svn path=/nixpkgs/trunk/; revision=5830 Eelco Dolstra2006-07-201-2/+1
* * On Darwin, use Apple's gcc fork.•••svn path=/nixpkgs/trunk/; revision=5715 Eelco Dolstra2006-07-141-2/+2
* * Doh!•••svn path=/nixpkgs/trunk/; revision=5708 Eelco Dolstra2006-07-141-1/+1