aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/crumble-app.nix15
-rw-r--r--tools/crumble-toCram.nix15
-rw-r--r--tools/crumble.nix7
3 files changed, 37 insertions, 0 deletions
diff --git a/tools/crumble-app.nix b/tools/crumble-app.nix
new file mode 100644
index 0000000..fc30d5a
--- /dev/null
+++ b/tools/crumble-app.nix
@@ -0,0 +1,15 @@
+{stdenv, fetchFromGitHub, autoreconfHook, htslib}:
+
+stdenv.mkDerivation rec {
+ name = "crumble-${version}";
+ version = "git";
+
+ src = fetchFromGitHub {
+ owner = "jkbonfield";
+ repo = "crumble";
+ rev = "217fa927a5fffe7dfeed9ebf25ae78d5b513afac";
+ sha256 = "1sjgbz0dj9pszxqgkrslcdx305s50a5gyx3f5ajsnm4bynsjmv9i";
+ };
+
+ buildInputs = [ autoreconfHook htslib ];
+}
diff --git a/tools/crumble-toCram.nix b/tools/crumble-toCram.nix
new file mode 100644
index 0000000..6b2431f
--- /dev/null
+++ b/tools/crumble-toCram.nix
@@ -0,0 +1,15 @@
+{ stdenv
+, lib
+, callPackage
+, crumble ? callPackage ./crumble-app.nix {}
+, flags ? null}:
+
+with lib;
+
+input:
+
+stdenv.mkDerivation {
+ name = "crumble";
+ buildInputs = [ crumble ];
+ buildCommand = "crumble ${optionalString (flags != null) flags} ${input} $out";
+}
diff --git a/tools/crumble.nix b/tools/crumble.nix
new file mode 100644
index 0000000..4798329
--- /dev/null
+++ b/tools/crumble.nix
@@ -0,0 +1,7 @@
+{ bionix, nixpkgs }:
+
+with nixpkgs;
+
+{
+ toCram = attrs: callPackage ./crumble-toCram.nix attrs;
+}