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 034a9c0e16aab12978bb4a1c1f0e86c64778b388)
This commit is contained in:
parent
527c0bbf84
commit
f0dfe62190
@ -7,7 +7,7 @@ You can quickly check your edits with `make`:
|
|||||||
```ShellSession
|
```ShellSession
|
||||||
$ cd /path/to/nixpkgs/doc
|
$ cd /path/to/nixpkgs/doc
|
||||||
$ nix-shell
|
$ nix-shell
|
||||||
[nix-shell]$ make $makeFlags
|
[nix-shell]$ make
|
||||||
```
|
```
|
||||||
|
|
||||||
If you experience problems, run `make debug` to help understand the docbook errors.
|
If you experience problems, run `make debug` to help understand the docbook errors.
|
||||||
|
@ -17,10 +17,6 @@ in pkgs.stdenv.mkDerivation {
|
|||||||
|
|
||||||
src = lib.cleanSource ./.;
|
src = lib.cleanSource ./.;
|
||||||
|
|
||||||
makeFlags = [
|
|
||||||
"PANDOC_LUA_FILTERS_DIR=${pkgs.pandoc-lua-filters}/share/pandoc/filters"
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
ln -s ${doc-support} ./doc-support/result
|
ln -s ${doc-support} ./doc-support/result
|
||||||
'';
|
'';
|
||||||
@ -37,4 +33,7 @@ in pkgs.stdenv.mkDerivation {
|
|||||||
echo "doc manual $dest manual.html" >> $out/nix-support/hydra-build-products
|
echo "doc manual $dest manual.html" >> $out/nix-support/hydra-build-products
|
||||||
echo "doc manual $dest nixpkgs-manual.epub" >> $out/nix-support/hydra-build-products
|
echo "doc manual $dest nixpkgs-manual.epub" >> $out/nix-support/hydra-build-products
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Environment variables
|
||||||
|
PANDOC_LUA_FILTERS_DIR = "${pkgs.pandoc-lua-filters}/share/pandoc/filters";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user