about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/biology/fastp/default.nix
blob: e396c8597d24b7b66bdb43ad1e2e449ed9d8a2f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, stdenv
, fetchFromGitHub
, zlib
}:

stdenv.mkDerivation rec {
  pname = "fastp";
  version = "0.20.1";

  src = fetchFromGitHub {
    owner = "OpenGene";
    repo = "fastp";
    rev = "v${version}";
    sha256 = "sha256-pANwppkO9pfV9vctB7HmNCzYRtf+Xt+5HMKzvFuvyFM=";
  };

  buildInputs = [ zlib ];

  installPhase = ''
    install -D fastp $out/bin/fastp
  '';

  meta = with lib; {
    description = "Ultra-fast all-in-one FASTQ preprocessor";
    license = licenses.mit;
    homepage = "https://github.com/OpenGene/fastp";
    maintainers = with maintainers; [ jbedo ];
    platforms = platforms.x86_64;
  };
}