nixpkgs/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, gettext, 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.1";
2018-06-24 20:26:58 +02:00
src = fetchFromGitHub {
owner = "Stellarium";
repo = "stellarium";
rev = "v${version}";
sha256 = "0srwi08azzzayf50dr4dr1zcdcc8hwribzv7xvb7hbp6xp51c813";
};
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 ];
};
}