8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
19 lines
484 B
Nix
19 lines
484 B
Nix
{ 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
|
|
'') // {
|
|
inherit libreoffice dbus;
|
|
meta = libreoffice.meta;
|
|
}
|