diff --git a/pkgs/applications/science/astronomy/celestia/default.nix b/pkgs/applications/science/astronomy/celestia/default.nix index 407a47964c76..288ccfa194db 100644 --- a/pkgs/applications/science/astronomy/celestia/default.nix +++ b/pkgs/applications/science/astronomy/celestia/default.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch2, pkg-config, libglut, gtk2, @@ -27,6 +28,18 @@ stdenv.mkDerivation rec { sha256 = "sha256-MkElGo1ZR0ImW/526QlDE1ePd+VOQxwkX7l+0WyZ6Vs="; }; + patches = [ + (fetchpatch2 { + url = "https://github.com/CelestiaProject/Celestia/commit/94894bed3bf98d41c5097e7829d491d8ff8d4a62.patch?full_index=1"; + hash = "sha256-hEZ6BhSEx6Qm+fLisc63xSCDT6GX92AHD0BuldOhzFk="; + }) + ]; + + postPatch = '' + substituteInPlace configure.ac \ + --replace-fail "dnl AM_GNU_GETTEXT_VERSION([0.15])" "AM_GNU_GETTEXT_VERSION([0.15])" + ''; + nativeBuildInputs = [ pkg-config autoreconfHook diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 03782cbb11c6..4b2818cdeb4d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15692,7 +15692,6 @@ with pkgs; boinc-headless = callPackage ../applications/science/misc/boinc { headless = true; }; celestia = callPackage ../applications/science/astronomy/celestia { - autoreconfHook = buildPackages.autoreconfHook269; inherit (gnome2) gtkglext; };