File tree 6 files changed +13
-11
lines changed
6 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 99
99
} ;
100
100
101
101
postgresql = {
102
- configureFlags = [ "--with-pgsql=${ postgresql . dev } " ] ;
102
+ configureFlags = [ "--with-pgsql=${ postgresql } " ] ;
103
103
buildInputs = [ postgresql ] ;
104
104
} ;
105
105
106
106
pdo_pgsql = {
107
- configureFlags = [ "--with-pdo-pgsql=${ postgresql . dev } " ] ;
107
+ configureFlags = [ "--with-pdo-pgsql=${ postgresql } " ] ;
108
108
buildInputs = [ postgresql ] ;
109
109
} ;
110
110
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
28
28
"--with-png=${ libpng . dev } " # optional
29
29
"--with-poppler=${ poppler . dev } " # optional
30
30
"--with-libz=${ zlib . dev } " # optional
31
- "--with-pg=${ postgresql . dev } /bin/pg_config"
31
+ "--with-pg=${ postgresql } /bin/pg_config"
32
32
"--with-mysql=${ mysql . lib . dev } /bin/mysql_config"
33
33
"--with-geotiff=${ libgeotiff } "
34
34
"--with-sqlite3=${ sqlite . dev } "
Original file line number Diff line number Diff line change 183
183
184
184
pg = attrs : {
185
185
buildFlags = [
186
- "--with-pg-config=${ postgresql . dev } /bin/pg_config"
186
+ "--with-pg-config=${ postgresql } /bin/pg_config"
187
187
] ;
188
188
} ;
189
189
Original file line number Diff line number Diff line change 11
11
inherit sha256 ;
12
12
} ;
13
13
14
- outputs = [ "out" "dev" " lib" "doc" "man" ] ;
14
+ outputs = [ "out" "lib" "doc" "man" ] ;
15
15
setOutputFlags = false ; # $out retains configureFlags :-/
16
16
17
17
buildInputs =
46
46
let path = if atLeast "9.6" then "src/common/config_info.c" else "src/bin/pg_config/pg_config.c" ; in
47
47
''
48
48
# Hardcode the path to pgxs so pg_config returns the path in $out
49
- substituteInPlace "${ path } " --replace HARDCODED_PGXS_PATH $dev /lib
49
+ substituteInPlace "${ path } " --replace HARDCODED_PGXS_PATH $out /lib
50
50
'' ;
51
51
52
52
postInstall =
53
53
''
54
- moveToOutput "bin/pg_config" "$dev"
55
- moveToOutput "lib/pgxs" "$dev" # looks strange, but not deleting it
54
+ moveToOutput "lib/pgxs" "$out" # looks strange, but not deleting it
56
55
moveToOutput "lib/*.a" "$out"
57
56
moveToOutput "lib/libecpg*" "$out"
58
57
58
+ # Prevent a retained dependency on gcc-wrapper.
59
+ substituteInPlace "$out/lib/pgxs/src/Makefile.global" --replace ${ stdenv . cc } /bin/ld ld
60
+
59
61
# Remove static libraries in case dynamic are available.
60
62
for i in $out/lib/*.a; do
61
63
name="$(basename "$i")"
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ stdenv.mkDerivation rec {
12
12
# acl relies on attr, which I can't get to build on darwin
13
13
++ stdenv . lib . optional ( ! stdenv . isDarwin ) acl ;
14
14
15
- configureFlags = [
15
+ configureFlags = [
16
16
"--with-sqlite3=${ sqlite . dev } "
17
- "--with-postgresql=${ postgresql . dev } "
17
+ "--with-postgresql=${ postgresql } "
18
18
] ;
19
19
20
20
postInstall = ''
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
21
21
configureFlags = [
22
22
"--localstatedir=/var"
23
23
"--with-botan-config=${ botan } /bin/botan-config-1.10"
24
- "--with-dhcp-pgsql=${ postgresql . dev } /bin/pg_config"
24
+ "--with-dhcp-pgsql=${ postgresql } /bin/pg_config"
25
25
"--with-dhcp-mysql=${ mysql . client . dev } /bin/mysql_config"
26
26
] ;
27
27
You can’t perform that action at this time.
0 commit comments