about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--release.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/release.nix b/release.nix
index 50607ba5b279..3f7de2145ee3 100644
--- a/release.nix
+++ b/release.nix
@@ -48,6 +48,12 @@ let
           stripHash ${bzip2.src}
           cp -pv ${bzip2.src} externals/$strippedName
         '';
+
+        preDist = ''
+          make -C doc/manual install prefix=$out
+          echo "doc manual $out/share/doc/nix/manual" >> $out/nix-support/hydra-build-products
+          echo "doc release-notes $out/share/doc/nix/release-notes" >> $out/nix-support/hydra-build-products
+        '';
       };
 
 
@@ -68,11 +74,6 @@ let
           --disable-init-state
           --with-bdb=${db45} --with-aterm=${aterm242fixes} --with-bzip2=${bzip2}
         '';
-
-        postInstall = ''
-          echo "doc manual $out/share/doc/nix/manual" >> $out/nix-support/hydra-build-products
-          echo "doc release-notes $out/share/doc/nix/release-notes" >> $out/nix-support/hydra-build-products
-        '';
       };