aboutsummaryrefslogtreecommitdiff
path: root/tools/infercnv-infer.nix
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2018-10-23 13:59:45 +1100
committerJustin Bedo <cu@cua0.org>2018-10-23 13:59:45 +1100
commit8002173b2aa2b0a4e1c0300bb4e2aa0422849e65 (patch)
tree3fb96c8ded694dc54dcc37e27ddac14097e0137f /tools/infercnv-infer.nix
parentc768093d0e8990657a42b1668c5f86048cbc6675 (diff)
Wrap inferCNV
Resolves #8
Diffstat (limited to 'tools/infercnv-infer.nix')
-rw-r--r--tools/infercnv-infer.nix24
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
+ '';
+}