aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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