stellarium: wrap binary using wrapQtProgram

Fixes #13582 where Stellarium segfaults when starting.
This commit is contained in:
Robert Helgesson 2016-07-22 22:21:17 +02:00
parent e4b7b7b028
commit 1bedecb4f9

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, cmake, freetype, libpng, mesa, gettext, openssl, perl, libiconv
, qtscript, qtserialport, qttools
, qtscript, qtserialport, qttools, makeQtWrapper
}:
stdenv.mkDerivation rec {
@ -10,6 +10,8 @@ stdenv.mkDerivation rec {
sha256 = "1xxil0rv61zc08znfv83cpsc47y1gjl2f3njhz0pn5zd8jpaa15a";
};
nativeBuildInputs = [ makeQtWrapper ];
buildInputs = [
cmake freetype libpng mesa gettext openssl perl libiconv qtscript
qtserialport qttools
@ -17,6 +19,10 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
postInstall = ''
wrapQtProgram "$out/bin/stellarium"
'';
meta = {
description = "Free open-source planetarium";
homepage = "http://stellarium.org/";