mariadb: fix build on non-x86_64 linux

pmdk is only available on x86_64-linux, yet included in other platforms.

Things tested:
 - build on x86_64-linux is the same (substituted from binary cache)
 - build on aarch64-linux doesn't crash now with an "unsupported system"
This commit is contained in:
Vika Shleina 2021-11-24 02:07:30 +03:00
parent 1799f8e87b
commit ccb2baa615
No known key found for this signature in database
GPG Key ID: 4F62CD07CE64796A

View File

@ -164,7 +164,8 @@ server = stdenv.mkDerivation (common // {
bzip2 lz4 lzo snappy xz zstd
cracklib judy libevent libxml2
] ++ optional (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAarch32) numactl
++ optionals stdenv.hostPlatform.isLinux [ linux-pam pmdk.dev ]
++ optionals stdenv.hostPlatform.isLinux [ linux-pam ]
++ optional (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64) pmdk.dev
++ optional (!stdenv.hostPlatform.isDarwin) mytopEnv
++ optionals withStorageMroonga [ kytea libsodium msgpack zeromq ];