Merge pull request #103287 from happysalada/postgresql_add_debug
postgresql: add debug versions
This commit is contained in:
commit
ebe455a410
@ -41,6 +41,8 @@ let
|
|||||||
|
|
||||||
enableParallelBuilding = !stdenv.isDarwin;
|
enableParallelBuilding = !stdenv.isDarwin;
|
||||||
|
|
||||||
|
separateDebugInfo = true;
|
||||||
|
|
||||||
buildFlags = [ "world" ];
|
buildFlags = [ "world" ];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2";
|
NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2";
|
||||||
@ -54,6 +56,7 @@ let
|
|||||||
"--sysconfdir=/etc"
|
"--sysconfdir=/etc"
|
||||||
"--libdir=$(lib)/lib"
|
"--libdir=$(lib)/lib"
|
||||||
"--with-system-tzdata=${tzdata}/share/zoneinfo"
|
"--with-system-tzdata=${tzdata}/share/zoneinfo"
|
||||||
|
"--enable-debug"
|
||||||
(lib.optionalString enableSystemd "--with-systemd")
|
(lib.optionalString enableSystemd "--with-systemd")
|
||||||
(if stdenv.isDarwin then "--with-uuid=e2fs" else "--with-ossp-uuid")
|
(if stdenv.isDarwin then "--with-uuid=e2fs" else "--with-ossp-uuid")
|
||||||
] ++ lib.optionals icuEnabled [ "--with-icu" ];
|
] ++ lib.optionals icuEnabled [ "--with-icu" ];
|
||||||
@ -162,6 +165,7 @@ let
|
|||||||
];
|
];
|
||||||
buildInputs = [ makeWrapper ];
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
|
||||||
# We include /bin to ensure the $out/bin directory is created, which is
|
# We include /bin to ensure the $out/bin directory is created, which is
|
||||||
# needed because we'll be removing the files from that directory in postBuild
|
# needed because we'll be removing the files from that directory in postBuild
|
||||||
# below. See #22653
|
# below. See #22653
|
||||||
@ -230,5 +234,4 @@ in self: {
|
|||||||
this = self.postgresql_13;
|
this = self.postgresql_13;
|
||||||
inherit self;
|
inherit self;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user