nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, fetchurl
4, makeWrapper
5, jre
6, wget
7, which
8, gnused
9, gawk
10, coreutils
11}:
12
13stdenv.mkDerivation rec {
14 pname = "nextflow";
15 version = "21.10.6";
16
17 src = fetchurl {
18 url = "https://github.com/nextflow-io/nextflow/releases/download/v${version}/nextflow-${version}-all";
19 sha256 = "0l9hi51vrhvfx3px2pxw7lp4h21n8ks50x4icfk3hbgl2hwf7fvx";
20 };
21
22 nativeBuildInputs = [ makeWrapper ];
23 buildInputs = [ jre wget which gnused gawk coreutils ];
24
25 dontUnpack = true;
26
27 installPhase = ''
28 runHook preInstall
29
30 mkdir -p $out/bin
31 install -Dm755 $src $out/bin/nextflow
32
33 runHook postInstall
34 '';
35
36 postFixup = ''
37 wrapProgram $out/bin/nextflow --prefix PATH : ${lib.makeBinPath buildInputs}
38 '';
39
40 meta = with lib; {
41 description = "A DSL for data-driven computational pipelines";
42 longDescription = ''
43 Nextflow is a bioinformatics workflow manager that enables the development of portable and reproducible workflows.
44
45 It supports deploying workflows on a variety of execution platforms including local, HPC schedulers, AWS Batch, Google Cloud Life Sciences, and Kubernetes.
46
47 Additionally, it provides support for manage your workflow dependencies through built-in support for Conda, Docker, Singularity, and Modules.
48 '';
49 homepage = "https://www.nextflow.io/";
50 changelog = "https://github.com/nextflow-io/nextflow/releases";
51 license = licenses.asl20;
52 maintainers = [ maintainers.Etjean ];
53 mainProgram = "nextflow";
54 platforms = platforms.unix;
55 };
56}