Skip to content

Commit f0dfe62

Browse files
jtojnargithub-actions[bot]
authored andcommitted
doc: Fix make in nix-shell
When running make manually, makeFlags will not be passed. Let’s just use an environment variable. (cherry picked from commit 034a9c0)
1 parent 527c0bb commit f0dfe62

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

doc/contributing/contributing-to-documentation.chapter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ You can quickly check your edits with `make`:
77
```ShellSession
88
$ cd /path/to/nixpkgs/doc
99
$ nix-shell
10-
[nix-shell]$ make $makeFlags
10+
[nix-shell]$ make
1111
```
1212

1313
If you experience problems, run `make debug` to help understand the docbook errors.

doc/default.nix

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ in pkgs.stdenv.mkDerivation {
1717

1818
src = lib.cleanSource ./.;
1919

20-
makeFlags = [
21-
"PANDOC_LUA_FILTERS_DIR=${pkgs.pandoc-lua-filters}/share/pandoc/filters"
22-
];
23-
2420
postPatch = ''
2521
ln -s ${doc-support} ./doc-support/result
2622
'';
@@ -37,4 +33,7 @@ in pkgs.stdenv.mkDerivation {
3733
echo "doc manual $dest manual.html" >> $out/nix-support/hydra-build-products
3834
echo "doc manual $dest nixpkgs-manual.epub" >> $out/nix-support/hydra-build-products
3935
'';
36+
37+
# Environment variables
38+
PANDOC_LUA_FILTERS_DIR = "${pkgs.pandoc-lua-filters}/share/pandoc/filters";
4039
}

0 commit comments

Comments
 (0)