zoneminder: fix build

This commit is contained in:
Izorkin 2019-10-10 22:05:19 +03:00
parent 7470e6e6de
commit 8ef9a614b6

View File

@ -1,5 +1,5 @@
{ stdenv, lib, fetchFromGitHub, fetchurl, cmake, makeWrapper, pkgconfig
, curl, ffmpeg, glib, libjpeg, libselinux, libsepol, mp4v2, mysql, pcre, perl, perlPackages
, curl, ffmpeg, glib, libjpeg, libselinux, libsepol, mp4v2, libmysqlclient, mysql, pcre, perl, perlPackages
, polkit, utillinuxMinimal, x264, zlib
, coreutils, procps, psmisc }:
@ -123,7 +123,7 @@ in stdenv.mkDerivation rec {
done
substituteInPlace scripts/zmdbbackup.in \
--replace /usr/bin/mysqldump ${mysql}/bin/mysqldump
--replace /usr/bin/mysqldump ${mysql.client}/bin/mysqldump
for f in scripts/ZoneMinder/lib/ZoneMinder/Config.pm.in \
scripts/zmupdate.pl.in \
@ -140,7 +140,7 @@ in stdenv.mkDerivation rec {
'';
buildInputs = [
curl ffmpeg glib libjpeg libselinux libsepol mp4v2 mysql pcre perl polkit x264 zlib
curl ffmpeg glib libjpeg libselinux libsepol mp4v2 libmysqlclient mysql.client pcre perl polkit x264 zlib
utillinuxMinimal # for libmount
] ++ (with perlPackages; [
# build-time dependencies