From b0280f598e4b3f6ebf33ad2115734e4735df443a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 25 Sep 2017 15:24:28 +0200 Subject: postgresql: Add dev output This reduces the closure size of postgresql.out by 72 MiB. --- pkgs/servers/sql/postgresql/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'pkgs/servers/sql') 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")" -- cgit 1.4.1