From 1a160f714516ae4d6d8af92380b0713fdd2eadf6 Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Tue, 14 May 2019 14:19:18 +1000 Subject: strip: remove store paths from outputs to minimise closures --- tools/fastqc-check.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/fastqc-check.nix b/tools/fastqc-check.nix index d33b987..9b6dd96 100644 --- a/tools/fastqc-check.nix +++ b/tools/fastqc-check.nix @@ -9,12 +9,16 @@ input: stage { name = "fastqc-check"; - buildInputs = [ bionix.fastqc.fastqc ]; + buildInputs = [ bionix.fastqc.fastqc pkgs.unzip ]; + stripStorePaths = false; # we do it explicity for fastqc + outputs = [ "out" "zip" ]; buildCommand = '' - mkdir $out fastqc \ - -o $out \ + -o $TMPDIR \ ${optionalString (flags != null) flags} \ ${input} + + sed "s|$(basename ${input})|input|g" *.html > $out + cp *.zip $zip ''; } -- cgit v1.2.3