softmaker-office: use copyDesktopItems hook
This commit is contained in:
parent
c3598cc7d3
commit
ab345bed75
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, autoPatchelfHook, makeDesktopItem, makeWrapper
|
{ stdenv, fetchurl, autoPatchelfHook, makeDesktopItem, makeWrapper, copyDesktopItems
|
||||||
|
|
||||||
# Dynamic Libraries
|
# Dynamic Libraries
|
||||||
, curl, libGL, libX11, libXext, libXmu, libXrandr, libXrender
|
, curl, libGL, libX11, libXext, libXmu, libXrandr, libXrender
|
||||||
@ -27,6 +27,7 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoPatchelfHook
|
autoPatchelfHook
|
||||||
|
copyDesktopItems
|
||||||
makeWrapper
|
makeWrapper
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -110,17 +111,14 @@ in stdenv.mkDerivation {
|
|||||||
# remove broken symbolic links
|
# remove broken symbolic links
|
||||||
find $out -xtype l -ls -exec rm {} \;
|
find $out -xtype l -ls -exec rm {} \;
|
||||||
|
|
||||||
# Add desktop items
|
|
||||||
${desktopItems.planmaker.buildCommand}
|
|
||||||
${desktopItems.presentations.buildCommand}
|
|
||||||
${desktopItems.textmaker.buildCommand}
|
|
||||||
|
|
||||||
# Add mime types
|
# Add mime types
|
||||||
install -D -t $out/share/mime/packages ${pname}/mime/softmaker-*office*${shortEdition}.xml
|
install -D -t $out/share/mime/packages ${pname}/mime/softmaker-*office*${shortEdition}.xml
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
desktopItems = builtins.attrValues desktopItems;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "An office suite with a word processor, spreadsheet and presentation program";
|
description = "An office suite with a word processor, spreadsheet and presentation program";
|
||||||
homepage = "https://www.softmaker.com/";
|
homepage = "https://www.softmaker.com/";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user