diff options
author | Linus Karl <linus.karl@eso.org> | 2024-02-04 15:06:14 +0100 |
---|---|---|
committer | Linus Karl <linus.karl@eso.org> | 2024-02-04 15:09:23 +0100 |
commit | d5d09e6679c756812b5ea7e2065153a6ee5b4529 (patch) | |
tree | 4176757f78c4a1dfce3a6a2a0af6c2cd7e1df198 /pkgs/development/libraries | |
parent | 1be8478d00f91aa3a1980093c8accf0ce54d33bf (diff) | |
download | nixlib-d5d09e6679c756812b5ea7e2065153a6ee5b4529.tar nixlib-d5d09e6679c756812b5ea7e2065153a6ee5b4529.tar.gz nixlib-d5d09e6679c756812b5ea7e2065153a6ee5b4529.tar.bz2 nixlib-d5d09e6679c756812b5ea7e2065153a6ee5b4529.tar.lz nixlib-d5d09e6679c756812b5ea7e2065153a6ee5b4529.tar.xz nixlib-d5d09e6679c756812b5ea7e2065153a6ee5b4529.tar.zst nixlib-d5d09e6679c756812b5ea7e2065153a6ee5b4529.zip |
indilib: add passthu test
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/science/astronomy/indilib/default.nix | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/pkgs/development/libraries/science/astronomy/indilib/default.nix b/pkgs/development/libraries/science/astronomy/indilib/default.nix index c38842f128c7..f0d25defe122 100644 --- a/pkgs/development/libraries/science/astronomy/indilib/default.nix +++ b/pkgs/development/libraries/science/astronomy/indilib/default.nix @@ -15,16 +15,17 @@ , gsl , fftw , gtest +, indi-full }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "indilib"; version = "2.0.6"; src = fetchFromGitHub { owner = "indilib"; repo = "indi"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; hash = "sha256-3MeF2G/rr//c7cgGzqDzmqoNKvR+7Kkbid1g8znKPkg="; }; @@ -48,7 +49,7 @@ stdenv.mkDerivation rec { cmakeFlags = [ "-DCMAKE_INSTALL_LIBDIR=lib" "-DUDEVRULES_INSTALL_DIR=lib/udev/rules.d" - ] ++ lib.optional doCheck [ + ] ++ lib.optional finalAttrs.finalPackage.doCheck [ "-DINDI_BUILD_UNITTESTS=ON" "-DINDI_BUILD_INTEGTESTS=ON" ]; @@ -68,13 +69,19 @@ stdenv.mkDerivation rec { done ''; + passthru.tests = { + # make sure 3rd party drivers compile with this indilib + indi-full = indi-full.override { + indilib = finalAttrs.finalPackage; + }; + }; meta = with lib; { homepage = "https://www.indilib.org/"; description = "Implementation of the INDI protocol for POSIX operating systems"; - changelog = "https://github.com/indilib/indi/releases/tag/v${version}"; + changelog = "https://github.com/indilib/indi/releases/tag/v${finalAttrs.version}"; license = licenses.lgpl2Plus; maintainers = with maintainers; [ hjones2199 sheepforce ]; platforms = platforms.unix; }; -} +}) |