From c3babc9eb65dc8c56d07ce8a6ee0d8c03bbd223e Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Wed, 9 Jan 2019 16:38:42 +1100 Subject: large refactor - use bionix.pkgs instead of nixpkgs - replace stdenv.mkDerivation with stage --- tools/mosdepth-plot.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tools/mosdepth-plot.nix') diff --git a/tools/mosdepth-plot.nix b/tools/mosdepth-plot.nix index f15e099..0fdfc67 100644 --- a/tools/mosdepth-plot.nix +++ b/tools/mosdepth-plot.nix @@ -1,17 +1,16 @@ { bionix -, nixpkgs , flags ? null }: -with nixpkgs; +with bionix; with lib; { inputs , names ? []}: -stdenv.mkDerivation { +stage { name = "mosdepth-depth"; - buildInputs = [ python ]; + buildInputs = with pkgs; [ python ]; buildCommand = '' python ${mosdepth.src}/scripts/plot-dist.py ${concatMapStringsSep " " (i: "${i}/out.mosdepth.global.dist.txt") inputs} ${concatStringsSep "\n" (zipListsWith (i: n: "substituteInPlace dist.html --replace ${i}/out ${n}") inputs names)} -- cgit v1.2.3