aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--default.nix2
-rw-r--r--lib/qsub.nix2
2 files changed, 4 insertions, 0 deletions
diff --git a/default.nix b/default.nix
index a5c9f3f..6050857 100644
--- a/default.nix
+++ b/default.nix
@@ -11,5 +11,7 @@ let
ref = callBionix ./references.nix;
samtools = callBionix ./tools/samtools.nix;
strelka = callBionix ./tools/strelka.nix;
+
+ qsub = nixpkgs.callPackage ./lib/qsub.nix {};
});
in bionix
diff --git a/lib/qsub.nix b/lib/qsub.nix
index ba9456f..e53a36c 100644
--- a/lib/qsub.nix
+++ b/lib/qsub.nix
@@ -1,5 +1,7 @@
{lib}:
+with lib;
+
{ ppn ? 1, mem ? 1, walltime ? "24:00:00" }: drv: lib.overrideDerivation drv ({ args, builder, ... }: {
builder = "/bin/bash";