summary refs log tree commit diff
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2021-06-04 09:29:58 +0200
committerJan Tojnar <jtojnar@gmail.com>2021-06-05 13:25:48 +0200
commit7497b4721c776cc8b2c04a93eb255d750b07b0f7 (patch)
treeb6d923a86de11d35ea92936f47de244b5f569287
parent1af9269ba7a497e2c338ae9aa65cf84b183a2966 (diff)
downloadnixpkgs-7497b4721c776cc8b2c04a93eb255d750b07b0f7.tar
nixpkgs-7497b4721c776cc8b2c04a93eb255d750b07b0f7.tar.gz
nixpkgs-7497b4721c776cc8b2c04a93eb255d750b07b0f7.tar.bz2
nixpkgs-7497b4721c776cc8b2c04a93eb255d750b07b0f7.tar.lz
nixpkgs-7497b4721c776cc8b2c04a93eb255d750b07b0f7.tar.xz
nixpkgs-7497b4721c776cc8b2c04a93eb255d750b07b0f7.tar.zst
nixpkgs-7497b4721c776cc8b2c04a93eb255d750b07b0f7.zip
doc: Fix make in nix-shell
When running make manually, makeFlags will not be passed. Let’s just use an environment variable.
-rw-r--r--doc/contributing/contributing-to-documentation.chapter.md2
-rw-r--r--doc/default.nix7
2 files changed, 4 insertions, 5 deletions
diff --git a/doc/contributing/contributing-to-documentation.chapter.md b/doc/contributing/contributing-to-documentation.chapter.md
index 642beba74d6..7fd4b93f0d2 100644
--- a/doc/contributing/contributing-to-documentation.chapter.md
+++ b/doc/contributing/contributing-to-documentation.chapter.md
@@ -7,7 +7,7 @@ You can quickly check your edits with `make`:
 ```ShellSession
 $ cd /path/to/nixpkgs/doc
 $ nix-shell
-[nix-shell]$ make $makeFlags
+[nix-shell]$ make
 ```
 
 If you experience problems, run `make debug` to help understand the docbook errors.
diff --git a/doc/default.nix b/doc/default.nix
index 25389fa2da7..ac382ec8519 100644
--- a/doc/default.nix
+++ b/doc/default.nix
@@ -17,10 +17,6 @@ in pkgs.stdenv.mkDerivation {
 
   src = lib.cleanSource ./.;
 
-  makeFlags = [
-    "PANDOC_LUA_FILTERS_DIR=${pkgs.pandoc-lua-filters}/share/pandoc/filters"
-  ];
-
   postPatch = ''
     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 nixpkgs-manual.epub" >> $out/nix-support/hydra-build-products
   '';
+
+  # Environment variables
+  PANDOC_LUA_FILTERS_DIR = "${pkgs.pandoc-lua-filters}/share/pandoc/filters";
 }