mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
mysql: fix building on Apple Silicon
rpcsvc-proto doesn't build for aarch64-darwin (`struct stat64` isn't declared), but it isn't actually necessary on Darwin/clang.
This commit is contained in:
parent
baf5e666c6
commit
9c76b17933
2 changed files with 4 additions and 2 deletions
|
@ -21,7 +21,8 @@ self = stdenv.mkDerivation rec {
|
|||
export PATH=$PATH:$TMPDIR
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake bison pkg-config rpcsvc-proto ];
|
||||
nativeBuildInputs = [ bison cmake pkg-config ]
|
||||
++ lib.optionals (!stdenv.isDarwin) [ rpcsvc-proto ];
|
||||
|
||||
buildInputs = [ boost libedit libevent lz4 ncurses openssl protobuf readline zlib ]
|
||||
++ lib.optionals stdenv.isDarwin [ perl cctools CoreServices developer_cmds ]
|
||||
|
|
|
@ -17,7 +17,8 @@ self = stdenv.mkDerivation rec {
|
|||
./abi-check.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ bison cmake pkg-config rpcsvc-proto ];
|
||||
nativeBuildInputs = [ bison cmake pkg-config ]
|
||||
++ lib.optionals (!stdenv.isDarwin) [ rpcsvc-proto ];
|
||||
|
||||
## NOTE: MySQL upstream frequently twiddles the invocations of libtool. When updating, you might proactively grep for libtool references.
|
||||
postPatch = ''
|
||||
|
|
Loading…
Reference in a new issue