From 11b31bdad648c9af92ac6997303bc10849a7a2ef Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Thu, 2 May 2019 12:17:24 +1000 Subject: shard: Implement some basic sharding for FQ files --- default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index d67f2eb..61f2974 100644 --- a/default.nix +++ b/default.nix @@ -68,9 +68,12 @@ let fetchFastQGZ = attrs: with types; tagFiletype (filetype.gz (filetype.fq {})) (fetchurl attrs); fetchFastAGZ = attrs: with types; tagFiletype (filetype.gz (filetype.fa {})) (fetchurl attrs); + # Turn a multi-output derivation into a list of derivations + outputDrvs = drv: map (o: lib.getAttr o drv) drv.outputs; + # Export nixpkgs and standard library lib pkgs = nixpkgs; - lib = nixpkgs.lib // { types = types; }; + lib = nixpkgs.lib // { types = types; shard = callBionix ./lib/shard.nix {};}; stage = x@{ name, ... }: { multicore = false; } // nixpkgs.stdenvNoCC.mkDerivation (x // {name = "bionix-" + name;}); # splitting/joining -- cgit v1.2.3