Commit Graph

6094 Commits

Author SHA1 Message Date
Valentin Gagarin
61235d4471 docs: fix devmode for manuals
hard-coding a relative path will use the calling process's working
directory, but we want the path relative to the Nix expression.
2025-01-24 18:05:03 +01:00
Alyssa Ross
53de5140ae Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
	pkgs/applications/editors/vim/plugins/non-generated/nvim-spectre/default.nix
	pkgs/applications/editors/vim/plugins/non-generated/sg-nvim/default.nix
	pkgs/by-name/ce/cedar/package.nix
	pkgs/by-name/gn/gnome-podcasts/package.nix
	pkgs/by-name/ru/rust-analyzer-unwrapped/package.nix
	pkgs/by-name/sy/systemctl-tui/package.nix
	pkgs/by-name/ti/tinty/package.nix
2025-01-24 16:40:22 +01:00
Connor Baker
b2416f4485 no-broken-symlinks: restrict checks to symlinks pointing inside the store 2025-01-23 15:59:18 -08:00
Weijia Wang
1e04dc2000 nixos/{rippled,rippleDataApi}: drop (#374568) 2025-01-23 20:15:51 +01:00
Robert Hensing
0f9034d8b5 lib: Discourage use of extend
It creates interoperability issues that can not be reconciled by
`lib` or maintainers of projects that use the Nixpkgs library.
Occasionally, end users may be able to solve the problems they run
into, but most are not prepared to deal with this set of problems,
nor should they be.

Typical conflict:
- User wants to propagate their own lib, because it has some function
  they like to use throughout their projects
- Project maintainer requires the project's lib to be used

No sane language uses a single namespace for combining all the things.
(Arguably not even C with its extensive use of prefixing)

Meanwhile, in Nix, all symbols are first class variables. We don't even
have the concept of a global top-level namespace to pour everything into.
With `lib` you can try to approximate that, I get the appeal of its
apparent simplicity, but since `lib` can't be global, we just don't even
get that apparent simplicity.

I apologize for not offering concrete solutions to this in the text.
The manuals are limited to reference documentation.
Alternatives - of which we have multiple - are best provided in
task-oriented documentation, e.g. nix.dev.
2025-01-23 08:27:29 +01:00
Philip Taron
9e56333a3b stdenv: add no-broken-symlinks hook (#370750) 2025-01-22 17:14:11 -08:00
nixpkgs-ci[bot]
230d01bf7b Merge 4ea755ed46 into haskell-updates 2025-01-23 00:17:37 +00:00
Connor Baker
51b2764e9f no-broken-symlinks: provide only dontCheckForBrokenSymlinks and test against absolute symlinks 2025-01-22 11:05:13 -08:00
nixpkgs-ci[bot]
2aa9dde422 Merge staging-next into staging 2025-01-22 18:05:12 +00:00
Philip Taron
b83e120344 lib.extendMkDerivation: init (#234651)
It's not the longest-open PR (May 28, 2023 -> Jan 22, 2025) but it took a while. This PR introduces a unified approach to implementing build helpers that support fixed-point arguments and bring such support to existing build helpers.
2025-01-22 05:10:25 -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]
157a92064e Merge 6a3dd6351f into haskell-updates 2025-01-21 00:17:28 +00:00
nixpkgs-ci[bot]
fe64053a45 Merge staging-next into staging 2025-01-20 06:05:33 +00:00
OTABI Tomoya
19b51c4d57 doc: Fix typo in python docs (extras_requires -> extras_require) (#375141) 2025-01-20 09:42:10 +09:00
Ihar Hrachyshka
ebc7c89271 doc: Fix typo in python docs (extras_requires -> extras_require) 2025-01-19 15:14:56 -05:00
sternenseemann
3b6a2f24da Merge commit 4b5b5d19d2 into haskell-updates 2025-01-19 19:21:08 +01:00
nixpkgs-ci[bot]
f5040a1188 Merge staging-next into staging 2025-01-19 12:05:25 +00:00
7c6f434c
133940fb2a tinycc: 0.9.27-unstable-2022-07-15 -> 0.9.27-unstable-2025-01-06 (#374684) 2025-01-19 11:20:24 +00:00
Coutinho de Souza
d83bbac9ea tinycc: 0.9.27-unstable-2022-07-15 -> 0.9.27-unstable-2025-01-06
Fix checkPhase by making it instalCheckPhase, since tcc depends on
libtcc1.a, which is build together with it, for its tests.

Create dev, doc and lib outpus. Now the binaries, i. e., tcc and the
cross compilers are what the user gets with tinycc.out.

Make the recipe compliant with nixpkgs-hammer.

Enable parallel building.
2025-01-18 22:33:37 -03:00
nixpkgs-ci[bot]
6d43ecacaa Merge staging-next into staging 2025-01-18 18:04:38 +00:00
nixpkgs-ci[bot]
0cae90809c Merge master into staging-next 2025-01-18 18:04:10 +00:00
Yueh-Shun Li
bbdf8601bc doc: add chapter Fixed-point arguments of build helpers
Add "Fixed-point arguments of build helpers" chapter in "Builde helpers" part.

Co-authored-by: nicoo <nicoo@mur.at>
Co-authored-by: Silvan Mosberger <github@infinisil.com>
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Co-authored-by: Lin Jian <me@linj.tech>
Co-authored-by: Philip Taron <philip.taron@gmail.com>
2025-01-19 01:00:50 +08:00
Arne Keller
a3838482c1 doc/stdenv: accurately describe propagatedNativeBuildInputs (#354341) 2025-01-18 14:33:39 +01:00
nixpkgs-ci[bot]
c379c01390 Merge d60225cee0 into haskell-updates 2025-01-18 12:25:25 +00:00
nixpkgs-ci[bot]
57840d9056 Merge staging-next into staging 2025-01-18 00:14:16 +00:00
nixpkgs-ci[bot]
073155fd7b Merge master into staging-next 2025-01-18 00:13:38 +00:00
Matthieu Coudron
9c73444257 doc/neovim: better document the wrappers (#373805)
* doc/neovim: better document the wrappers

there is new wrapper interface `wrapNeovimUnstable` in development intended to be
easier to use than the old `wrapNeovim`. It provides new fancy features that we would like to
leverage/advertise
The interface is not definitive yet so we provide a translation layer
to avoid breaking user configurations such that `wrapNeovim` still works.
This explains why we document both at the moment with the goal to remove
the old one once we ciment the interface.

* doc/neovim: explain what buildNeovimPlugin does
2025-01-17 17:03:13 -06:00
Christoph Heiss
f072624409 nixos/rippleDataApi: drop
Package was removed already in #358864.

[0] https://github.com/NixOS/nixpkgs/pull/358864

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2025-01-17 19:44:23 +01:00
Christoph Heiss
22ed62c140 nixos/rippled: drop
Package was already removed in #358864 [0].

[0] https://github.com/NixOS/nixpkgs/pull/358864

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2025-01-17 19:44:23 +01:00
nixpkgs-ci[bot]
82c60fcf1a Merge staging-next into staging 2025-01-17 14:33:03 +00:00
nixpkgs-ci[bot]
6df44a359d Merge master into staging-next 2025-01-17 14:32:26 +00:00
K900
ae2abfc64a nixos/hyperv-guest: drop fb_hyperv in favor of drm_hyperv (#372743) 2025-01-17 17:29:47 +03:00
nixpkgs-ci[bot]
237bfde6eb Merge 0bda27c93d into haskell-updates 2025-01-17 00:17:46 +00:00
K900
fd0beea84e Merge remote-tracking branch 'origin/staging-next' into staging 2025-01-16 09:07:19 +03:00
nixpkgs-ci[bot]
629be5e366 Merge fd5197d905 into haskell-updates 2025-01-16 00:17:46 +00:00
nixpkgs-ci[bot]
d4a1995529 Merge master into staging-next 2025-01-16 00:14:11 +00:00
seth
a4a489b2b1 doc/stdenv/platform-notes: fix typo (#374100) 2025-01-15 17:23:42 -05:00
Felix Stupp
3c20746f99 doc: Cross-reference roles syntax doc & implementation
reasoning:
- (doc -> code) make it easier to find where those are implemented
  - to get easier insight if/what a specific renderer does with it
  - in case one wants to improve them, which seems likely
    as they are rather Nix/NixOS-specific
  - (took me too long to find their implementation)
- (code -> doc) ensure changes to the code can be reflected in the doc
  - code authors might not know about the reference documentation
    or how to find it
2025-01-15 11:54:42 +00:00
K900
8dc719e17b Merge remote-tracking branch 'origin/staging-next' into staging 2025-01-15 10:54:04 +03:00
Emily
54f484c80e doc/stdenv/platform-notes: fix typo 2025-01-15 02:04:39 +00:00
github-actions[bot]
9129b13110 Merge master into staging-next 2025-01-15 00:14:20 +00:00
Austin Horstman
ac8bf74837 buildFHSEnv: allow specifying executableName explicitly (#371770) 2025-01-14 16:03:39 -06:00
K900
94e1e0a173 doc/rl-2505: relnote the videoMode removal 2025-01-14 09:47:22 +03:00
github-actions[bot]
b81f25c3f7 Merge ebc074d89f into haskell-updates 2025-01-13 00:19:18 +00:00
github-actions[bot]
3f9a94303c Merge staging-next into staging 2025-01-13 00:16:12 +00:00
github-actions[bot]
55c6be8a58 Merge master into staging-next 2025-01-13 00:15:45 +00:00
Matthieu C.
3f2423e8a8 doc/neovim: move neovim to its own section
I wanted to add instructions on how to configure neovim via the new
wrapper but it was difficult mixing this with both the vim and old
wrapper.
Neovim differs enough from vim to warrant its own section IMO:
1. its wrapper is different (old wrapper close to vim's syntax, new one
   not so much)
2. treesitter is unique to neovim
3. the section about neovim plugins is unique to neovim as well. Not
   only that but it needs to expanded.

At some point the doc unique to vim is going to exceed vim's.
We can refer to vim's section to avoid duplication where it makes sense.
2025-01-12 23:33:32 +01:00
Yueh-Shun Li
8be69aee96 doc: python: elaborate the makeWrapperArgs behaviour 2025-01-09 18:36:39 +08:00
Yueh-Shun Li
1e8f39148a unittestCheckHook: handle unittestFlagsArray __structuredAttrs-agnostically
Take unittestFlags as the new and conforming interface.

Keep unittestFlagsArray as is.
2025-01-09 18:36:39 +08:00
Yueh-Shun Li
26f09762a8 pytestCheckHook: support __structuredAttrs
Add flag pytestFlags as the new, conforming interface
replacing pytestFlagsArray.

Stop Bash-expanding disabledTests and disabledTestPaths.

Handle disabledTestPaths with `pytest --ignore-glob <path>`
to keep globbing support.
Check if each path glob matches at least one path
using the `glob` module from the Python standard library.

Also make buildPythonPackage and buildPythonApplication
stop escaping the elements of disabledTests and disabledTestPaths.
2025-01-09 18:36:37 +08:00