From 862b716d8f4bc2f1747ee8816616ebca07ba8a60 Mon Sep 17 00:00:00 2001 From: Linus Karl Date: Fri, 10 Oct 2025 18:46:51 +0200 Subject: [PATCH 1/2] indilib: 2.1.5.1 -> 2.1.6 --- .../science/astronomy/indilib/default.nix | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/science/astronomy/indilib/default.nix b/pkgs/development/libraries/science/astronomy/indilib/default.nix index cbbddf3d33e4..527f716a686d 100644 --- a/pkgs/development/libraries/science/astronomy/indilib/default.nix +++ b/pkgs/development/libraries/science/astronomy/indilib/default.nix @@ -2,6 +2,7 @@ stdenv, lib, fetchFromGitHub, + fetchpatch2, bash, cmake, cfitsio, @@ -17,22 +18,36 @@ fftw, gtest, udevCheckHook, + versionCheckHook, indi-full, }: stdenv.mkDerivation (finalAttrs: { pname = "indilib"; - version = "2.1.5.1"; + version = "2.1.6"; src = fetchFromGitHub { owner = "indilib"; repo = "indi"; rev = "v${finalAttrs.version}"; - hash = "sha256-mbY3iDLRcQ+pis26u6pHzB43ureaKH7KYPkV0CwHU/E="; + hash = "sha256-0+ZC9NoanBDojYz/ufZUpUQB++vnMcUYtG1UmmVGbTg="; }; + # fixes version number. This commit is directly after the tagged commit in master + # should be removed with the next release + patches = [ + (fetchpatch2 { + url = "https://github.com/indilib/indi/commit/91e3e35250126887a856e90b6a0a30697fb01545.patch?full_index=1"; + hash = "sha256-ho1S+A6gTQ9ELy/QE14S6daXyMN+vASFbXa2vMWdqR8="; + }) + ]; + nativeBuildInputs = [ cmake + ]; + + nativeInstallCheckInputs = [ + versionCheckHook udevCheckHook ]; @@ -86,6 +101,7 @@ stdenv.mkDerivation (finalAttrs: { description = "Implementation of the INDI protocol for POSIX operating systems"; changelog = "https://github.com/indilib/indi/releases/tag/v${finalAttrs.version}"; license = licenses.lgpl2Plus; + mainProgram = "indiserver"; maintainers = with maintainers; [ sheepforce returntoreality From bfeccd009e56d65a67c358216e2421e8128d124a Mon Sep 17 00:00:00 2001 From: Linus Karl Date: Fri, 10 Oct 2025 18:47:31 +0200 Subject: [PATCH 2/2] indi-3rdparty: 2.1.5.1 -> 2.1.6.2 --- .../astronomy/indilib/indi-3rdparty.nix | 25 +++---------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/pkgs/development/libraries/science/astronomy/indilib/indi-3rdparty.nix b/pkgs/development/libraries/science/astronomy/indilib/indi-3rdparty.nix index 57a0371090f6..45ee14aec7ed 100644 --- a/pkgs/development/libraries/science/astronomy/indilib/indi-3rdparty.nix +++ b/pkgs/development/libraries/science/astronomy/indilib/indi-3rdparty.nix @@ -9,7 +9,6 @@ coreutils, cfitsio, fetchFromGitHub, - fetchpatch, gtest, libusb1, libusb-compat-0_1, @@ -42,12 +41,13 @@ }: let + thirdparty_version = "2.1.6.2"; fxload = libusb1.override { withExamples = true; }; src-3rdparty = fetchFromGitHub { owner = "indilib"; repo = "indi-3rdparty"; - rev = "v${indilib.version}"; - hash = "sha256-+WBQdu1iWleHf6xC4SK69y505wqZ36IUM4xnh1fnc6s="; + rev = "v${thirdparty_version}"; + hash = "sha256-FMvdm7dkOkRlmbPNeQjh0jd+2bOinzW13QPP2NnOr/M="; }; buildIndi3rdParty = @@ -58,7 +58,7 @@ let cmakeFlags ? [ ], postInstall ? "", doCheck ? true, - version ? indilib.version, + version ? thirdparty_version, src ? src-3rdparty, meta ? { }, ... @@ -551,14 +551,6 @@ in indi-astarbox = buildIndi3rdParty { pname = "indi-astarbox"; buildInputs = [ indilib ]; - # TODO patch already upstream, remove with version > 2.1.5.1 - patches = [ - (fetchpatch { - url = "https://github.com/indilib/indi-3rdparty/commit/c347000ec227a5ef98911aab34c7b08a91509cba.patch"; - hash = "sha256-M3b4ySoGJRpfNmBaagjDaeEPKqwaVgRUWaQY626SGBI="; - stripLen = 1; - }) - ]; }; indi-astroasis = buildIndi3rdParty { @@ -713,15 +705,6 @@ in glib zlib ]; - # TODO patch already upstream, remove with version > 2.1.5.1 - patches = [ - (fetchpatch { - url = "https://github.com/indilib/indi-3rdparty/commit/c33c08b50093698e2aa73d73783d96f85df488a9.patch"; - hash = "sha256-EQ2G9gTexf9FESCAR28f2cwzvH4TOAA8bvyJCxFv/E8="; - stripLen = 1; - }) - ]; - }; indi-gphoto = buildIndi3rdParty {