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
parent 295db9c69c
commit faeb2204c3
Signed by: minion
GPG key ID: F27E3E5922772E7A

View file

@ -19,8 +19,8 @@ buildNpmPackage {
npmFlags = [ "--ignore-scripts" ]; npmFlags = [ "--ignore-scripts" ];
postUnpack = '' postUnpack = ''
mkdir -p $sourceRoot/src/content mkdir -p $sourceRoot/src/content/wiki
cp -r ${inputs.wiki} $sourceRoot/src/content/wiki cp -r ${inputs.wiki}/* $sourceRoot/src/content/wiki
''; '';
installPhase = '' installPhase = ''