overlays/calibre-no-mime: rewrite with symlinkJoin

This commit is contained in:
Primrose 2025-08-09 23:28:54 +02:00
parent 57dd5ac4a9
commit 4c4ae20ee5
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -1,8 +1,11 @@
# cailbre is obnoxious about opening HTML
_: prev: {
calibre = prev.calibre.overrideAttrs (oldAttrs: {
postInstall = ''
final: prev: {
calibre = final.symlinkJoin {
name = "calibre";
paths = [prev.calibre];
buildInputs = [final.makeWrapper];
postBuild = ''
rm -r $out/share/mime
'';
});
};
}