2018-03-27 19:18:49 +02:00
|
|
|
{ libreoffice, runCommand, dbus, bash }:
|
|
|
|
let
|
|
|
|
jdk = libreoffice.jdk;
|
|
|
|
in
|
|
|
|
(runCommand "${libreoffice.name}" {
|
|
|
|
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;
|
|
|
|
}
|