summary refs log tree commit diff
path: root/pkgs/development/interpreters/nextflow
diff options
context:
space:
mode:
authorEtienne JEAN <et.jean@outlook.fr>2022-01-03 14:34:45 +0100
committerEtienne JEAN <et.jean@outlook.fr>2022-02-09 13:32:55 +0100
commit1fb2d1e7840454d33f4075b9eac3ea1d089bfa28 (patch)
treeb322697097d6681d0cd2afe613d304921fa00881 /pkgs/development/interpreters/nextflow
parentf8cc214922579c6ad068f5960f578caa9252ca65 (diff)
downloadnixpkgs-1fb2d1e7840454d33f4075b9eac3ea1d089bfa28.tar
nixpkgs-1fb2d1e7840454d33f4075b9eac3ea1d089bfa28.tar.gz
nixpkgs-1fb2d1e7840454d33f4075b9eac3ea1d089bfa28.tar.bz2
nixpkgs-1fb2d1e7840454d33f4075b9eac3ea1d089bfa28.tar.lz
nixpkgs-1fb2d1e7840454d33f4075b9eac3ea1d089bfa28.tar.xz
nixpkgs-1fb2d1e7840454d33f4075b9eac3ea1d089bfa28.tar.zst
nixpkgs-1fb2d1e7840454d33f4075b9eac3ea1d089bfa28.zip
nextflow: init at 21.10.6
Diffstat (limited to 'pkgs/development/interpreters/nextflow')
-rw-r--r--pkgs/development/interpreters/nextflow/default.nix56
1 files changed, 56 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/nextflow/default.nix b/pkgs/development/interpreters/nextflow/default.nix
new file mode 100644
index 00000000000..c182214ccbb
--- /dev/null
+++ b/pkgs/development/interpreters/nextflow/default.nix
@@ -0,0 +1,56 @@
+{ lib
+, stdenv
+, fetchurl
+, makeWrapper
+, jre
+, wget
+, which
+, gnused
+, gawk
+, coreutils
+}:
+
+stdenv.mkDerivation rec {
+  pname = "nextflow";
+  version = "21.10.6";
+
+  src = fetchurl {
+    url = "https://github.com/nextflow-io/nextflow/releases/download/v${version}/nextflow-${version}-all";
+    sha256 = "0l9hi51vrhvfx3px2pxw7lp4h21n8ks50x4icfk3hbgl2hwf7fvx";
+  };
+
+  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;
+  };
+}