Commit 48368e59 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

kea: mangle store paths in config.report

Before the change closure size is:

    $ nix path-info -rsSh $(nix-build --no-link -A kea) | nl | unnix | tail -n 1
       131  /<<NIX>>/kea-2.4.0 32.0M  405.6M

After the change:

    $ nix path-info -rsSh $(nix-build --no-link -A kea) | nl | unnix | tail -n 1
        37  /<<NIX>>/kea-2.4.0 32.0M  246.3M
parent e97f8fec
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -51,6 +51,10 @@ stdenv.mkDerivation rec {
    "--with-mysql=${lib.getDev libmysqlclient}/bin/mysql_config"
    "--with-pgsql=${postgresql}/bin/pg_config"
  ];
  postConfigure = ''
    # Mangle embedded paths to dev-only inputs.
    sed -e "s|$NIX_STORE/[a-z0-9]\{32\}-|$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" -i config.report
  '';

  nativeBuildInputs = [
    autoreconfHook