From 4363ac0799e7d792e4de318ddfab7ad282100628 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Fri, 25 Jul 2025 15:27:06 +0200 Subject: [PATCH] celestia: unpin autotools --- .../science/astronomy/celestia/default.nix | 13 +++++++++++++ pkgs/top-level/all-packages.nix | 1 - 2 files changed, 13 insertions(+), 1 deletion(-) 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 230e160b992a..49e8f8399ae4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15703,7 +15703,6 @@ with pkgs; boinc-headless = callPackage ../applications/science/misc/boinc { headless = true; }; celestia = callPackage ../applications/science/astronomy/celestia { - autoreconfHook = buildPackages.autoreconfHook269; inherit (gnome2) gtkglext; };