5a859d9b10
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/stellarium/versions. These checks were done: - built on NixOS - Warning: no invocation of /nix/store/2c607ylvxs69nbr99ly1bgcb0bbk47xf-stellarium-0.18.1/bin/stellarium had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/2c607ylvxs69nbr99ly1bgcb0bbk47xf-stellarium-0.18.1/bin/.stellarium-wrapped had a zero exit code or showed the expected version - 0 of 2 passed binary check by having a zero exit code. - 0 of 2 passed binary check by having the new version present in output. - found 0.18.1 with grep in /nix/store/2c607ylvxs69nbr99ly1bgcb0bbk47xf-stellarium-0.18.1 - directory tree listing: https://gist.github.com/dd98359fb1214ae24bd70e291c1bc33d - du listing: https://gist.github.com/67baedda5ffc1ad0aa064239cb503c2b
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ mkDerivation, lib, fetchFromGitHub
|
|
, cmake, freetype, libpng, libGLU_combined, gettext, openssl, perl, libiconv
|
|
, qtscript, qtserialport, qttools
|
|
, qtmultimedia, qtlocation, makeWrapper, qtbase
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
name = "stellarium-${version}";
|
|
version = "0.18.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Stellarium";
|
|
repo = "stellarium";
|
|
rev = "v${version}";
|
|
sha256 = "0srwi08azzzayf50dr4dr1zcdcc8hwribzv7xvb7hbp6xp51c813";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
|
|
|
buildInputs = [
|
|
freetype libpng libGLU_combined openssl libiconv qtscript qtserialport qttools
|
|
qtmultimedia qtlocation qtbase makeWrapper
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/stellarium \
|
|
--prefix QT_PLUGIN_PATH : "${qtbase}/lib/qt-5.${lib.versions.minor qtbase.version}/plugins"
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|