3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/astronomy/stellarium/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

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