Unverified Commit a1acae29 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

uutils-coreutils: symlink multicall aliases to fix closure size (#511356)

parents 43de7122 c0b15507
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -86,6 +86,10 @@ stdenv.mkDerivation (finalAttrs: {

  env = {
    CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.rustcTargetSpec;
    # Upstream uses hardlinks for the multicall aliases by default, but NAR
    # serialization does not preserve hardlinks, exploding the closure to
    # ~100 copies of the 14 MiB binary.
    LN = "ln -sf";
  }
  // lib.optionalAttrs selinuxSupport {
    SELINUX_INCLUDE_DIR = "${lib.getInclude libselinux}/include";