mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
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.
This commit is contained in:
parent
602d569114
commit
e6875d4286
@ -13,7 +13,7 @@ let
|
|||||||
in
|
in
|
||||||
stdenv.mkDerivation (args // {
|
stdenv.mkDerivation (args // {
|
||||||
name = "${name}-source";
|
name = "${name}-source";
|
||||||
installPhase = "cp -r . $out";
|
installPhase = "cp -pr --reflink=auto -- . $out";
|
||||||
outputs = [ "out" ];
|
outputs = [ "out" ];
|
||||||
separateDebugInfo = false;
|
separateDebugInfo = false;
|
||||||
dontUnpack = false;
|
dontUnpack = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user