From e7dac85a8173ded92b679c21c43ee051d3eac028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rolf=20Schr=C3=B6der?= Date: Tue, 24 Sep 2024 05:51:46 +0200 Subject: [PATCH] nextflow: add a passthru.tests.version --- pkgs/development/interpreters/nextflow/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/interpreters/nextflow/default.nix b/pkgs/development/interpreters/nextflow/default.nix index 187d1253e2c6..3b2a41919a06 100644 --- a/pkgs/development/interpreters/nextflow/default.nix +++ b/pkgs/development/interpreters/nextflow/default.nix @@ -11,6 +11,7 @@ gawk, coreutils, bash, + testers, }: stdenv.mkDerivation (finalAttrs: { pname = "nextflow"; @@ -82,6 +83,13 @@ stdenv.mkDerivation (finalAttrs: { --set JAVA_HOME ${openjdk.home} ''; + # versionCheckHook doesn't work as of 2024-09-23. + # See https://github.com/NixOS/nixpkgs/pull/339197#issuecomment-2363495060 + passthru.tests.version = testers.testVersion { + package = finalAttrs.finalPackage; + command = "env HOME=$TMPDIR nextflow -version"; + }; + meta = with lib; { description = "DSL for data-driven computational pipelines"; longDescription = ''