From b4df21469bedaa2b2543048beac00409a32ed809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sat, 2 Aug 2014 20:37:39 +0200 Subject: [PATCH] qtcreator: install desktop file --- pkgs/development/qtcreator/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/development/qtcreator/default.nix b/pkgs/development/qtcreator/default.nix index fd4483dbd6c2..dec94a912e00 100644 --- a/pkgs/development/qtcreator/default.nix +++ b/pkgs/development/qtcreator/default.nix @@ -41,6 +41,21 @@ stdenv.mkDerivation rec { installFlags = "INSTALL_ROOT=$(out)" + optionalString withDocumentation " install_docs"; + postInstall = '' + # Install desktop file + mkdir -p "$out/share/applications" + cat > "$out/share/applications/qtcreator.desktop" << __EOF__ + [Desktop Entry] + Exec=$out/bin/qtcreator + Name=Qt Creator + GenericName=Cross-platform IDE for Qt + Icon=QtProject-qtcreator.png + Terminal=false + Type=Application + Categories=Qt;Development;IDE; + __EOF__ + ''; + meta = { description = "Cross-platform IDE tailored to the needs of Qt developers"; longDescription = ''