Commit e7dac85a authored by Rolf Schröder's avatar Rolf Schröder Committed by Doron Behar
Browse files

nextflow: add a passthru.tests.version

parent 6a1ce548
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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 = ''