nixpkgs-suyu/pkgs/applications/science/astronomy/stellarium/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

2018-06-24 20:26:58 +02:00
{ mkDerivation, lib, fetchFromGitHub
, cmake, freetype, libpng, libGLU_combined, openssl, perl, libiconv
2017-05-17 21:26:11 +02:00
, qtscript, qtserialport, qttools
2018-06-24 20:26:58 +02:00
, qtmultimedia, qtlocation, makeWrapper, qtbase
}:
2017-05-17 21:26:11 +02:00
mkDerivation rec {
name = "stellarium-${version}";
version = "0.18.3";
2018-06-24 20:26:58 +02:00
src = fetchFromGitHub {
owner = "Stellarium";
repo = "stellarium";
rev = "v${version}";
sha256 = "1cnwfk3vdsxh8gacw22qik401z0kpzd1ralbg9ph2cjqx9x2m1s1";
};
2017-05-17 21:26:11 +02:00
nativeBuildInputs = [ cmake perl ];
buildInputs = [
freetype libpng libGLU_combined openssl libiconv qtscript qtserialport qttools
2018-06-24 20:26:58 +02:00
qtmultimedia qtlocation qtbase makeWrapper
];
2018-06-24 20:26:58 +02:00
postInstall = ''
wrapProgram $out/bin/stellarium \
--prefix QT_PLUGIN_PATH : "${qtbase}/lib/qt-5.${lib.versions.minor qtbase.version}/plugins"
'';
2017-05-17 21:26:11 +02:00
meta = with lib; {
2012-10-19 10:19:41 +02:00
description = "Free open-source planetarium";
homepage = http://stellarium.org/;
2017-05-17 21:26:11 +02:00
license = licenses.gpl2;
2017-05-17 21:26:11 +02:00
platforms = platforms.linux; # should be mesaPlatforms, but we don't have qt on darwin
maintainers = with maintainers; [ peti ma27 ];
};
}