aboutsummaryrefslogtreecommitdiff
path: root/tools/fastqc-check.nix
blob: 1d9993a28006632ebe3ffe09f596763559c4b2ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv
, lib
, callPackage
, fastqc ? callPackage ./fastqc-app.nix {}
, flags ? null}:

with lib;

input:

stdenv.mkDerivation {
  name = "fastqc-check";
  buildInputs = [ fastqc ];
  buildCommand = ''
    mkdir $out
    fastqc \
      -o $out \
      ${optionalString (flags != null) flags} \
      ${input}
  '';
}