Skip to content

Commit 78b34f9

Browse files
romildoMic92
authored andcommittedJun 18, 2017
qtcreator: 4.2.1 -> 4.3.0 (#26627)
* 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
1 parent 3a15cde commit 78b34f9

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed
 

Diff for: ‎pkgs/development/qtcreator/default.nix

+6-16
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
with stdenv.lib;
77

88
let
9-
baseVersion = "4.2";
10-
revision = "1";
9+
baseVersion = "4.3";
10+
revision = "0";
1111
in
1212

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

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

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

3838
postInstall = ''
39-
# Install desktop file
40-
mkdir -p "$out/share/applications"
41-
cat > "$out/share/applications/qtcreator.desktop" << __EOF__
42-
[Desktop Entry]
43-
Exec=$out/bin/qtcreator
44-
Name=Qt Creator
45-
GenericName=Cross-platform IDE for Qt
46-
Icon=QtProject-qtcreator.png
47-
Terminal=false
48-
Type=Application
49-
Categories=Qt;Development;IDE;
50-
__EOF__
39+
substituteInPlace $out/share/applications/org.qt-project.qtcreator.desktop \
40+
--replace "Exec=qtcreator" "Exec=$out/bin/qtcreator"
5141
wrapQtProgram $out/bin/qtcreator
5242
'';
5343

0 commit comments

Comments
 (0)
Please sign in to comment.