1
Fork 0

Return to old homer asset handling

This commit is contained in:
prescientmoon 2024-02-24 04:27:19 +01:00
parent c8676f8395
commit 1340de563b
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -23,13 +23,15 @@ let
text = builtins.toJSON config;
destination = "/assets/config.yml";
})
] ++ extraAssets;
postBuid = lib.concatStringsSep "\n" (map
(asset: ''
mv $out/${asset} $out/assets/${asset}
'')
extraAssets);
] ++
lib.optional (extraAssets != [ ])
(runCommandLocal "homer-assets${nameSuffix}" { }
(builtins.concatStringsSep "\n" (map
(asset: ''
mkdir -p $out/assets/${dirOf asset}
ln -s ${asset} $out/assets/${asset}
'')
extraAssets)));
};
};
};