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 changed files with 5 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, zlib, readline, openssl
|
||||
, libiconv, pcsclite, libassuan, libXt
|
||||
, docbook_xsl, libxslt, docbook_xml_dtd_412
|
||||
, Carbon, PCSC
|
||||
, Carbon, PCSC, buildPackages
|
||||
, withApplePCSC ? stdenv.isDarwin
|
||||
}:
|
||||
|
||||
|
@ -16,9 +16,9 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "10575gb9l38cskq7swyjp0907wlziyxg4ppq33ndz319dsx69d87";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
||||
buildInputs = [
|
||||
autoreconfHook zlib readline openssl libassuan
|
||||
zlib readline openssl libassuan
|
||||
libXt libxslt libiconv docbook_xml_dtd_412
|
||||
]
|
||||
++ stdenv.lib.optional stdenv.isDarwin Carbon
|
||||
|
@ -43,6 +43,8 @@ stdenv.mkDerivation rec {
|
|||
else
|
||||
"${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
|
||||
|
|
Loading…
Reference in a new issue