Comments (12)
also i think i can patch onlyoffice instead
https://github.com/ONLYOFFICE/core/blob/02c78a1e6fb91260b371ccaa051e5d66a5d637c8/DesktopEditor/fontengine/ApplicationFonts.cpp#L1780
from erosanix.
yep
https://search.nixos.org/options?channel=22.11&show=fonts.fontDir.enable&from=0&size=50&sort=relevance&type=packages&query=font
though, this is a massive hack
from erosanix.
didnt work because onlyoffice was built from binary, but they've thankfully added a CUSTOM_PATH to play around with ONLYOFFICE/core@68582b6
from erosanix.
bummer, it doesn't work with symlinks. though, you could use something like this in order to get fonts to work
from erosanix.
worked a bad solution, but it's a solution:
nixpkgs.overlays = [
( self: super: {
onlyoffice-bin = super.onlyoffice-bin.overrideAttrs (old: {
preFixup = (old.preFixup or "") + ''
gappsWrapperArgs+=(
--set CUSTOM_FONTS_PATH "${pkgs.microsoft-fonts}/share/fonts/TTF" # or whatever font you desire to use
)
'';
});
})
];
from erosanix.
Yes, ONLYOFFICE has a known issue (which I've reported) when /usr/share/fonts contains symlinks. The ONLYOFFICE module uses the code from fonts.fontDir.enable
but I copy the fonts instead of creating symlinks to them.
I'm unable to reproduce your error. Can you show me the build log?
from erosanix.
Yes, ONLYOFFICE has a known issue (which I've reported) when /usr/share/fonts contains symlinks. The ONLYOFFICE module uses the code from
fonts.fontDir.enable
but I copy the fonts instead of creating symlinks to them.I'm unable to reproduce your error. Can you show me the build log?
The log is quite boring, as it's just a simple "folder not found" error.
log.txt
from erosanix.
I imported your module as a flake, added this to my nixOS modules: erosanix.nixosModules.onlyoffice
And invoked programs.onlyoffice.enable = true
;
from erosanix.
I pushed an update that I think will fix it.
The error message is correct in that the given path is not a directory; It's a symlink. The update copies the icons instead of using a symlink. There must be a difference between how that's handled on NixOS 22.11 and NixOS master.
from erosanix.
Uh, yeah, more bugs to crush unfortunately.
from erosanix.
OK, I see that the package on NixOS 21.11 doesn't have icons. I pushed an update that should work around that.
from erosanix.
Works perfectly now, thank you.
from erosanix.
Related Issues (14)
- protonvpn module is broken HOT 1
- sierrachart: Failed to get the function address for scsf_WaveTrendIndicator in C:\SierraChart\Data\SierraChartStudies.dll HOT 1
- mkWindowsApp - fileMapDuringAppInstall does not work
- roblox - mangohud support stopped working HOT 1
- foobar2000 2.0 HOT 1
- mkWindowsApp - OpenGL and Vulkan HUD is support is broken
- roblox - needs support for auto-updates HOT 1
- sierrachart operating slowly: keeping version at 2523 for now
- packaging sierrachart studies no longer works (for compiled studies)
- mkWindowsApp - fileMap only works if the base name of both components is the same HOT 4
- Line not working HOT 3
- mkWindowsApp - Add wayland support
- darwin? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from erosanix.