Commit 7173eb87 authored by sternenseemann's avatar sternenseemann
Browse files

srcOnly: reflink if possible and preserve attributes

This matches how the default unpackPhase would copy from a store path
into the build directory, so it seems wise to match this here. On file
systems that support reflinks, this should improve performance as well.
parent 82d00c4e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ let
in
stdenv.mkDerivation (args // {
  name = "${name}-source";
  installPhase = "cp -r . $out";
  installPhase = "cp -pr --reflink=auto -- . $out";
  outputs = [ "out" ];
  separateDebugInfo = false;
  dontUnpack = false;