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
This commit is contained in:
Skyler Grey 2024-05-17 20:26:07 +00:00 committed by Samuel Shuert
parent 295db9c69c
commit 4dd4be6e8a

View file

@ -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 = ''