diff options
author | Justin Bedo <cu@cua0.org> | 2019-08-16 09:32:56 +1000 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2019-08-16 09:34:14 +1000 |
commit | bc92717d8960f918b7903dab9315f068c705fe4c (patch) | |
tree | ecfc7e20b13bbb8ec65e27a3e44d7c859d43cb15 /tools | |
parent | 71a479e17dd618e56a749b4a4d2f78bfd1428c1a (diff) |
mosdepth: fix renaming
Diffstat (limited to 'tools')
-rw-r--r-- | tools/mosdepth-plot.nix | 4 |
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 |