about summary refs log tree commit diff
path: root/doc/stdenv
AgeCommit message (Collapse)AuthorFilesLines
2022-08-03Merge pull request #184848 from jtojnar/mkder-rec-anchorValentin Gagarin1-1/+1
doc: Add anchor to Recursive attributes in `mkDerivation`
2022-08-02doc: Add anchor to Recursive attributes in `mkDerivation`Jan Tojnar1-1/+1
So that we can link to it stably.
2022-07-28Merge pull request #182513 from trofi/strip-for-host-and-targetBernardo Meurer1-0/+8
gcc: enable stripping for cross-compilers
2022-07-25setup-hooks/strip.sh: add strip{All,Debug}ListTarget variablesSergei Trofimovich1-0/+8
This change mimics existing strip{All,Debug}List variables to allow special stripping directories just for Target. The primary use case in mind is gcc where package has to install both host and target ELFs. They have to be stripped by their own strip tools accordingly. Co-authored-by: Rick van Schijndel <Mindavi@users.noreply.github.com> Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-07-24Merge pull request #179603 from Artturin/subplacemultipleArtturi1-2/+2
2022-07-17Merge staging-next into staginggithub-actions[bot]1-1/+1
2022-07-16doc: update cmake doc for better readabilityaiotter1-1/+1
2022-07-13Merge staging-next into staginggithub-actions[bot]1-7/+70
2022-07-13Merge pull request #121015 from fricklerhandwerk/docs-patch-shebangsRobert Hensing1-7/+70
docs: expand explanation of patchShebangs hook
2022-07-13add stable anchorValentin Gagarin1-1/+1
Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
2022-07-12Merge pull request #177538 from Artturin/fixcross3Artturi1-2/+2
2022-07-07mesonEmulatorHook: check if the target binaries can be executedArtturin1-2/+2
this prevents having to bring in the emulator when compiling e.g. pkgsStatic
2022-07-07doc: update Darwin platform doc regarding the 11.0 SDKRandy Eckenrode1-0/+5
2022-06-29stdenv: substituteInPlace: accept multiple filenamesArtturin1-2/+2
I don't know if getopt is available everywhere, so I did not use it. in any case, it can be changed to use getopt in the future if needed.
2022-06-11meson: add mesonEmulatorHookArtturin1-0/+18
fixes building documentation while cross-compiling and other issues Exec format error: './gdk3-scan' added some simple documentation
2022-06-10do not mention trivial buildersValentin Gagarin1-1/+1
2022-06-09fix heading levelValentin Gagarin1-2/+2
2022-06-08remove specifics on where build inputs come from in `PATH`Valentin Gagarin1-1/+1
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2022-05-30meta.sourceProvenance documentation: clarify it is unaffected by changes to ↵Adam Joseph1-0/+2
meta.license This commit clarifies that the meaning of the `meta.sourceProvenance` field is independent of and unaffected by the value of the `meta.license` field. This is based on the intent of the RFC author as expressed here: https://github.com/NixOS/nixpkgs/pull/161098#issuecomment-1081270201 This clarification is added for two reasons: 1. If in the future there should be some disagreement about what `sourceProvenance` to assign to a package, this may help resolve the disagreement. Any interpretation of `sourceProvenance` which is influenced by the `meta.license` is clearly an incorrect interpretation. 2. If it should turn out that it is impossible to disentangle `sourceProvenance` from `meta.license`, this would indicate the need for changes to the `sourceProvenance` scheme. That change might be as simple as replacing the sentence added by this commit with some other sentence explaining how the two fields influence each other. This commit implements the recommendation made in the paragraph of this comments which begins with "Please say this explicitly...": https://github.com/NixOS/nixpkgs/pull/161098#issuecomment-1081309089
2022-05-30add initial meta.sourceProvenance documentationRobert Scott1-0/+26
2022-05-27treewide: change some glibc to stdenv.cc.libcArtturin1-1/+1
2022-05-25treewide: stdenv.glibc -> glibcArtturin1-1/+1
2022-05-10makeBinaryWrapper: move into its own folderNaïm Favier1-1/+1
The derivation is complex enough to warrant moving out of all-packages.nix
2022-05-02stdenv.mkDerivation: public -> finalPackageRobert Hensing2-7/+6
2022-05-02stdenv.md: Clarify overrideAttrs sentenceRobert Hensing1-1/+1
I weirded my English.
2022-05-02Use finalAttrs instead of self for mkDerivation "overlay"Robert Hensing2-15/+18
2022-05-02stdenv.mkDerivation: Make self more overlay-like; use self.publicRobert Hensing2-7/+10
`self` is now arguments, like `super`. The final package is in `self.public`.
2022-05-02doc/stdenv/meta: tests -> passthru.testsRobert Hensing1-0/+1
Make the text understandable without knowing that these are identical. Co-authored-by: Daniël de Kok <me@github.danieldk.eu>
2022-05-02stdenv.mkDerivation: Allow overriding of recursive definitionsRobert Hensing2-0/+82
See updated manual for further explanation.
2022-04-21docs: sync `patchShebangs` comments with manualValentin Gagarin1-2/+31
this is not an actual sync, but rather the manual taking the leading role. right now it does not make sense to actually change `patch-shebangs.sh` as that would cause a rebuild of the entire universe. we should figure out how to keep them aligned with minimal effort both in terms of maintenance as well as navigation for readers.
2022-04-21fix wording, remove too much specificityValentin Gagarin1-1/+1
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2022-04-21docs: clean up and update links to source codefricklerhandwerk1-2/+8
2022-04-21docs: clarify note on existing store pathsfricklerhandwerk1-1/+1
2022-04-21docs: expand explanation of patchShebangs hookfricklerhandwerk1-7/+35
- clarify motivation and mechanism - explain usage - add interlinks - add links to sources to enable research based on https://discourse.nixos.org/t/what-is-the-patchshebangs-command-in-nix-build-expressions/12656
2022-04-11autoPatchelfHook: more precise dependency ignoranceSamuel Ainsworth1-1/+1
2022-04-03Update doc/stdenv/cross-compilation.chapter.mdAdam Joseph1-11/+11
Co-authored-by: Ben Siraphob <bensiraphob@gmail.com>
2022-04-02cross-compilation.chapter.md: give examples of all depFooBar casesAdam Joseph2-11/+36
This commit describes the "->" notation for dependency types in greater detail, and uses g++ to provide examples of all six cases (although the host->target and target->target examples are a bit artificial). It also adds three more rows to the table for the "->*" dependency types for non-compiler-like packages; these dependency types were already present in the documentation but the "*" was not really explained. Lastly, this commit adds a hyperlink to the table from the place where it is mentioned in the "specifying dependencies" chapter.
2022-02-19Merge pull request #159344 from symphorien/doc-remove-references-toJan Tojnar1-1/+14
doc: document remove-references-to
2022-02-19doc: document remove-references-toGuillaume Girol1-1/+14
2022-02-12doc: discourage setting `phases`, document/encourage runHook instead.Guillaume Girol1-1/+4
Source: https://matrix.to/#/!kjdutkOsheZdjqYmqp:nixos.org/$mff3KCoPY5sfgsUhKn0e4va7hnz7KMXARaO2_UaLNM4?via=nixos.org&via=matrix.org&via=nixos.dev
2022-02-02stdenv.md: Call out that genericBuild has correct orderRobert Hensing1-1/+1
Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
2022-02-01stdenv.md: Document genericBuildRobert Hensing1-1/+5
2022-02-01stdenv.md: Remove off topic phase propagandaRobert Hensing1-1/+1
Phases are cool, I get it, but the reader will enjoy it when they see it. And they'll see it sooner if they don't have to read about it.
2022-01-26meta.updateWalker: remove, because it is not usedFelix Buehler1-4/+0
2021-12-10Merge pull request #124556 from bergkvist/bergkvist/make-c-wrapperRobert Hensing1-5/+7
Generate tiny compiled binary for wrapping executables
2021-12-09Small rephrase of wrapProgram documentationDoron Behar1-1/+1
Co-authored-by: Julian Stecklina <js@alien8.de>
2021-12-09Rephrase documentation for both makeWrapper implementationsDoron Behar1-17/+5
2021-12-08wrapProgramBinary -> binaryWrapProgramDoron Behar1-2/+2
2021-12-02Remove TODO in documentationDoron Behar1-1/+1
2021-10-26Merge pull request #136345 from Pamplemousse/docJan Tojnar2-12/+25
doc: clarification of dependencies related attributes