From bc92717d8960f918b7903dab9315f068c705fe4c Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Fri, 16 Aug 2019 09:32:56 +1000 Subject: mosdepth: fix renaming --- tools/mosdepth-plot.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') 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 -- cgit v1.2.3