scap-security-guide: init at 0.1.75 (#375627)
[NixPkgs.git] / pkgs / by-name / nf / nf-test / package.nix
blobd49cbfc2613e4f1c2651c5d153a265f161f8f29e
2   lib,
3   fetchurl,
4   makeWrapper,
5   nextflow,
6   nf-test,
7   openjdk11,
8   stdenv,
9   testers,
11 stdenv.mkDerivation rec {
13   pname = "nf-test";
14   version = "0.9.2";
16   src = fetchurl {
17     url = "https://github.com/askimed/nf-test/releases/download/v${version}/nf-test-${version}.tar.gz";
18     hash = "sha256-v7LgbfKdTvQbMcs1ajdKmSQr742YQ0uL4wN79rPV1No=";
19   };
20   sourceRoot = ".";
22   nativeBuildInputs = [ makeWrapper ];
24   installPhase = ''
25     runHook preInstall
27     mkdir -p $out/share/nf-test
28     install -Dm644 nf-test.jar $out/share/nf-test
30     mkdir -p $out/bin
31     makeWrapper ${openjdk11}/bin/java $out/bin/nf-test \
32       --add-flags "-jar $out/share/nf-test/nf-test.jar" \
33       --prefix PATH : ${lib.makeBinPath [ nextflow ]} \
35     runHook postInstall
36   '';
38   passthru.tests.version = testers.testVersion {
39     package = nf-test;
40     command = "nf-test version";
41   };
43   meta = with lib; {
44     description = "Simple test framework for Nextflow pipelines";
45     homepage = "https://www.nf-test.com/";
46     changelog = "https://github.com/askimed/nf-test/releases";
47     license = licenses.mit;
48     maintainers = with maintainers; [ rollf ];
49     mainProgram = "nf-test";
50     platforms = platforms.unix;
51   };