Commit Graph

6094 Commits

Author SHA1 Message Date
Nathan Henrie
1218148c55 nixpkgs-manual.lib-docs: fix sandboxed build on darwin
The darwin sandbox prevents this nix call from accessing `/nix/
store/.links` resulting in a build failure:

```
> error: getting status of '/nix/store/.links': Operation not permitted
```

Thanks to @emilazy for the workaround!

Fixes https://github.com/NixOS/nixpkgs/issues/339808
2024-09-12 12:44:17 -06:00
K900
4e803e9656 Merge remote-tracking branch 'origin/staging-next' into staging 2024-09-12 07:00:07 +03:00
Tomodachi94
9baf2743ad doc/hooks/desktop-file-utils: document hook 2024-09-11 18:01:32 -07:00
adisbladis
3fd64819c1 python3Packages.mkPythonEditablePackage: init (#339228) 2024-09-12 09:35:13 +12:00
github-actions[bot]
c248669008 Merge staging-next into staging 2024-09-09 06:05:35 +00:00
github-actions[bot]
92d531057e Merge master into staging-next 2024-09-09 06:05:06 +00:00
Daniel Nagy
8fdcf6d1c1 doc: add gradle language section 2024-09-08 18:30:00 +02:00
adisbladis
de1fdc9fe0 python3Packages.mkPythonEditablePackage: init 2024-09-08 17:13:21 +12:00
Philip Taron
4160ccc634 treewide: handle *Phases variables __structuredAttrs-agnostically (#339117) 2024-09-07 09:17:57 -07:00
github-actions[bot]
de15243c9a Merge master into staging-next 2024-09-07 12:04:51 +00:00
David McFarland
13a975148a dotnet: add override mechanism for nuget packages (#339953) 2024-09-07 09:00:01 -03:00
github-actions[bot]
319af78438 Merge master into staging-next 2024-09-07 06:04:15 +00:00
Philip Taron
29cca09041 rustPlatform.fetchCargoTarball: support pname+version (#332975) 2024-09-06 23:00:21 -07:00
Johannes Kirschbauer
71f01ce1fc Doc/importNpmLock: general improvements (#340019)
Co-authored-by: Valentin Gagarin <valentin@gagarin.work>
2024-09-07 07:59:02 +02:00
éclairevoyant
5c38beb516 doc/rust: prefer pname+version over name in fetchCargoTarball 2024-09-07 01:10:01 -04:00
Daniel Baker
3275f1af7d docs: rust: Improve wording about adding Cargo.lock to src
Improved the wording about adding the Cargo.lock file to src. It was not
clear when this operation was necessary.
2024-09-06 12:26:47 -07:00
David McFarland
cc9c59c478 buildDotnetModule: use individual dependencies for nugetDeps 2024-09-06 16:05:19 -03:00
Matthias Beyer
5ac6c5261d doc: Add missing debian12 attribute names
Fixes 7ec994050c, which added the debian12* attributes, but did not
update the documentation

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-09-05 14:05:27 +02:00
github-actions[bot]
b00b35b402 Merge master into staging-next 2024-09-05 06:04:41 +00:00
Gavin John
00a43d7d03 doc/languages-frameworks/python: update references to python 3.12 2024-09-04 19:52:52 -07:00
Gavin John
3e2e5daab4 doc/languages-frameworks/python: Reword section to make commit rules a bit clearer 2024-09-04 19:52:24 -07:00
Ilan Joselevich
8dce4a0063 doc/stdenv: fix typo in sourceRoot section (#339604) 2024-09-05 03:43:46 +03:00
github-actions[bot]
74cdd9c9b1 Merge master into staging-next 2024-09-05 00:13:11 +00:00
Philip Taron
afb866e64a yarnInstallHook: init (#328544) 2024-09-04 14:33:47 -07:00
seth
8bc8bbd1c9 doc/stdenv: fix typo in sourceRoot section 2024-09-04 14:43:23 -04:00
github-actions[bot]
563bb0fbc2 Merge master into staging-next 2024-09-04 18:04:23 +00:00
Robert Hensing
ce974f8107 doc/dockertools: add note about base image config inheritance (#339555) 2024-09-04 17:49:09 +01:00
Mathias Sven
138d76c31b doc/dockertools: add note about base image config inheritance 2024-09-04 15:41:32 +01:00
lelgenio
7783e118af yarnInstallHook: init 2024-09-04 11:15:47 -03:00
K900
23b4832da0 Merge remote-tracking branch 'origin/master' into staging-next 2024-09-04 08:53:48 +03:00
Silvan Mosberger
aec0d14834 treewide: Fix or remove some markdown links
Found using https://github.com/serokell/xrefcheck, which unfortunately
can't trivially be enforced in CI because we also have the manual markdown
files that need post-processing to be valid
2024-09-03 23:37:05 +02: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
github-actions[bot]
ce19166255 Merge master into staging-next 2024-09-02 18:04:19 +00:00
David McFarland
7bc85af0c5 buildDotnetModule: add testFilters arg (#336571) 2024-09-02 07:09:06 -07:00
github-actions[bot]
0cfb8626ee Merge staging-next into staging 2024-09-01 06:05:31 +00:00
adisbladis
74eefb4210 doc/languages-frameworks/python: fix typos (#322267) 2024-09-01 15:35:33 +12:00
Colin
d6de00150e doc/languages-frameworks/python: fix typos 2024-09-01 00:41:03 +00:00
github-actions[bot]
4544f25eb8 Merge staging-next into staging 2024-08-30 06:04:59 +00:00
github-actions[bot]
b9ec6f58ab Merge master into staging-next 2024-08-30 06:04:29 +00:00
adisbladis
93ff3f6b76 python3Packages.psycopg2-binary: Fix pname spelling 2024-08-30 15:25:36 +12:00
Robert Schütz
c3925f7268 mkPythonMetaPackage: init meta package function (and psycopg2-binary) (#337621) 2024-08-29 17:30:11 -07:00
adisbladis
d3e7844bbc python3Packages.psycopg2-binary: init at 2.9.9
Pscycopg2-binary is normally used in Python development to avoid having to build psycopg2 from source.
In nixpkgs we always want ot build from source whenever possible, but it can still be useful to provide a psycopg2-binary package.

This "fake" package exists to satisfy a dependency on psycopg2-binary, but still use the build from psycopg2.

cc @misuzu https://github.com/nix-community/pyproject.nix/issues/143
2024-08-30 11:05:29 +12:00
github-actions[bot]
eacf5283f3 Merge staging-next into staging 2024-08-29 18:04:46 +00:00
github-actions[bot]
d83e365b06 Merge master into staging-next 2024-08-29 18:04:21 +00:00
adisbladis
9c7ff7277c importNpmLock.buildNodeModules: init
`importNpmLock.buildNodeModules` returns a derivation with a pre-built `node_modules` directory, as imported by `importNpmLock`.
This is to be used together with `importNpmLock.hooks.linkNodeModulesHook` to facilitate `nix-shell`/`nix develop` based development workflows:

```nix
pkgs.mkShell {
  packages = [
    importNpmLock.hooks.linkNodeModulesHook
    nodejs
  ];

  npmDeps = importNpmLock.buildNodeModules {
    npmRoot = ./.;
    inherit nodejs;
  };
}
```
will create a development shell where a `node_modules` directory is created & packages symlinked to the Nix store when activated.

This code is adapted from https://github.com/adisbladis/buildNodeModules
2024-08-29 06:12:07 -07:00
adisbladis
8cd58c7e14 python3Packages.mkPythonMetaPackage: init
This function exists create a meta package containing [metadata files](https://packaging.python.org/en/latest/specifications/recording-installed-packages/) to satisfy a dependency on a package, without it actually having been installed into the environment.
2024-08-30 00:24:31 +12:00
Anderson Torres
1fc77a5ce2 doc: rewrite installShellFiles 2024-08-28 19:56:12 -03:00
github-actions[bot]
4420fe8b58 Merge staging-next into staging 2024-08-28 12:05:53 +00:00
github-actions[bot]
42531ffc56 Merge master into staging-next 2024-08-28 12:05:25 +00:00
Matthias Beyer
f78adb0891 doc: Move "This is equivalent to" into example block
This patch moves the code snippet which is shown as equivalent to the
example into the actual example block.

Visually, it was not easy to parse that the "equivalent" code piece
belonged to the code snippet that was hidden in the example (which is
collapsed by default).

By moving it into the example block, the "equivalent" piece is hidden by
default as well.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-08-28 11:26:23 +02:00