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} ''; }