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