Skip to content

Commit

Permalink
softmaker-office: use copyDesktopItems hook
Browse files Browse the repository at this point in the history
  • Loading branch information
B4dM4n authored and Milan Pässler committed Nov 29, 2020
1 parent c3598cc commit ab345be
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pkgs/applications/office/softmaker/generic.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, autoPatchelfHook, makeDesktopItem, makeWrapper
{ stdenv, fetchurl, autoPatchelfHook, makeDesktopItem, makeWrapper, copyDesktopItems

# Dynamic Libraries
, curl, libGL, libX11, libXext, libXmu, libXrandr, libXrender
Expand Down Expand Up @@ -27,6 +27,7 @@ in stdenv.mkDerivation {

nativeBuildInputs = [
autoPatchelfHook
copyDesktopItems
makeWrapper
];

Expand Down Expand Up @@ -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/";
Expand Down

0 comments on commit ab345be

Please sign in to comment.