diff options
Diffstat (limited to 'tools/whisper-align.nix')
-rw-r--r-- | tools/whisper-align.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/whisper-align.nix b/tools/whisper-align.nix index 1731bfe..19eef0d 100644 --- a/tools/whisper-align.nix +++ b/tools/whisper-align.nix @@ -2,7 +2,7 @@ , ref , bamOutput ? true , flags ? null -, indexAttrs ? {} +, indexAttrs ? { } }: { input1 @@ -18,7 +18,8 @@ let fa = f: matchFiletype "whisper-ref" { fa = _: f; } f; fq = f: matchFiletype "whisper-input" { fq = _: f; gz = matchFiletype' "whisper-input" { fq = _: f; }; } f; -in stage { +in +stage { name = "whisper-mem"; buildInputs = with pkgs; [ whisper ]; buildCommand = '' @@ -34,6 +35,6 @@ in stage { ${optionalString (input2 != null) (fq input2)} \ > $out ''; - passthru.filetype = if bamOutput then filetype.bam {ref = ref; sorting = sort.none {};} else filetype.sam {ref = ref; sorting = sort.name {};}; + passthru.filetype = if bamOutput then filetype.bam { inherit ref; sorting = sort.none { }; } else filetype.sam { inherit ref; sorting = sort.name { }; }; passthru.multicore = true; } |