c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
37 lines
985 B
Nix
37 lines
985 B
Nix
{ lib, stdenv, fetchFromGitHub, pkg-config, freeglut, gtk2, gtkglext
|
|
, libjpeg_turbo, libtheora, libXmu, lua, libGLU, libGL, perl, autoreconfHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "celestia";
|
|
version = "1.6.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CelestiaProject";
|
|
repo = "Celestia";
|
|
rev = version;
|
|
sha256 = "sha256-iBlrP9Yr/l3tzR1PpRf8C87WfrL6mZDwDtWyd2yJ7Dc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
|
buildInputs = [
|
|
freeglut gtk2 gtkglext lua perl
|
|
libjpeg_turbo libtheora libXmu libGLU libGL
|
|
];
|
|
|
|
configureFlags = [
|
|
"--with-gtk"
|
|
"--with-lua=${lua}"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://celestia.space/";
|
|
description = "Real-time 3D simulation of space";
|
|
changelog = "https://github.com/CelestiaProject/Celestia/releases/tag/${version}";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ hjones2199 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|