libassuan: use config flag to specify libgpg-error prefix

This commit is contained in:
Michael Eden 2019-03-16 11:42:32 -04:00 committed by Frederik Rietdijk
parent 19094e72bf
commit a7d2d7d5e8

@ -1,4 +1,4 @@
{ fetchurl, stdenv, gettext, pth, libgpgerror }:
{ fetchurl, stdenv, gettext, pth, libgpgerror, buildPackages }:
stdenv.mkDerivation rec {
pname = "libassuan";
@ -12,7 +12,12 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" "info" ];
outputBin = "dev"; # libassuan-config
buildInputs = [ libgpgerror pth gettext];
depsBuildBuild = [ buildPackages.stdenv.cc ];
buildInputs = [ pth gettext ];
configureFlags = [
"--with-libgpg-error-prefix=${libgpgerror.dev}"
];
doCheck = true;