···210 cp -r linux-package/{bin,share,lib} "$out"
211 cp linux-package/bin/kitten "$kitten/bin/kitten"
212 ''}
213+214+ # dereference the `kitty` symlink to make sure the actual executable
215+ # is wrapped on macOS as well (and not just the symlink)
216+ wrapProgram $(realpath "$out/bin/kitty") --prefix PATH : "$out/bin:${lib.makeBinPath [ imagemagick ncurses.dev ]}"
217218 installShellCompletion --cmd kitty \
219 --bash <("$out/bin/kitty" +complete setup bash) \
···34 })
35 # The webroot is hardcoded as ./wwwroot
36 ./change-webroot.diff
00000037 ];
38 postPatch = ''
39 substituteInPlace API/Services/DirectoryService.cs --subst-var out
···34 })
35 # The webroot is hardcoded as ./wwwroot
36 ./change-webroot.diff
37+ # Upstream removes database migrations between versions
38+ # Restore them to avoid breaking on updates
39+ # Info: Restores migrations for versions between v0.7.1.4 and v0.7.9
40+ # On update: check if more migrations need to be restored!
41+ # Migrations should at least allow updates from previous NixOS versions
42+ ./restore-migrations.diff
43 ];
44 postPatch = ''
45 substituteInPlace API/Services/DirectoryService.cs --subst-var out