mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
nf-test: init at 0.8.4 (#308756)
This commit is contained in:
parent
fc33a5b753
commit
8ee9e2c296
1 changed files with 58 additions and 0 deletions
58
pkgs/by-name/nf/nf-test/package.nix
Normal file
58
pkgs/by-name/nf/nf-test/package.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue