summary refs log tree commit diff
path: root/pkgs/applications/science/astronomy/stellarium/default.nix
blob: da6aa38d746a2e0bb9efe858db058226b454e070 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ mkDerivation, lib, fetchurl
, cmake, freetype, libpng, mesa, gettext, openssl, perl, libiconv
, qtscript, qtserialport, qttools
, qtmultimedia
}:

mkDerivation rec {
  name = "stellarium-${version}";
  version = "0.15.0";

  src = fetchurl {
    url = "mirror://sourceforge/stellarium/${name}.tar.gz";
    sha256 = "0il751lgnfkx35h1m8fzwwnrygpxjx2a80gng1i1rbybkykf7l3l";
  };

  nativeBuildInputs = [ cmake perl ];

  buildInputs = [
    freetype libpng mesa openssl libiconv qtscript qtserialport qttools
    qtmultimedia
  ];

  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 = [ maintainers.peti ];
  };
}