2018-03-27 19:18:49 +02:00
|
|
|
{ libreoffice, runCommand, dbus, bash }:
|
|
|
|
let
|
|
|
|
jdk = libreoffice.jdk;
|
|
|
|
in
|
2019-09-09 01:38:31 +02:00
|
|
|
(runCommand libreoffice.name {
|
2018-03-27 19:18:49 +02:00
|
|
|
inherit dbus libreoffice jdk bash;
|
|
|
|
} ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
ln -s "${libreoffice}/share" "$out/share"
|
|
|
|
substituteAll "${./wrapper.sh}" "$out/bin/soffice"
|
|
|
|
chmod a+x "$out/bin/soffice"
|
|
|
|
|
|
|
|
for i in $(ls "${libreoffice}/bin/"); do
|
|
|
|
test "$i" = "soffice" || ln -s soffice "$out/bin/$(basename "$i")"
|
|
|
|
done
|
2018-11-09 19:52:26 +01:00
|
|
|
'') // {
|
|
|
|
inherit libreoffice dbus;
|
|
|
|
meta = libreoffice.meta;
|
|
|
|
}
|