From 4dd4be6e8ab5606a5b77a0f72f5efe5d18f2be7f Mon Sep 17 00:00:00 2001 From: Skyler Grey Date: Fri, 17 May 2024 20:26:07 +0000 Subject: [PATCH] fix: Remove garbage "hash-source" path from content Previously, when this was used as a flake, the src/content/wiki directory was as empty folder. This meant that the nix script would move the content in, keeping the source folder name intact By moving the content of the folder, we can mitigate this issue no matter whether the folder was pre-existing --- nix/packages/docs-site/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/packages/docs-site/default.nix b/nix/packages/docs-site/default.nix index 7113826..3f0d8c9 100644 --- a/nix/packages/docs-site/default.nix +++ b/nix/packages/docs-site/default.nix @@ -19,8 +19,8 @@ buildNpmPackage { npmFlags = [ "--ignore-scripts" ]; postUnpack = '' - mkdir -p $sourceRoot/src/content - cp -r ${inputs.wiki} $sourceRoot/src/content/wiki + mkdir -p $sourceRoot/src/content/wiki + cp -r ${inputs.wiki}/* $sourceRoot/src/content/wiki ''; installPhase = ''