mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
4a58f744f1
This ensures the package listing shows the expected informations.
20 lines
489 B
Nix
20 lines
489 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;
|
|
}
|