New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libreoffice: Templates for LibreOffice Impress #94753
base: master
Are you sure you want to change the base?
Conversation
@@ -1,4 +1,4 @@ | |||
{ libreoffice, runCommand, dbus, bash }: | |||
{ libreoffice, runCommand, dbus, bash, plugins }: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you add the argument but don't use it...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@symphorien
I know. This is still a draft. I need to figure out how to complete wrapper.nix. If somebody has a suggestion please let me know.
@rycee I'm a bit unsure if I should add the templates as an optional option in default or put it in wrapper.nix as a plugin. What do you suggest? |
@flokli @rycee I'm a bit unsure if I should add the templates as an optional option in default or put it in wrapper.nix as a plugin. What do you suggest? |
Can you point libreoffice to a certain location to look for templates at all? What's the size of these templates when built? Given libreoffice itself is ~500MiB, some more MiB probably are fine, if a version without templates can still be built by passing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please push a version that builds.
If they're located at "/lib/libreoffice/share/template/" they should be discovered by default if LibreOffice has access to that path.
It's around ~100MB. I personally would prefer a package called "libreofficePlugins.impress-templates" making room for more plugins at a later time. I'm a bit stuck on this as different packages write there plugins.nix in a different way. My plan is to do a "callPackage" for libreofficePlugins in either all-packages.nix or default.nix for libreoffice and then the user can specify to build all plugins or just impress-templates and by default none would get build. A link to an inspirational plugins.nix or a hint in the right direction would be very appreciated. |
a1d4f36
to
38e9172
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/making-plugin-section-for-libreoffice/8676/1 |
@primeos Looking at my comment above would you be able to give me some advice? |
@LouisDK1 please don't start to cc me randomly, I can only help if I'm familiar with the things you change. If that was due mentioned Chromium plugins then that makes sense. But I never touched the plugin related stuff. You can use things like the GitHub UI or Edit: But as a hint: If you look at https://github.com/NixOS/nixpkgs/pull/94753/files the parts with a red text background are due to syntax errors. |
@@ -0,0 +1,37 @@ | |||
{ stdenv, fetchFromGitHub, ruby.devEnv, zip }: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll probably need something like
{ stdenv, fetchFromGitHub, ruby.devEnv, zip }: | |
{ stdenv, fetchFromGitHub, ruby, zip }: |
I marked this as stale due to inactivity. → More info |
6b35026
to
8c04023
Compare
I marked this as stale due to inactivity. → More info |
Motivation for this change
LibreOffice Impress has few templates by default so I want to get some more.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)