2018-03-27 18:18:49 +01:00
|
|
|
{ libreoffice, runCommand, dbus, bash }:
|
|
|
|
let
|
|
|
|
jdk = libreoffice.jdk;
|
|
|
|
in
|
2019-09-09 00:38:31 +01:00
|
|
|
(runCommand libreoffice.name {
|
2018-03-27 18:18:49 +01: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 18:52:26 +00:00
|
|
|
'') // {
|
|
|
|
inherit libreoffice dbus;
|
|
|
|
meta = libreoffice.meta;
|
|
|
|
}
|