Skip to content

Commit

Permalink
Merge pull request #209876 from helsinki-systems/fix/proxysql-py3
Browse files Browse the repository at this point in the history
proxysql: fix build after #201859
  • Loading branch information
dasJ authored Jan 10, 2023
2 parents a75791e + 8dbaf80 commit 6212a37
Showing 1 changed file with 30 additions and 14 deletions.
44 changes: 30 additions & 14 deletions pkgs/servers/sql/proxysql/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ stdenv
, lib
, applyPatches
, fetchFromGitHub
, autoconf
, automake
Expand All @@ -23,9 +24,10 @@
, openssl
, pcre
, perl
, python2
, python3
, re2
, zlib
, texinfo
}:

stdenv.mkDerivation rec {
Expand All @@ -50,7 +52,8 @@ stdenv.mkDerivation rec {
cmake
libtool
perl
python2
python3
texinfo # for makeinfo
];

buildInputs = [
Expand All @@ -65,6 +68,10 @@ stdenv.mkDerivation rec {

enableParallelBuilding = true;

# otherwise, it looks for …-1.15
ACLOCAL = "aclocal";
AUTOMAKE = "automake";

GIT_VERSION = version;

dontConfigure = true;
Expand Down Expand Up @@ -94,18 +101,27 @@ stdenv.mkDerivation rec {
}
${lib.concatMapStringsSep "\n"
(x: ''replace_dep "${x.f}" "${x.p.src}" "${x.p.pname or (builtins.parseDrvName x.p.name).name}" "${x.p.name}"'') [
{ f = "curl"; p = curl; }
{ f = "libconfig"; p = libconfig; }
{ f = "libdaemon"; p = libdaemon; }
{ f = "libev"; p = libev; }
{ f = "libinjection"; p = libinjection; }
{ f = "libmicrohttpd"; p = libmicrohttpd_0_9_69; }
{ f = "libssl"; p = openssl; }
{ f = "lz4"; p = lz4; }
{ f = "pcre"; p = pcre; }
{ f = "re2"; p = re2; }
]}
(x: ''replace_dep "${x.f}" "${x.p.src}" "${x.p.pname or (builtins.parseDrvName x.p.name).name}" "${x.p.name}"'') (
map (x: {
inherit (x) f;
p = x.p // {
src = applyPatches {
inherit (x.p) src patches;
};
};
}) [
{ f = "curl"; p = curl; }
{ f = "libconfig"; p = libconfig; }
{ f = "libdaemon"; p = libdaemon; }
{ f = "libev"; p = libev; }
{ f = "libinjection"; p = libinjection; }
{ f = "libmicrohttpd"; p = libmicrohttpd_0_9_69; }
{ f = "libssl"; p = openssl; }
{ f = "lz4"; p = lz4; }
{ f = "pcre"; p = pcre; }
{ f = "re2"; p = re2; }
]
)}
pushd libhttpserver
tar xf libhttpserver-0.18.1.tar.gz
Expand Down

0 comments on commit 6212a37

Please sign in to comment.