diff --git a/pkgs/applications/science/astronomy/stellarium/default.nix b/pkgs/applications/science/astronomy/stellarium/default.nix index 618a594c8cc5..6959a6d73dca 100644 --- a/pkgs/applications/science/astronomy/stellarium/default.nix +++ b/pkgs/applications/science/astronomy/stellarium/default.nix @@ -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/";