Skip to content

Commit

Permalink
qtcreator: 4.2.1 -> 4.3.0 (#26627)
Browse files Browse the repository at this point in the history
* qtcreator: 4.2.1 -> 4.3.0

Update qtcreator to version 4.3.0.

Remove explicit creation and installation of a desktop file, since one
is already provided in the distribution package.

* qtcreator: use full executable path in the desktop file
  • Loading branch information
romildo authored and Mic92 committed Jun 18, 2017
1 parent 3a15cde commit 78b34f9
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions pkgs/development/qtcreator/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
with stdenv.lib;

let
baseVersion = "4.2";
revision = "1";
baseVersion = "4.3";
revision = "0";
in

stdenv.mkDerivation rec {
name = "qtcreator-${version}";
version = "${baseVersion}.${revision}";

src = fetchurl {
url = "http://download.qt-project.org/official_releases/qtcreator/${baseVersion}/${version}/qt-creator-opensource-src-${version}.tar.gz";
sha256 = "0f2slaf579q2anflf524lbhmpwrwy3hzjfxzs10n44r7s7yc4dr5";
url = "http://download.qt-project.org/official_releases/qtcreator/${baseVersion}/${version}/qt-creator-opensource-src-${version}.tar.xz";
sha256 = "1n3ihky72p6q69n6c8s5hacq8rxdqmmr6msg89w5amwd17sam7p9";
};

buildInputs = [ qtbase qtscript qtquickcontrols qtdeclarative ];
Expand All @@ -36,18 +36,8 @@ stdenv.mkDerivation rec {
'';

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__
substituteInPlace $out/share/applications/org.qt-project.qtcreator.desktop \
--replace "Exec=qtcreator" "Exec=$out/bin/qtcreator"
wrapQtProgram $out/bin/qtcreator
'';

Expand Down

0 comments on commit 78b34f9

Please sign in to comment.