summary refs log tree commit diff
path: root/pkgs/tools/networking
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2023-09-26 14:28:11 +0100
committerSergei Trofimovich <slyich@gmail.com>2023-09-26 15:50:02 +0100
commit48368e5923bae78afd2a12b3a0d1b4b8b0a46fb4 (patch)
tree98848ac5b80a094a67e2cd2a61c6c33fbbb9fdb9 /pkgs/tools/networking
parente97f8fecfa10ad04448f9cf54a1f0277f668cf4e (diff)
downloadnixpkgs-48368e5923bae78afd2a12b3a0d1b4b8b0a46fb4.tar
nixpkgs-48368e5923bae78afd2a12b3a0d1b4b8b0a46fb4.tar.gz
nixpkgs-48368e5923bae78afd2a12b3a0d1b4b8b0a46fb4.tar.bz2
nixpkgs-48368e5923bae78afd2a12b3a0d1b4b8b0a46fb4.tar.lz
nixpkgs-48368e5923bae78afd2a12b3a0d1b4b8b0a46fb4.tar.xz
nixpkgs-48368e5923bae78afd2a12b3a0d1b4b8b0a46fb4.tar.zst
nixpkgs-48368e5923bae78afd2a12b3a0d1b4b8b0a46fb4.zip
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
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r--pkgs/tools/networking/kea/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/networking/kea/default.nix b/pkgs/tools/networking/kea/default.nix
index 2c5b064a165..7c3cab0fe5a 100644
--- a/pkgs/tools/networking/kea/default.nix
+++ b/pkgs/tools/networking/kea/default.nix
@@ -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