1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
{bionix ,nixpkgs ,flags ? null}: with nixpkgs; with lib; {ref ,expr ,pos}: stdenv.mkDerivation { name = "inferCNV"; buildInputs = [ bionix.infercnv.app ]; buildCommand = '' inferCNV.R --output_dir $TMPDIR \ ${optionalString (flags != null) flags} \ --ref ${ref} \ ${expr} \ ${pos} mkdir $out cp -r $TMPDIR/* $out ''; }