Guillaume Girol
d26caea94b
doc: adapt to nativeCheckInputs
2023-01-21 16:42:10 +01:00
Martin Weinelt
c1e6c6af69
Merge remote-tracking branch 'origin/master' into staging-next
2023-01-11 03:51:33 +01:00
Max Hausch
540c14338d
doc/stdenv: Add information about the doDist variable
2023-01-09 08:17:53 +01:00
github-actions[bot]
dc7ebb0163
Merge staging-next into staging
2022-12-18 18:01:41 +00:00
figsoda
403e25e3e3
doc: fix typos
2022-12-17 18:21:48 -05:00
Artturin
fda61e9066
add docs for prependToVar and appendToVar
2022-12-10 04:22:11 +02:00
Colin Arnott
bac379f30a
doc: use sri hash syntax
...
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-04 06:12:18 +00:00
github-actions[bot]
4517d658d3
Merge master into staging-next
2022-11-08 18:01:16 +00:00
Ryan Mulligan
962a810513
nixpkgs/doc/stdenv: fix admonition class
...
Change to match the formatting of the other admonitions that use
classes.
This was breaking the mmdoc output.
2022-11-07 13:32:21 -08:00
Daniel Barter
77bd639c4c
cc-wrapper: adding a cc-wrapper-hook to the cc-wrapper
2022-10-26 09:33:43 -07:00
Robert Hensing
c1311d1223
doc/stdenv: Move Other hooks after all hooks
2022-10-13 21:15:19 +02:00
Robert Hensing
53088569de
doc/stdenv: Clarify that the wrappers come with hooks
2022-10-13 21:14:21 +02:00
Robert Hensing
f4c6286284
doc/stdenv: Improve language a bit
2022-10-13 21:14:04 +02:00
Robert Hensing
2db8de920e
doc: Move non-stdenv hooks out of stdenv chapter
2022-10-13 15:40:27 +02:00
Robert Hensing
5b055190e3
doc/stdenv: Clarify status of the hooks
2022-10-13 13:36:47 +02:00
José Romildo
1f239257c5
maintainers/scripts/update.nix: make package name, pname and old version available to the update script
2022-09-26 22:16:19 -03:00
Marc Scholten
41de927b70
doc: Clarify default value of sourceRoot
2022-09-03 11:13:58 +02:00
Valentin Gagarin
16eb45c655
doc: add note about makeWrapper and PATH modification
2022-08-19 13:11:27 -05:00
Valentin Gagarin
163e81aac0
Merge pull request #184848 from jtojnar/mkder-rec-anchor
...
doc: Add anchor to Recursive attributes in `mkDerivation`
2022-08-03 11:18:36 +02:00
Jan Tojnar
4cb8aa1324
doc: Add anchor to Recursive attributes in mkDerivation
...
So that we can link to it stably.
2022-08-02 18:01:03 +02:00
Bernardo Meurer
88c63ca65a
Merge pull request #182513 from trofi/strip-for-host-and-target
...
gcc: enable stripping for cross-compilers
2022-07-28 00:30:49 -07:00
Sergei Trofimovich
0f45ce6e77
setup-hooks/strip.sh: add strip{All,Debug}ListTarget variables
...
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-25 11:06:45 +01:00
Artturi
79e8669003
Merge pull request #179603 from Artturin/subplacemultiple
2022-07-24 04:14:09 +03:00
aiotter
dbd75e3229
doc: update cmake doc for better readability
2022-07-16 19:10:31 +09:00
Robert Hensing
3c1447f807
Merge pull request #121015 from fricklerhandwerk/docs-patch-shebangs
...
docs: expand explanation of patchShebangs hook
2022-07-13 12:17:11 +02:00
Valentin Gagarin
b7b86c4f54
add stable anchor
...
Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
2022-07-13 10:19:23 +01:00
Artturin
ba1efa71ae
stdenv: substituteInPlace: accept multiple filenames
...
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-29 22:03:19 +03:00
Valentin Gagarin
c3ea8c4dd9
do not mention trivial builders
2022-06-10 11:43:57 +02:00
Valentin Gagarin
e132e6be3c
fix heading level
2022-06-09 13:43:21 +02:00
Valentin Gagarin
f70073d72d
remove specifics on where build inputs come from in PATH
...
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2022-06-08 11:43:32 +02:00
Naïm Favier
0d6bcb513b
makeBinaryWrapper: move into its own folder
...
The derivation is complex enough to warrant moving out of
all-packages.nix
2022-05-10 22:07:56 +02:00
Robert Hensing
0e00acafe9
stdenv.mkDerivation: public -> finalPackage
2022-05-02 08:49:33 +02:00
Robert Hensing
ca83dd1ae7
stdenv.md: Clarify overrideAttrs sentence
...
I weirded my English.
2022-05-02 08:49:32 +02:00
Robert Hensing
d629ba27d9
Use finalAttrs instead of self for mkDerivation "overlay"
2022-05-02 08:49:31 +02:00
Robert Hensing
6d7efb3a16
stdenv.mkDerivation: Make self more overlay-like; use self.public
...
`self` is now arguments, like `super`. The final package is in
`self.public`.
2022-05-02 08:49:31 +02:00
Robert Hensing
a4e7085227
stdenv.mkDerivation: Allow overriding of recursive definitions
...
See updated manual for further explanation.
2022-05-02 08:49:26 +02:00
Valentin Gagarin
311d322feb
docs: sync patchShebangs
comments with manual
...
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-21 12:21:49 +02:00
Valentin Gagarin
9a2ed65370
fix wording, remove too much specificity
...
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2022-04-21 09:27:11 +02:00
fricklerhandwerk
b4d9d682c8
docs: clean up and update links to source code
2022-04-21 09:27:11 +02:00
fricklerhandwerk
e3883d2ce0
docs: clarify note on existing store paths
2022-04-21 09:27:10 +02:00
fricklerhandwerk
b0fce27ce2
docs: expand explanation of patchShebangs hook
...
- 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-21 09:27:09 +02:00
Samuel Ainsworth
a7fc2f6392
autoPatchelfHook: more precise dependency ignorance
2022-04-11 01:28:55 +00:00
Adam Joseph
c9d66a7fff
cross-compilation.chapter.md: give examples of all depFooBar cases
...
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-04-02 19:41:49 -07:00
Jan Tojnar
e61eec13a5
Merge pull request #159344 from symphorien/doc-remove-references-to
...
doc: document remove-references-to
2022-02-19 15:17:05 +01:00
Guillaume Girol
f16a62bd63
doc: document remove-references-to
2022-02-19 12:00:00 +00:00
Guillaume Girol
02a8d5984c
doc: discourage setting phases
, document/encourage runHook instead.
...
Source:
https://matrix.to/#/!kjdutkOsheZdjqYmqp:nixos.org/$mff3KCoPY5sfgsUhKn0e4va7hnz7KMXARaO2_UaLNM4?via=nixos.org&via=matrix.org&via=nixos.dev
2022-02-12 12:00:00 +00:00
Robert Hensing
c9b3d27be0
stdenv.md: Call out that genericBuild has correct order
...
Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
2022-02-02 23:45:51 +01:00
Robert Hensing
0838f79f0b
stdenv.md: Document genericBuild
2022-02-01 16:58:52 +01:00
Robert Hensing
b08ee51cc7
stdenv.md: Remove off topic phase propaganda
...
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-02-01 16:46:18 +01:00
Robert Hensing
9fb7d91888
Merge pull request #124556 from bergkvist/bergkvist/make-c-wrapper
...
Generate tiny compiled binary for wrapping executables
2021-12-10 00:45:30 +01:00