2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, makeWrapper
|
2023-02-02 18:25:31 +00:00
|
|
|
, openjdk17
|
2022-02-10 20:34:41 +00:00
|
|
|
, wget
|
|
|
|
, which
|
|
|
|
, gnused
|
|
|
|
, gawk
|
|
|
|
, coreutils
|
2023-04-29 16:46:19 +00:00
|
|
|
, buildFHSEnv
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
let
|
|
|
|
nextflow =
|
2022-02-10 20:34:41 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nextflow";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "22.10.6";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/nextflow-io/nextflow/releases/download/v${version}/nextflow-${version}-all";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-zeYsKxWRnzr0W6CD+yjoAXwCN/AbN5P4HhH1oftnrjY=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
openjdk17
|
|
|
|
wget
|
|
|
|
which
|
|
|
|
gnused
|
|
|
|
gawk
|
|
|
|
coreutils
|
|
|
|
];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install -Dm755 $src $out/bin/nextflow
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
2023-02-02 18:25:31 +00:00
|
|
|
wrapProgram $out/bin/nextflow \
|
|
|
|
--prefix PATH : ${lib.makeBinPath nativeBuildInputs} \
|
|
|
|
--set JAVA_HOME ${openjdk17.home}
|
2022-02-10 20:34:41 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A DSL for data-driven computational pipelines";
|
|
|
|
longDescription = ''
|
|
|
|
Nextflow is a bioinformatics workflow manager that enables the development of portable and reproducible workflows.
|
|
|
|
|
|
|
|
It supports deploying workflows on a variety of execution platforms including local, HPC schedulers, AWS Batch, Google Cloud Life Sciences, and Kubernetes.
|
|
|
|
|
|
|
|
Additionally, it provides support for manage your workflow dependencies through built-in support for Conda, Docker, Singularity, and Modules.
|
|
|
|
'';
|
|
|
|
homepage = "https://www.nextflow.io/";
|
|
|
|
changelog = "https://github.com/nextflow-io/nextflow/releases";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.Etjean ];
|
|
|
|
mainProgram = "nextflow";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
if stdenv.isLinux then
|
2023-04-29 16:46:19 +00:00
|
|
|
buildFHSEnv
|
2023-02-02 18:25:31 +00:00
|
|
|
{
|
|
|
|
name = "nextflow";
|
|
|
|
targetPkgs = pkgs: [ nextflow ];
|
|
|
|
runScript = "nextflow";
|
|
|
|
}
|
|
|
|
else nextflow
|