blob: 80fb9f4f99b939f11c7ac9760a5ea232677b97e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{ bionix, block ? false, flags ? "" }:
with bionix;
with types;
input:
stage {
name = "gzip";
buildInputs = with pkgs; [ (if block then htslib else gzip) ];
buildCommand =
if block then
"bgzip -c ${flags} ${input} > $out"
else
"gzip ${flags} < ${input} > $out";
passthru.filetype = (if block then filetype.bgz else filetype.gz) input.filetype;
}
|