about summary refs log tree commit diff
path: root/doc/stdenv
AgeCommit message (Collapse)AuthorFilesLines
2023-02-22treewide: manual fixups forArtturin1-1/+1
treewide: use toString on list NIX_CFLAGS_COMPILE treewide: move NIX_CFLAGS_COMPILE to the env attrset
2023-02-16docs: Building a stdenv package in nix-shell (#216650)milahu1-0/+21
* docs: Building a stdenv package in nix-shell
2023-02-10doc: add a simpler explanation of dependencies (#213403)Guillaume Girol1-13/+89
Co-authored-by: Jan Tojnar <jtojnar@gmail.com> Co-authored-by: pennae <82953136+pennae@users.noreply.github.com> Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-02-07doc/stdenv: fixup #212642Naïm Favier1-2/+3
2023-01-26Merge master into staging-nextgithub-actions[bot]1-2/+2
2023-01-25doc/stdenv: clarify default check targetNaïm Favier1-2/+2
2023-01-21doc: adapt to nativeCheckInputsGuillaume Girol1-2/+10
2023-01-21Merge branch 'nativeCheckInputs' into staging-nativeCheckInputsGuillaume Girol2-3/+11
2023-01-20cross-compilation.chapter.md: correct doCheck conditionalArtturin1-1/+1
2023-01-16multi-outputs.sh: Improve _assignFirst error messageRobert Hensing1-1/+1
Closes #16182 This improves the error message Error: _assignFirst found no valid variant! which occurred when the set of outputs was not sufficient to set the various outputDev, outputBin, etc variables. Specifically, this would mean that "out" is not among the outputs, which is valid for a derivation. This changes the message to something like error: _assignFirst: could not find a non-empty variable to assign to outputDev. The following variables were all unset or empty: dev out. If you did not define an "out" output, make sure to define all the specific required outputs: define an output for one of the unset variables. While this isn't a full explanation of what stdenv can and can not do, I think it's vast improvement over the 0 bits of information that it used to provide. This at least gives a clue as to what's going on, and even suggests a fix, although probably multiple such fixes are required in an instance where someone starts with a no-out derivation from scratch (and decide to persist).
2023-01-11Merge remote-tracking branch 'origin/master' into staging-nextMartin Weinelt1-0/+4
2023-01-10Merge pull request #208252 from helsinki-systems/doc/doDistValentin Gagarin1-0/+4
doc/stdenv: Add information about the doDist variable
2023-01-09Merge master into staging-nextgithub-actions[bot]1-1/+1
2023-01-09doc/stdenv: Add information about the doDist variableMax Hausch1-0/+4
2023-01-07docs: prefer `maintainers: add` commits to be in the same pull requestfigsoda1-1/+1
2022-12-18Merge staging-next into staginggithub-actions[bot]2-3/+3
2022-12-17doc: fix typosfigsoda2-3/+3
2022-12-10add docs for prependToVar and appendToVarArtturin1-0/+26
2022-12-05Merge pull request #204257 from raboof/nixpkgs-manual-update-meta-attributesValentin Gagarin1-48/+2
manual: update meta-attributes section
2022-12-04doc: use sri hash syntaxColin Arnott1-2/+2
The nixpkgs manual contains references to both sri hash and explicit sha256 attributes. This is at best confusing to new users. Since the final destination is exclusive use of sri hashes, see nixos/rfcs#131, might as well push new users in that direction gently. Notable exceptions to sri hash support are builtins.fetchTarball, cataclysm-dda, coq, dockerTools.pullimage, elixir.override, and fetchCrate. None, other than builtins.fetchTarball, are fundamentally incompatible, but all currently accept explicit sha256 attributes as input. Because adding backwards compatibility is out of scope for this change, they have been left intact, but migration to sri format has been made for any using old hash formats. All hashes have been manually tested to be accurate, and updates were only made for missing upstream artefacts or bugs.
2022-12-03manual: update meta-attributes sectionArnout Engelen1-48/+2
Promote the `maintainers = with maintainers; [ ]` syntax as that is most common in nixpkgs, and remove the `nix-env` example which doesn't work like that anymore.
2022-11-19splice.nix: start deprecating nativeDrv and crossDrvArtturin1-1/+1
2022-11-13Merge pull request #82131 from Ericson2314/bsd-crossJohn Ericson1-2/+2
FreeBSD packages: Init at 13.1
2022-11-08Merge master into staging-nextgithub-actions[bot]1-1/+1
2022-11-07nixpkgs/doc/stdenv: fix admonition classRyan Mulligan1-1/+1
Change to match the formatting of the other admonitions that use classes. This was breaking the mmdoc output.
2022-11-04lib/systems: Support FreeBSDJohn Ericson1-2/+2
A tricky thing about FreeBSD is that there is no stable ABI across versions. That means that putting in the version as part of the config string is paramount. We have a parsed represenation that separates name versus version to accomplish this. We include FreeBSD versions 12 and 13 to demonstrate how it works.
2022-10-26cc-wrapper: adding a cc-wrapper-hook to the cc-wrapperDaniel Barter1-0/+7
2022-10-13doc/stdenv: Move Other hooks after all hooksRobert Hensing1-5/+5
2022-10-13doc/stdenv: Clarify that the wrappers come with hooksRobert Hensing1-2/+2
2022-10-13doc/stdenv: Improve language a bitRobert Hensing1-2/+2
2022-10-13doc: Move non-stdenv hooks out of stdenv chapterRobert Hensing1-168/+15
2022-10-13doc/stdenv: Clarify status of the hooksRobert Hensing1-33/+35
2022-09-28Merge pull request #191540 from hercules-ci/nixosTest-modularRobert Hensing1-0/+4
nixosTest: make modular
2022-09-26maintainers/scripts/update.nix: make package name, pname and old version ↵José Romildo1-1/+1
available to the update script
2022-09-24nixos/testing: Improve option docsRobert Hensing1-0/+4
2022-09-03doc: Clarify default value of sourceRootMarc Scholten1-0/+2
2022-08-29doc: specify that `longDescription` should be MarkdownNaïm Favier1-1/+1
In the spirit of RFC 72, document that longDescription is in CommonMark.
2022-08-19doc: add note about makeWrapper and PATH modificationValentin Gagarin1-2/+17
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