about summary refs log tree commit diff
path: root/doc/stdenv.xml
AgeCommit message (Collapse)AuthorFilesLines
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.
2017-01-20doc: improve hardening docsFranz Pletz1-3/+11
Fixes #18887.
2016-10-11stdenv/stripHash: print to stdout, not to variableProfpatsch1-5/+4
`stripHash` documentation states that it prints out the stripped name to the stdout, but the function stored the value in `strippedName` instead. Basically all usages did something like `$(stripHash $foo | echo $strippedName)` which is just braindamaged. Fixed the implementation and all invocations.
2016-10-08stdenv: document makeWrapperProfpatsch1-0/+44
Add function documentation to `makeWrapper`. Also add user documentation to the nixpkgs manual.
2016-10-07manual: switch an example from md5 to sha256.Michael Raskin1-1/+1
2016-09-28nixpkgs doc: add installCheck phaseEric Sagnes1-0/+35
2016-08-31Merge pull request #9607 from nckx/update-docDomen Kožar1-6/+6
doc: specify that *Flags are string lists
2016-08-13hardening docs: fix typoRobin Gloster1-1/+1
2016-08-12doc: complete the hardening documentationFranz Pletz1-9/+169
2016-07-25Merge remote-tracking branch 'upstream/master' into hardened-stdenvRobin Gloster1-0/+19
2016-07-23nixpkgs manual: document the paxctl setup-hookJoachim Fasting1-0/+19
2016-07-15Merge remote-tracking branch 'upstream/master' into hardened-stdenvRobin Gloster1-4/+18
2016-06-25Revert "stdenv: introduce baseHash() to replace stripHash()"zimbatm1-17/+13
Introduced by mistake This reverts commit e71a5cb87841f0af4a2279517b77a9a07ba394c0.
2016-06-25stdenv: introduce baseHash() to replace stripHash()zimbatm1-13/+17
stripHash uses a global variable to communicate it's computation results, but it's not necessary. You can just pipe to stdout in a subshell. A function mostly behaves like just another command. baseHash() also introduces a suffix-stripping capability since it's something the users of the function tend to use.
2016-06-21doc: Update stripHash documentationTom Boettcher1-4/+18
The documentation now matches the behavior of the function.
2016-05-18Merge remote-tracking branch 'origin/master' into hardened-stdenvFranz Pletz1-1/+11
2016-05-07manual/substituteAll: document filtered variablesProfpatsch1-1/+11
Some variables are filtered out as of #14907.
2016-04-18Merge remote-tracking branch 'upstream/master' into hardened-stdenvRobin Gloster1-1/+1
2016-04-07nixpkgs manual: add multiple-output chapterVladimír Čunát1-1/+1
2016-02-22nixpkgs docs: stackprotector hardeningRobin Gloster1-0/+16
2016-02-22nixpkgs docs: format hardeningRobin Gloster1-0/+27
2016-01-23docs: Mention autoreconfHook in Package Setup HooksBenjamin Staffin1-0/+8
2016-01-21nixpkgs manual: add a section about passthruNikolay Amiantov1-0/+33