summary refs log tree commit diff
path: root/pkgs/applications/misc/sweethome3d/editors.nix
diff options
context:
space:
mode:
authorRaymond Gauthier <jraygauthier@gmail.com>2016-03-03 00:22:46 -0500
committerRaymond Gauthier <jraygauthier@gmail.com>2016-03-03 00:24:55 -0500
commitebc3f4bdf31507bbe7a8dd27a3d476ab4093dadd (patch)
treeb0825bbb2299dbdef644c36e9d396809447f90dd /pkgs/applications/misc/sweethome3d/editors.nix
parent77f8f35d57618c1ba456d968524f2fb2c3448295 (diff)
downloadnixpkgs-ebc3f4bdf31507bbe7a8dd27a3d476ab4093dadd.tar
nixpkgs-ebc3f4bdf31507bbe7a8dd27a3d476ab4093dadd.tar.gz
nixpkgs-ebc3f4bdf31507bbe7a8dd27a3d476ab4093dadd.tar.bz2
nixpkgs-ebc3f4bdf31507bbe7a8dd27a3d476ab4093dadd.tar.lz
nixpkgs-ebc3f4bdf31507bbe7a8dd27a3d476ab4093dadd.tar.xz
nixpkgs-ebc3f4bdf31507bbe7a8dd27a3d476ab4093dadd.tar.zst
nixpkgs-ebc3f4bdf31507bbe7a8dd27a3d476ab4093dadd.zip
sweethome3d: Improvements
 -  Replace non freedesktop `CAD` desktop category
    by categories taken from debian's desktop item.

    This make the desktop items appear under the
    `Graphic` category in DE menus instead of `Others`.

 -  Moved to new package icons as specified by
    upstream release notes.

 -  Moved to icon name instead of full path to
    a single icon as specified by freedesktop
    specification.

 -  Human readable desktop item names.
Diffstat (limited to 'pkgs/applications/misc/sweethome3d/editors.nix')
-rw-r--r--pkgs/applications/misc/sweethome3d/editors.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/applications/misc/sweethome3d/editors.nix b/pkgs/applications/misc/sweethome3d/editors.nix
index 87da1c6643b..d8c6461843e 100644
--- a/pkgs/applications/misc/sweethome3d/editors.nix
+++ b/pkgs/applications/misc/sweethome3d/editors.nix
@@ -9,19 +9,21 @@ let
     + "-editor";
   sweetName = m: v: sweetExec m + "-" + v;
 
+  getDesktopFileName = drvName: (builtins.parseDrvName drvName).name;
+
   mkEditorProject =
-  { name, module, version, src, license, description }:
+  { name, module, version, src, license, description, desktopName }:
 
   stdenv.mkDerivation rec {
     application = sweethome3dApp;
     inherit name module version src description;
     exec = sweetExec module;
     editorItem = makeDesktopItem {
-      inherit name exec;
+      inherit exec desktopName;
+      name = getDesktopFileName name;
       comment =  description;
-      desktopName = name;
       genericName = "Computer Aided (Interior) Design";
-      categories = "Application;CAD;";
+      categories = "Application;Graphics;2DGraphics;3DGraphics;";
     };
 
     buildInputs = [ ant jre jdk makeWrapper gtk3 gsettings_desktop_schemas ];
@@ -72,6 +74,7 @@ in {
       module = module;
       tag = "V_" + d2u version;
     };
+    desktopName = "Sweet Home 3D - Textures Library Editor";
   };
 
   furniture-editor = mkEditorProject rec {
@@ -86,6 +89,7 @@ in {
       module = module;
       tag = "V_" + d2u version;
     };
+    desktopName = "Sweet Home 3D - Furniture Library Editor";
   };
 
 }