2021-04-12 18:23:04 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, freeglut, gtk2, gtkglext
|
|
|
|
, libjpeg_turbo, libtheora, libXmu, lua, libGLU, libGL, perl, autoreconfHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "celestia";
|
|
|
|
version = "1.6.2.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CelestiaProject";
|
|
|
|
repo = "Celestia";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1s9fgxh6i3x1sy75y5wcidi2mjrf5xj71dd4n6rg0hkps441sgsp";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
|
|
|
buildInputs = [
|
|
|
|
freeglut gtk2 gtkglext lua perl
|
|
|
|
libjpeg_turbo libtheora libXmu libGLU libGL
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-gtk"
|
|
|
|
"--with-lua=${lua}"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://celestia.space/";
|
2021-04-12 18:23:04 +00:00
|
|
|
description = "Real-time 3D simulation of space";
|
|
|
|
changelog = "https://github.com/CelestiaProject/Celestia/releases/tag/${version}";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ peti ];
|
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|