Skip to content

Commit 1222438

Browse files
committed
Merge remote-tracking branch 'upstream/master' into tomberek.access-token-prefixing
2 parents c071722 + 8384e41 commit 1222438

File tree

133 files changed

+2857
-1008
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+2857
-1008
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[book]
2-
title = "Nix Reference Manual"
2+
title = "Nix @version@ Reference Manual"
33
src = "source"
44

55
[output.html]

doc/manual/meson.build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ manual = custom_target(
8383
'''
8484
@0@ @INPUT0@ @CURRENT_SOURCE_DIR@ > @DEPFILE@
8585
@0@ @INPUT1@ summary @2@ < @CURRENT_SOURCE_DIR@/source/SUMMARY.md.in > @2@/source/SUMMARY.md
86+
sed -e 's|@version@|@3@|g' < @INPUT2@ > @2@/book.toml
8687
rsync -r --include='*.md' @CURRENT_SOURCE_DIR@/ @2@/
8788
(cd @2@; RUST_LOG=warn @1@ build -d @2@ 3>&2 2>&1 1>&3) | { grep -Fv "because fragment resolution isn't implemented" || :; } 3>&2 2>&1 1>&3
8889
rm -rf @2@/manual
@@ -92,12 +93,13 @@ manual = custom_target(
9293
python.full_path(),
9394
mdbook.full_path(),
9495
meson.current_build_dir(),
96+
meson.project_version(),
9597
),
9698
],
9799
input : [
98100
generate_manual_deps,
99101
'substitute.py',
100-
'book.toml',
102+
'book.toml.in',
101103
'anchors.jq',
102104
'custom.css',
103105
nix3_cli_files,
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
synopsis: "Git LFS support"
3+
prs: [10153, 12468]
4+
---
5+
6+
The Git fetcher now supports Large File Storage (LFS). This can be enabled by passing the attribute `lfs = true` to the fetcher, e.g.
7+
```console
8+
nix flake prefetch 'git+ssh://[email protected]/Apress/repo-with-large-file-storage.git?lfs=1'
9+
```
10+
11+
A flake can also declare that it requires lfs to be enabled:
12+
```
13+
{
14+
inputs.self.lfs = true;
15+
}
16+
```
17+
18+
Author: [**@b-camacho**](https://github.com/b-camacho), [**@kip93**](https://github.com/kip93)

doc/manual/source/development/building.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $ nix-shell --attr devShells.x86_64-linux.native-clangStdenvPackages
2828

2929
> **Note**
3030
>
31-
> You can use `native-ccacheStdenvPackages` to drastically improve rebuild time.
31+
> You can use `native-ccacheStdenv` to drastically improve rebuild time.
3232
> By default, [ccache](https://ccache.dev) keeps artifacts in `~/.cache/ccache/`.
3333
3434
To build Nix itself in this shell:

flake.lock

Lines changed: 0 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
# work around 7730 and https://github.com/NixOS/nix/issues/7807
2121
inputs.git-hooks-nix.inputs.flake-compat.follows = "";
2222
inputs.git-hooks-nix.inputs.gitignore.follows = "";
23-
inputs.nixfmt.url = "github:NixOS/nixfmt";
2423

2524
outputs =
2625
inputs@{
@@ -155,6 +154,7 @@
155154
f = import ./packaging/components.nix {
156155
inherit (final) lib;
157156
inherit officialRelease;
157+
pkgs = final;
158158
src = self;
159159
};
160160
};
@@ -224,6 +224,30 @@
224224
LANG=C.UTF-8 ${pkgs.changelog-d}/bin/changelog-d ${./doc/manual/rl-next} >$out
225225
'';
226226
repl-completion = nixpkgsFor.${system}.native.callPackage ./tests/repl-completion.nix { };
227+
228+
/**
229+
Checks for our packaging expressions.
230+
This shouldn't build anything significant; just check that things
231+
(including derivations) are _set up_ correctly.
232+
*/
233+
packaging-overriding =
234+
let
235+
pkgs = nixpkgsFor.${system}.native;
236+
nix = self.packages.${system}.nix;
237+
in
238+
assert (nix.appendPatches [ pkgs.emptyFile ]).libs.nix-util.src.patches == [ pkgs.emptyFile ];
239+
if pkgs.stdenv.buildPlatform.isDarwin then
240+
lib.warn "packaging-overriding check currently disabled because of a permissions issue on macOS" pkgs.emptyFile
241+
else
242+
# If this fails, something might be wrong with how we've wired the scope,
243+
# or something could be broken in Nixpkgs.
244+
pkgs.testers.testEqualContents {
245+
assertion = "trivial patch does not change source contents";
246+
expected = "${./.}";
247+
actual =
248+
# Same for all components; nix-util is an arbitrary pick
249+
(nix.appendPatches [ pkgs.emptyFile ]).libs.nix-util.src;
250+
};
227251
}
228252
// (lib.optionalAttrs (builtins.elem system linux64BitSystems)) {
229253
dockerImage = self.hydraJobs.dockerImage.${system};
@@ -378,7 +402,7 @@
378402

379403
devShells =
380404
let
381-
makeShell = import ./packaging/dev-shell.nix { inherit inputs lib devFlake; };
405+
makeShell = import ./packaging/dev-shell.nix { inherit lib devFlake; };
382406
prefixAttrs = prefix: lib.concatMapAttrs (k: v: { "${prefix}-${k}" = v; });
383407
in
384408
forAllSystems (

maintainers/flake-module.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
};
4040
nixfmt-rfc-style = {
4141
enable = true;
42-
package = inputs.nixfmt.packages.${pkgs.hostPlatform.system}.default;
4342
excludes = [
4443
# Invalid
4544
''^tests/functional/lang/parse-.*\.nix$''

0 commit comments

Comments
 (0)