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

with lib;

input:

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