opensc: fix cross compilation
Apparently, the location of xsltproc needs to be manually speciefied when cross compiling. Also autoreconfHook needs to be in nativeBuildInputs.
This commit is contained in:
parent
f47e545578
commit
9310d09dae
@ -1,7 +1,7 @@
|
|||||||
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, zlib, readline, openssl
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, zlib, readline, openssl
|
||||||
, libiconv, pcsclite, libassuan, libXt
|
, libiconv, pcsclite, libassuan, libXt
|
||||||
, docbook_xsl, libxslt, docbook_xml_dtd_412
|
, docbook_xsl, libxslt, docbook_xml_dtd_412
|
||||||
, Carbon, PCSC
|
, Carbon, PCSC, buildPackages
|
||||||
, withApplePCSC ? stdenv.isDarwin
|
, withApplePCSC ? stdenv.isDarwin
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -16,9 +16,9 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "10575gb9l38cskq7swyjp0907wlziyxg4ppq33ndz319dsx69d87";
|
sha256 = "10575gb9l38cskq7swyjp0907wlziyxg4ppq33ndz319dsx69d87";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
autoreconfHook zlib readline openssl libassuan
|
zlib readline openssl libassuan
|
||||||
libXt libxslt libiconv docbook_xml_dtd_412
|
libXt libxslt libiconv docbook_xml_dtd_412
|
||||||
]
|
]
|
||||||
++ stdenv.lib.optional stdenv.isDarwin Carbon
|
++ stdenv.lib.optional stdenv.isDarwin Carbon
|
||||||
@ -43,6 +43,8 @@ stdenv.mkDerivation rec {
|
|||||||
else
|
else
|
||||||
"${stdenv.lib.getLib pcsclite}/lib/libpcsclite${stdenv.hostPlatform.extensions.sharedLibrary}"
|
"${stdenv.lib.getLib pcsclite}/lib/libpcsclite${stdenv.hostPlatform.extensions.sharedLibrary}"
|
||||||
}"
|
}"
|
||||||
|
(stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform)
|
||||||
|
"XSLTPROC=${buildPackages.libxslt}/bin/xsltproc")
|
||||||
];
|
];
|
||||||
|
|
||||||
PCSC_CFLAGS = stdenv.lib.optionalString withApplePCSC
|
PCSC_CFLAGS = stdenv.lib.optionalString withApplePCSC
|
||||||
|
Loading…
x
Reference in New Issue
Block a user