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

33 lines
917 B
Nix

{ mkDerivation, lib, fetchFromGitHub
, cmake, freetype, libpng, libGLU, libGL, openssl, perl, libiconv
, qtscript, qtserialport, qttools
, qtmultimedia, qtlocation, qtbase, wrapQtAppsHook
}:
mkDerivation rec {
pname = "stellarium";
version = "0.19.3";
src = fetchFromGitHub {
owner = "Stellarium";
repo = "stellarium";
rev = "v${version}";
sha256 = "175aj4bgi9b6bif6fvjdlpd68brcwij4x3ml0lxk6i51binv233y";
};
nativeBuildInputs = [ cmake perl wrapQtAppsHook ];
buildInputs = [
freetype libpng libGLU libGL openssl libiconv qtscript qtserialport qttools
qtmultimedia qtlocation qtbase
];
meta = with lib; {
description = "Free open-source planetarium";
homepage = http://stellarium.org/;
license = licenses.gpl2;
platforms = platforms.linux; # should be mesaPlatforms, but we don't have qt on darwin
maintainers = with maintainers; [ peti ma27 ];
};
}