aboutsummaryrefslogtreecommitdiff
path: root/pkgs/applications/office/softmaker/generic.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/office/softmaker/generic.nix')
-rw-r--r--pkgs/applications/office/softmaker/generic.nix14
1 files changed, 6 insertions, 8 deletions
diff --git a/pkgs/applications/office/softmaker/generic.nix b/pkgs/applications/office/softmaker/generic.nix
index 56f3cb74363f..fbde26058e1b 100644
--- a/pkgs/applications/office/softmaker/generic.nix
+++ b/pkgs/applications/office/softmaker/generic.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, autoPatchelfHook, makeDesktopItem, makeWrapper
+{ stdenv, fetchurl, autoPatchelfHook, makeDesktopItem, makeWrapper, copyDesktopItems
# Dynamic Libraries
, curl, libGL, libX11, libXext, libXmu, libXrandr, libXrender
@@ -8,7 +8,7 @@
, coreutils, libredirect
# Extra utilities used by the SoftMaker applications.
-, gnugrep, utillinux, which
+, gnugrep, util-linux, which
, pname, version, edition, suiteName, src, archive
@@ -27,6 +27,7 @@ in stdenv.mkDerivation {
nativeBuildInputs = [
autoPatchelfHook
+ copyDesktopItems
makeWrapper
];
@@ -72,7 +73,7 @@ in stdenv.mkDerivation {
extraWrapperArgs = ''
--set LD_PRELOAD "${libredirect}/lib/libredirect.so" \
--set NIX_REDIRECTS "/bin/ls=${coreutils}/bin/ls" \
- --prefix PATH : "${stdenv.lib.makeBinPath [ coreutils gnugrep utillinux which ]}"
+ --prefix PATH : "${stdenv.lib.makeBinPath [ coreutils gnugrep util-linux which ]}"
'';
in ''
runHook preInstall
@@ -110,17 +111,14 @@ in stdenv.mkDerivation {
# remove broken symbolic links
find $out -xtype l -ls -exec rm {} \;
- # Add desktop items
- ${desktopItems.planmaker.buildCommand}
- ${desktopItems.presentations.buildCommand}
- ${desktopItems.textmaker.buildCommand}
-
# Add mime types
install -D -t $out/share/mime/packages ${pname}/mime/softmaker-*office*${shortEdition}.xml
runHook postInstall
'';
+ desktopItems = builtins.attrValues desktopItems;
+
meta = with stdenv.lib; {
description = "An office suite with a word processor, spreadsheet and presentation program";
homepage = "https://www.softmaker.com/";