git.iko.soy/typeable/nixpkgs
on master help sign in
postgresql: Add dev output

This reduces the closure size of postgresql.out by 72 MiB.

commitb0280f598e4b3f6ebf33ad2115734e4735df443a authorEelco Dolstra <edolstra@gmail.com> dateMon 25 Sep 2017, 15:24 (9 years ago) parentb790a31
1 file changed+3−5
pkgs/servers/sql/postgresql/default.nix+3−5
pkgs/servers/sql/postgresql/default.nix+3−5
@@ -11,7 +11,7 @@ let
1111 inherit sha256;
1212 };
1313
14− outputs = [ "out" "lib" "doc" "man" ];
14+ outputs = [ "out" "dev" "lib" "doc" "man" ];
1515 setOutputFlags = false; # $out retains configureFlags :-/
1616
1717 buildInputs =
@@ -51,13 +51,11 @@ let
5151
5252 postInstall =
5353 ''
54− moveToOutput "lib/pgxs" "$out" # looks strange, but not deleting it
54+ moveToOutput "bin/pg_config" "$dev"
55+ moveToOutput "lib/pgxs" "$dev" # looks strange, but not deleting it
5556 moveToOutput "lib/*.a" "$out"
5657 moveToOutput "lib/libecpg*" "$out"
5758
58− # Prevent a retained dependency on gcc-wrapper.
59− substituteInPlace "$out/lib/pgxs/src/Makefile.global" --replace ${stdenv.cc}/bin/ld ld
60−
6159 # Remove static libraries in case dynamic are available.
6260 for i in $out/lib/*.a; do
6361 name="$(basename "$i")"