about summary refs log tree commit diff
path: root/doc/stdenv.xml
AgeCommit message (Collapse)AuthorFilesLines
2018-12-13doc/breakpointHook: correct typosworldofpeace1-5/+5
2018-12-13Update doc/stdenv.xmlDmitry Kalinkin1-1/+1
Co-Authored-By: guibou <guillaum.bouchard@gmail.com>
2018-12-13Fix english in stdenv.xmlGuillaume Bouchard1-1/+1
2018-12-02Merge pull request #50977 from jtojnar/parallel-update.nixJan Tojnar1-0/+37
update.nix: Run update scripts in parallel
2018-12-01update.nix: Run update scripts in parallelJan Tojnar1-0/+37
To make updating large attribute sets faster, the update scripts are now run in parallel. Please note the following changes in semantics: - The string passed to updateScript needs to be a path to an executable file. - The updateScript can also be a list: the tail elements will then be passed to the head as command line arguments.
2018-11-27Merge pull request #50802 from aszlig/autopatchelf-improvementsJörg Thalheim1-6/+25
autoPatchelfHook: Fixes/improvements for Android SDK emulator
2018-11-26doc: add example usage for breakpointHook (#51005)Jörg Thalheim1-1/+11
2018-11-20doc/stdenv: Document autoPatchelfHook changesaszlig1-6/+25
First of all, this makes the existing documentation a bit more clear on what autoPatchelfHook is all about, because after discussing with @svanderburg - who wrote a similar implementation - the rationale about autoPatchelfHook wasn't very clear in the documentation. I also added the recent changes around being able to use autoPatchelf manually and the new --no-recurse flag. Signed-off-by: aszlig <aszlig@nix.build>
2018-11-19doc/cross-compilation: fixupMatthew Bauer1-4/+4
More cleanups and stuff. May need to be split up.
2018-11-19doc/stdenv: more changesMatthew Bauer1-190/+185
Lots of reworking here. May need to be split up.
2018-11-19doc/stdenv: document more setup hookMatthew Bauer1-1/+98
Here I document setup hooks provided by: - cmake - xcbuildHook - meson - ninja - unzip - wafHook - scons
2018-11-19doc/stdenv: document prefixKeyMatthew Bauer1-0/+11
This seems like a useful thing to document
2018-11-19doc: move checkInputs to check phase sectionMatthew Bauer1-11/+12
This makes more sense in context.
2018-11-19doc: typo fixesMatthew Bauer1-2/+2
2018-11-19Fix typo in nixpkgs manualAndrei Lapshin1-1/+1
2018-11-14docs: fix minor grammar issues in the manualBenjamin Hipple1-6/+6
2018-11-07Remove preferLocalBuild documentationEelco Dolstra1-16/+1
It's incorrect (preferLocalBuild does not prevent uploading to binary caches) and is not a stdenv attribute (it's already documented in the Nix manual).
2018-10-26doc: apply `make format`Jörg Thalheim1-7/+7
2018-10-26doc: extend breakpointHook documentationJörg Thalheim1-10/+13
2018-10-26nixpkgs docs: add missing spaces between wordsRaphael Borun Das Gupta1-2/+2
2018-10-26nixpkgs docs: remove spurious ">"Raphael Borun Das Gupta1-1/+1
2018-10-25doc/breakpointHook: add documentationJörg Thalheim1-0/+19
2018-09-20doc/stdenv: libaries -> libraries (#47011)John Children1-1/+1
This commit corrects a minor typo in the stdenv portion of the documentation for the nix language.
2018-09-01nixpkgs docs: give linked things IDsGraham Christensen1-7/+7
2018-08-31Merge pull request #42464 from LnL7/manual-installcheckDaiderd Jordan1-1/+24
doc: add installCheckTarget and installCheckFlags to manual
2018-07-30stdenv/build-support: support .tbz and .txz tarballsJames Deikun1-3/+4
2018-06-23doc: add installCheckTarget and installCheckFlags to manualDaiderd Jordan1-1/+24
Fixes #42393
2018-05-31doc: Fixes squishedtogether definitions.Samuel Dionne-Riel1-10/+10
2018-05-31doc: ran `make format`Samuel Dionne-Riel1-141/+285
With visual inspection that nothing got worse.
2018-05-03Merge remote-tracking branch 'upstream/master' into stagingJohn Ericson1-1842/+2318
2018-05-01nixpkgs docs: format =)Graham Christensen1-1828/+2301
2018-04-26stdenv: steal `checkInputs` from buildPythonPackageJan Malakhovski1-0/+14
Note that a bunch of non-python packages use this attribute already. Some of those are clearly unaware of the fact that this attribute does not exists in stdenv because they define it but don't to add it to their `bulidInputs` :) Also note that I use `buildInputs` here and only handle regular builds because python and haskell builders do it this way and I'm not sure how to properly handle the cross-compilation case.
2018-02-10setup-hooks: Add autoPatchelfHookaszlig1-0/+14
I originally wrote this for packaging proprietary games in Vuizvui[1] but I thought it would be generally useful as we have a fair amount of proprietary software lurking around in nixpkgs, which are a bit tedious to maintain, especially when the library dependencies change after an update. So this setup hook searches for all ELF executables and libraries in the resulting output paths after install phase and uses patchelf to set the RPATH and interpreter according to what dependencies are available inside the builder. For example consider something like this: stdenv.mkDerivation { ... nativeBuildInputs = [ autoPatchelfHook ]; buildInputs = [ mesa zlib ]; ... } Whenever for example an executable requires mesa or zlib, the RPATH will automatically be set to the lib dir of the corresponding dependency. If the library dependency is required at runtime, an attribute called runtimeDependencies can be used to list dependencies that are added to all executables that are discovered unconditionally. Beside this, it also makes initial packaging of proprietary software easier, because one no longer has to manually figure out the dependencies in the first place. [1]: https://github.com/openlab-aux/vuizvui Signed-off-by: aszlig <aszlig@nix.build> Closes: #34506
2018-01-09stdenv: Force `doCheck` and `doInstallCheck` to be false when we are cross ↵John Ericson1-13/+16
compiling I hope this will be a temporary measure. If there is consensus around issue #33599, then we can follow an explicit `dontCheck`, but default to not checking during cross builds when none is given.
2017-12-30doc: More information in the setup hook section of the stdenv chapterJohn Ericson1-6/+56
2017-12-30doc: Document `dontStripHost` and `dontStripTarget`John Ericson1-0/+14
2017-12-30doc: Add "Specifying Dependencies" section to the stdenv chapterJohn Ericson1-33/+248
This accounts for all the new dependencies and propagation logic changes I'm about to add. Fixes #1915---with this change I think the distinction is finally clear enough.
2017-12-13Merge remote-tracking branch 'upstream/staging' into binutils-wrapperJohn Ericson1-4/+11
2017-12-13doc: Document Bintools WrapperJohn Ericson1-12/+43
Shrunk the CC Wrapper documentation so as not to be repetative.
2017-12-07doc: document enableParallelBuilding being unsetOrivej Desh1-4/+11
2017-11-13Typo in manual#stdenv - propagatedNativeBuildInputsBruno Bieth1-1/+2
2017-11-01docs: add note about makeFlags quotingDaiderd Jordan1-2/+8
2017-09-26doc: Document forthcomming NIX_DEBUG degredationsJohn Ericson1-6/+7
2017-08-20doc: Describe CC Wrapper in more detailJohn Ericson1-8/+31
The main motivation for this is to have something to google for LD=$CC. Eventually, this should probably be moved to another section, but we can deal with that later.
2017-06-22cross stdenv adaptor: Support --host --build --target across the boardJohn Ericson1-0/+10
Packages get --host and --target by default, but can explicitly request any subset to be passed as needed. See docs for more info. rustc: Avoid hash breakage by using the old (ignored) dontSetConfigureCross when not cross building
2017-06-19Merge pull request #26345 from vcunat/p/doc-override-phasesFrederik Rietdijk1-1/+7
nixpkgs manual: advise against overriding whole phases
2017-06-11doc: Fix some typosJan Tojnar1-6/+6
2017-06-03nixpkgs manual: advise against overriding whole phasesVladimír Čunát1-1/+7
I've seen that mistake at least a few times already, e.g. https://github.com/NixOS/nixpkgs/pull/26209#issuecomment-305925562 It might perhaps seem counter-intuitive if one doesn't know nixpkgs well.
2017-02-05Merge #19328: mkWrapper fix and docsVladimír Čunát1-0/+44
2017-01-24nixpkgs doc: Talk about nativeBuildInputs and propgatedNativeBuildInputsJohn Ericson1-37/+55
Do so in the stdenv section where the other two are discussed. This can be done without brining up cross-compilation by talking about build-time vs run-time.