aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2019-08-16 09:32:56 +1000
committerJustin Bedo <cu@cua0.org>2019-08-16 09:34:14 +1000
commitbc92717d8960f918b7903dab9315f068c705fe4c (patch)
treeecfc7e20b13bbb8ec65e27a3e44d7c859d43cb15 /tools
parent71a479e17dd618e56a749b4a4d2f78bfd1428c1a (diff)
mosdepth: fix renaming
Diffstat (limited to 'tools')
-rw-r--r--tools/mosdepth-plot.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mosdepth-plot.nix b/tools/mosdepth-plot.nix
index 8eae28f..f98ae23 100644
--- a/tools/mosdepth-plot.nix
+++ b/tools/mosdepth-plot.nix
@@ -10,11 +10,11 @@ with lib;
, names ? []}:
stage {
- name = "mosdepth-depth";
+ name = "mosdepth-plot";
buildInputs = with pkgs; [ python ];
buildCommand = ''
python ${pkgs.mosdepth.src}/scripts/plot-dist.py ${concatMapStringsSep " " (i: "${i}/out.mosdepth.${what}.dist.txt") inputs}
- ${concatStringsSep "\n" (zipListsWith (i: n: "substituteInPlace dist.html --replace ${i}/out.mosdepth.${what}.dist.txt ${n}") inputs names)}
+ ${concatStringsSep "\n" (zipListsWith (i: n: "sed -i 's|${i}[^ ]*|${n}|' dist.html") inputs names)}
substituteInPlace dist.html --replace "x: 0.1" "x: 0.9"
substituteInPlace dist.html --replace "y: 0.1" "y: 0.9"
mv dist.html $out