nf-test: init at 0.8.4 (#308756)

This commit is contained in:
Rolf Schröder 2024-05-03 16:45:50 +02:00 committed by GitHub
parent fc33a5b753
commit 8ee9e2c296
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,58 @@
{ lib
, fetchurl
, makeWrapper
, nextflow
, nf-test
, openjdk11
, stdenv
, testers
}:
stdenv.mkDerivation rec {
pname = "nf-test";
version = "0.8.4";
src = fetchurl {
url = "https://github.com/askimed/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
hash = "sha256-gCO75uNUKU+6UUST9CP4DnWGnl2vflH0y4CId/3IQ4E=";
};
sourceRoot = ".";
buildInputs = [
makeWrapper
];
nativeBuildInputs = [
nextflow
];
installPhase = ''
runHook preInstall
mkdir -p $out/share/nf-test
install -Dm644 nf-test.jar $out/share/nf-test
mkdir -p $out/bin
makeWrapper ${openjdk11}/bin/java $out/bin/nf-test \
--add-flags "-jar $out/share/nf-test/nf-test.jar" \
--prefix PATH : ${lib.makeBinPath nativeBuildInputs} \
runHook postInstall
'';
passthru.tests.version = testers.testVersion {
package = nf-test;
command = "nf-test version";
};
meta = with lib; {
description = "Simple test framework for Nextflow pipelines";
homepage = "https://www.nf-test.com/";
changelog = "https://github.com/askimed/nf-test/releases";
license = licenses.mit;
maintainers = with maintainers; [ rollf ];
mainProgram = "nf-test";
platforms = platforms.unix;
};
}