nixpkgs-suyu/pkgs/development/interpreters/nextflow/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.5 KiB
Nix
Raw Normal View History

2022-01-03 14:34:45 +01:00
{ lib
, stdenv
, fetchurl
, makeWrapper
, jre
, wget
, which
, gnused
, gawk
, coreutils
}:
stdenv.mkDerivation rec {
pname = "nextflow";
2022-07-29 04:12:24 +02:00
version = "22.04.5";
2022-01-03 14:34:45 +01:00
src = fetchurl {
url = "https://github.com/nextflow-io/nextflow/releases/download/v${version}/nextflow-${version}-all";
2022-07-29 04:12:24 +02:00
sha256 = "sha256-Lpxb0lGR/oiPzj6j+lySZwiRgkRgPgyjK7FX0BSejm4=";
2022-01-03 14:34:45 +01:00
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jre wget which gnused gawk coreutils ];
dontUnpack = true;
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -Dm755 $src $out/bin/nextflow
runHook postInstall
'';
postFixup = ''
wrapProgram $out/bin/nextflow --prefix PATH : ${lib.makeBinPath buildInputs}
'';
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;
};
}