diff options
author | Justin Bedo <cu@cua0.org> | 2018-10-23 13:59:45 +1100 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2018-10-23 13:59:45 +1100 |
commit | 8002173b2aa2b0a4e1c0300bb4e2aa0422849e65 (patch) | |
tree | 3fb96c8ded694dc54dcc37e27ddac14097e0137f /tools/infercnv-infer.nix | |
parent | c768093d0e8990657a42b1668c5f86048cbc6675 (diff) |
Wrap inferCNV
Resolves #8
Diffstat (limited to 'tools/infercnv-infer.nix')
-rw-r--r-- | tools/infercnv-infer.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/infercnv-infer.nix b/tools/infercnv-infer.nix new file mode 100644 index 0000000..95ebbe3 --- /dev/null +++ b/tools/infercnv-infer.nix @@ -0,0 +1,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 + ''; +} |