aboutsummaryrefslogtreecommitdiff
path: root/tools/mosdepth-depth.nix
blob: 3340872466554ace4105d7238f9971e7955364fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ stdenv
, mosdepth
, flags ? null}:

input:

stdenv.mkDerivation {
  name = "mosdepth-depth";
  buildInputs = [ mosdepth ];
  buildCommand = ''
    mkdir $out
    mosdepth -t $NIX_BUILD_CORES ${optionalString (flags != null) flags} $out/out ${input}
  '';
}