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:
parent
1af9269ba7
commit
7497b4721c
|
@ -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…
Reference in a new issue