mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
48 lines
869 B
Nix
48 lines
869 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
zlib,
|
|
libdeflate,
|
|
libhwy,
|
|
isa-l,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "fastp";
|
|
version = "1.3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OpenGene";
|
|
repo = "fastp";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-CgsFm05sj+ZQADoQtDbyxsMqwxQTuVtwDdJVPwF2rOs=";
|
|
};
|
|
|
|
buildInputs = [
|
|
zlib
|
|
libdeflate
|
|
libhwy
|
|
isa-l
|
|
];
|
|
|
|
installPhase = ''
|
|
install -D fastp $out/bin/fastp
|
|
'';
|
|
|
|
strictDeps = true;
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
doInstallCheck = true;
|
|
|
|
meta = {
|
|
description = "Ultra-fast all-in-one FASTQ preprocessor";
|
|
mainProgram = "fastp";
|
|
license = lib.licenses.mit;
|
|
homepage = "https://github.com/OpenGene/fastp";
|
|
maintainers = with lib.maintainers; [ jbedo ];
|
|
platforms = lib.platforms.x86_64;
|
|
};
|
|
})
|