3
0
Fork 0
forked from mirrors/nixpkgs

doc: Fix make in nix-shell

When running make manually, makeFlags will not be passed. Let’s just use an environment variable.
This commit is contained in:
Jan Tojnar 2021-06-04 09:29:58 +02:00
parent 1af9269ba7
commit 7497b4721c
2 changed files with 4 additions and 5 deletions

View file

@ -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.

View file

@ -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";
} }