summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-09-25 15:24:28 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-09-25 16:04:39 +0200
commitb0280f598e4b3f6ebf33ad2115734e4735df443a (patch)
tree720247834c31e0a2f592667c4386b012d1314b51 /pkgs
parentb790a31204e8fad49d95637ce298f2dcef1f2f67 (diff)
postgresql: Add dev output
This reduces the closure size of postgresql.out by 72 MiB.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/servers/sql/postgresql/default.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/servers/sql/postgresql/default.nix b/pkgs/servers/sql/postgresql/default.nix
index 8a3097ae9dee..022ac15aee7b 100644
--- a/pkgs/servers/sql/postgresql/default.nix
+++ b/pkgs/servers/sql/postgresql/default.nix
@@ -11,7 +11,7 @@ let
inherit sha256;
};
- outputs = [ "out" "lib" "doc" "man" ];
+ outputs = [ "out" "dev" "lib" "doc" "man" ];
setOutputFlags = false; # $out retains configureFlags :-/
buildInputs =
@@ -51,13 +51,11 @@ let
postInstall =
''
- moveToOutput "lib/pgxs" "$out" # looks strange, but not deleting it
+ moveToOutput "bin/pg_config" "$dev"
+ moveToOutput "lib/pgxs" "$dev" # looks strange, but not deleting it
moveToOutput "lib/*.a" "$out"
moveToOutput "lib/libecpg*" "$out"
- # Prevent a retained dependency on gcc-wrapper.
- substituteInPlace "$out/lib/pgxs/src/Makefile.global" --replace ${stdenv.cc}/bin/ld ld
-
# Remove static libraries in case dynamic are available.
for i in $out/lib/*.a; do
name="$(basename "$i")"