cinny-desktop: override cinny dependency with hashRouter

This commit is contained in:
Ryan Omasta 2024-08-18 15:59:43 -06:00
parent 237b25b556
commit ce84b361b5
No known key found for this signature in database

View File

@ -37,7 +37,11 @@ rustPlatform.buildRustPackage rec {
postPatch = let
cinny' =
assert lib.assertMsg (cinny.version == version) "cinny.version (${cinny.version}) != cinny-desktop.version (${version})";
cinny;
cinny.override {
conf = {
hashRouter.enabled = true;
};
};
in ''
substituteInPlace tauri.conf.json \
--replace '"distDir": "../cinny/dist",' '"distDir": "${cinny'}",'