Arnout Engelen
d311c0eaeb
doc: call out 'src' should ideally point to sources
...
And to mark packages otherwise.
2025-06-06 10:29:34 +02:00
Niklas Hambüchen
ee6c2bd2eb
doc: Fix missing pre/post hooks everywhere
2025-05-24 13:22:41 +00:00
Naïm Camille Favier
9c4a331e76
makeWrapper: --add-flag and --append-flag arguments ( #400649 )
2025-04-28 20:43:03 +02:00
BirdeeHub
7b9c6346ff
makeWrapper: --add-flag and --append-flag arguments
...
also:
manual: differences in makeWrapper implementations better explained
Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh
Co-authored-by: Naïm Camille Favier <n@monade.li>
Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh
Co-authored-by: Naïm Camille Favier <n@monade.li>
Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh
Co-authored-by: Naïm Camille Favier <n@monade.li>
Update pkgs/build-support/setup-hooks/make-wrapper.sh
Co-authored-by: Naïm Camille Favier <n@monade.li>
Update pkgs/build-support/setup-hooks/make-wrapper.sh
Co-authored-by: Naïm Camille Favier <n@monade.li>
Update pkgs/build-support/setup-hooks/make-wrapper.sh
Co-authored-by: Naïm Camille Favier <n@monade.li>
Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh
Co-authored-by: Naïm Camille Favier <n@monade.li>
Update pkgs/build-support/setup-hooks/make-wrapper.sh
Co-authored-by: Naïm Camille Favier <n@monade.li>
Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh
Co-authored-by: Naïm Camille Favier <n@monade.li>
Update pkgs/build-support/setup-hooks/make-wrapper.sh
Co-authored-by: Naïm Camille Favier <n@monade.li>
2025-04-25 12:57:29 -07:00
K900
1bb422239f
Merge remote-tracking branch 'origin/staging-next' into staging
2025-04-21 10:01:23 +03:00
Pol Dellaiera
b4515ff6c2
doc: use finalAttrs
pattern
2025-04-21 07:02:49 +02:00
Pol Dellaiera
47f000d991
doc: add missing phase hooks
2025-04-21 07:02:49 +02:00
nixpkgs-ci[bot]
c229332680
Merge staging-next into staging
2025-04-17 00:16:17 +00:00
Pol Dellaiera
bcea0cf344
doc: update Nix code snippets format
...
Command: `mdcr --config doc/tests/mdcr-config.toml doc/`
2025-04-17 01:30:34 +02:00
nixpkgs-ci[bot]
bd5d8282de
Merge staging-next into staging
2025-04-13 18:04:59 +00:00
Robert Scott
1d03dcdba2
doc/stdenv: reword trivialautovarinit
section to reduce confusion ( #380622 )
2025-04-13 13:51:18 +01:00
Robert Scott
781b42b87d
cc-wrapper: add nostrictaliasing hardening flag support
...
this equates to -fno-strict-aliasing
this is not a particularly new flag and is supported by all our
gcc and clang versions.
add to pkgsExtraHardening's defaultHardeningFlags.
2025-04-06 12:52:47 +01:00
Robert Scott
d8e8916c2c
doc/stdenv: reword trivialautovarinit
section to reduce confusion
...
this paragraph makes more sense if the order of the sentences
is changed to be problem -> solution
2025-02-09 12:41:16 +00:00
Robert Scott
5fea611634
docs: mention promotion of stackclashprotection
hardening flag to default enabled
2025-02-09 10:58:59 +00:00
K900
af55d5afc2
Merge remote-tracking branch 'origin/master' into staging-next
2025-02-05 09:44:25 +03:00
Pol Dellaiera
5b2753b035
doc/stdenv: fix typo in dependency propagation ( #379300 )
2025-02-05 06:41:33 +01:00
Lin Jian
edda698276
doc/stdenv: fix typo in dependency propagation
2025-02-04 17:19:53 +08:00
K900
945d2e2a7a
Merge remote-tracking branch 'origin/master' into staging-next
2025-02-03 18:00:08 +03:00
Lin Jian
9dde0e79a2
doc/stdenv: delete a confusing sentence for writableTmpDirAsHomeHook
2025-02-03 22:10:33 +08:00
Alyssa Ross
dffcaaaa64
Merge remote-tracking branch 'origin/master' into staging-next
...
Conflicts:
pkgs/applications/virtualization/crosvm/default.nix
pkgs/by-name/as/ast-grep/package.nix
pkgs/by-name/ca/cargo-mobile2/package.nix
pkgs/by-name/cl/clang-tidy-sarif/package.nix
pkgs/by-name/gg/gg-jj/package.nix
pkgs/by-name/gi/git-warp-time/package.nix
pkgs/by-name/je/jellyfin-rpc/package.nix
pkgs/by-name/ne/netbox2netshot/package.nix
pkgs/by-name/sy/sydbox/package.nix
pkgs/by-name/te/television/package.nix
pkgs/development/python-modules/tinytuya/default.nix
2025-01-31 10:23:31 +01:00
Pol Dellaiera
f8110737ae
build-support: add writableTmpDirAsHomeHook
hook
2025-01-27 19:41:13 +01:00
Pol Dellaiera
87521c59b6
build-support: add addBinToPathHook
hook
2025-01-27 19:41:13 +01:00
Connor Baker
b2416f4485
no-broken-symlinks: restrict checks to symlinks pointing inside the store
2025-01-23 15:59:18 -08:00
Connor Baker
51b2764e9f
no-broken-symlinks: provide only dontCheckForBrokenSymlinks and test against absolute symlinks
2025-01-22 11:05:13 -08:00
Connor Baker
4e8e175c7c
doc: add stdenv entry for no-broken-symlinks.sh
2025-01-21 17:35:14 -08:00
nixpkgs-ci[bot]
0cae90809c
Merge master into staging-next
2025-01-18 18:04:10 +00:00
Arne Keller
a3838482c1
doc/stdenv: accurately describe propagatedNativeBuildInputs ( #354341 )
2025-01-18 14:33:39 +01:00
Wolfgang Walther
cf127c9dc3
treewide: load structured attributes in all bash builders consistently
...
It's hard to put the sourcing of ./.attrs.sh into all builder
consistently - mistakes will happen. Thus, load structured attrs once in
make-derivation and then source the remaining builder on top.
This should fix quite a few builders with structured attributes in
principle. Most importantly it helps substitute / substituteAll, which
are required for bootstrap on some platforms.
2024-12-29 18:36:47 +01:00
Peter Waller
3fc1a00773
bintools-wrapper: introduce ld-wrapper-hook
...
The existing post-link-hook is in an unfortunate position since it does
not enable interposing the arguments of the compiler.
This is an RFC to add a hook which enables that.
Signed-off-by: Peter Waller <p@pwaller.net>
2024-12-20 23:53:25 +00:00
FliegendeWurst
ae2d745af6
doc/stdenv: accurately describe propagatedNativeBuildInputs
2024-11-07 23:22:53 +01:00
Jared Baur
d38743dce8
stdenv: fix documentation for stripAllFlags and stripDebugFlags
...
The documentation for the default flags used for both fields were incomplete.
2024-10-29 08:02:35 -07:00
github-actions[bot]
1c4acc409e
Merge staging-next into staging
2024-09-16 06:05:33 +00:00
Tomodachi94
066125b663
doc/stdenv/stdenv: document runHook function
...
Not quite satisfied with this, but it's better than nothing.
2024-09-14 21:28:09 -07:00
Philip Taron
4160ccc634
treewide: handle *Phases
variables __structuredAttrs
-agnostically ( #339117 )
2024-09-07 09:17:57 -07:00
seth
8bc8bbd1c9
doc/stdenv: fix typo in sourceRoot section
2024-09-04 14:43:23 -04:00
Yueh-Shun Li
5ec4f676b4
doc/stdenv: document the format of *Phases
...
Require the elements of *Phases not to contain spaces.
Require the *Phases attribute to be specified as Nix Language lists.
2024-09-03 05:56:17 +08:00
Robert Scott
745046d266
doc/stdenv: hardening flags: add section on pacret hardening flag
2024-07-28 19:27:21 +01:00
Robert Scott
5ce990eb57
doc/stdenv: add section on shadowstack hardening flag
2024-07-28 17:40:53 +01:00
John Ericson
000b58721f
Merge remote-tracking branch 'upstream/master' into openbsd-static
2024-07-09 18:18:47 -04:00
John Ericson
676df1cf2d
openbsd: Add static linking support
...
I've had better luck creating statically-linked binaries that work than
dynamically-linked ones, so this is needed quite practically.
2024-07-09 18:17:06 -04:00
github-actions[bot]
d77a3adc09
Merge master into staging-next
2024-07-03 00:02:45 +00:00
Doron Behar
f42d4debf0
doc: recommend versionCheckHook whenever relevant
2024-06-28 18:03:59 +03:00
Robert Scott
f52a4c6810
doc/stdenv: hardening flags: add example error for trivialautovarinit
2024-06-22 01:11:27 +01:00
Rick van Schijndel
43ce0f9ee0
Merge pull request #318256 from risicle/ris-stack-clash-protection
...
cc-wrapper: add stack clash protection hardening flag
2024-06-19 19:54:30 +02:00
github-actions[bot]
f9c7b930b4
Merge staging-next into staging
2024-06-11 12:01:44 +00:00
Travis A. Everett
9ff9bbdb34
doc: add stdenv passthru chapter ( #315909 )
...
* doc: add stdenv passthru chapter
Broad strokes:
- create the chapter
- move existing stdenv passthru coverage into it
- move out-of-place coverage of passthru.tests from the stdenv meta chapter into it
- (try to) apply 1-sentence-per-line to text I've touched
- add legacy anchors for everything moved
- update existing links to the new anchors
- add tentative motivating text
- make nixpkgs-internal links relative/branchless
razor: if it is only ever needed by contributors, which is likely if links
refer to the latest revision of the source code, then it's for
the contributor guide
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2024-06-11 10:51:03 +02:00
Robert Scott
a3f5640dd7
doc/stdenv: hardening flags: add section on stackclashprotection
2024-06-07 20:24:46 +01:00
Robert Scott
932bf58e90
doc/stdenv: hardening flags: move zerocallusedregs into "enabled by default" section
...
following dd80ca4d00
2024-06-07 20:17:51 +01:00
Robert Scott
062f1fa52a
doc/stdenv: hardening flags: add section on trivialautovarinit
2024-06-05 23:10:20 +01:00
Robert Scott
39f39b5568
doc/stdenv: hardening flags: add section on zerocallusedregs
2024-06-05 23:10:20 +01:00