2020-09-27 20:56:41 +00:00
|
|
|
{ stdenv, lib, mkDerivation, fetchFromGitHub
|
2019-11-10 16:44:34 +00:00
|
|
|
, cmake, freetype, libpng, libGLU, libGL, openssl, perl, libiconv
|
2017-05-17 19:26:11 +00:00
|
|
|
, qtscript, qtserialport, qttools
|
2019-07-05 15:42:08 +00:00
|
|
|
, qtmultimedia, qtlocation, qtbase, wrapQtAppsHook
|
2016-03-04 22:05:48 +00:00
|
|
|
}:
|
2011-07-10 20:17:44 +00:00
|
|
|
|
2017-05-17 19:26:11 +00:00
|
|
|
mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "stellarium";
|
2021-12-25 15:54:34 +00:00
|
|
|
version = "0.21.3";
|
2011-07-10 20:17:44 +00:00
|
|
|
|
2018-06-24 18:26:58 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Stellarium";
|
|
|
|
repo = "stellarium";
|
|
|
|
rev = "v${version}";
|
2021-12-25 15:54:34 +00:00
|
|
|
sha256 = "sha256-TQMLy5ziBF7YqPDzPwgjY5FHxxMUe7MXo/TGxQ1nGcg=";
|
2011-07-10 20:17:44 +00:00
|
|
|
};
|
|
|
|
|
2019-07-05 15:42:08 +00:00
|
|
|
nativeBuildInputs = [ cmake perl wrapQtAppsHook ];
|
2016-07-22 20:21:17 +00:00
|
|
|
|
2016-03-04 22:05:48 +00:00
|
|
|
buildInputs = [
|
2019-11-10 16:44:34 +00:00
|
|
|
freetype libpng libGLU libGL openssl libiconv qtscript qtserialport qttools
|
2019-07-05 15:42:08 +00:00
|
|
|
qtmultimedia qtlocation qtbase
|
2016-03-04 22:05:48 +00:00
|
|
|
];
|
2011-07-10 20:17:44 +00:00
|
|
|
|
2020-09-27 20:56:41 +00:00
|
|
|
preConfigure = lib.optionalString stdenv.isDarwin ''
|
|
|
|
substituteInPlace CMakeLists.txt \
|
|
|
|
--replace 'SET(CMAKE_INSTALL_PREFIX "''${PROJECT_BINARY_DIR}/Stellarium.app/Contents")' \
|
|
|
|
'SET(CMAKE_INSTALL_PREFIX "${placeholder "out"}/Stellarium.app/Contents")'
|
|
|
|
'';
|
|
|
|
|
2017-05-17 19:26:11 +00:00
|
|
|
meta = with lib; {
|
2012-10-19 08:19:41 +00:00
|
|
|
description = "Free open-source planetarium";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://stellarium.org/";
|
2017-05-17 19:26:11 +00:00
|
|
|
license = licenses.gpl2;
|
2020-09-27 20:56:41 +00:00
|
|
|
platforms = platforms.unix;
|
2021-10-14 08:59:33 +00:00
|
|
|
maintainers = with maintainers; [ ma27 ];
|
2011-07-10 20:17:44 +00:00
|
|
|
};
|
|
|
|
}
|