mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 05:00:16 +00:00
Merge pull request #61687 from erictapen/opensc-cross-fix
opensc: fix cross compilation
This commit is contained in:
commit
1b7ebf191e
|
@ -1,4 +1,4 @@
|
|||
{ fetchurl, stdenv, gettext, pth, libgpgerror, buildPackages }:
|
||||
{ fetchurl, stdenv, gettext, npth, libgpgerror, buildPackages }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libassuan";
|
||||
|
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
|||
outputBin = "dev"; # libassuan-config
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
buildInputs = [ pth gettext ];
|
||||
buildInputs = [ npth gettext ];
|
||||
|
||||
configureFlags = [
|
||||
"--with-libgpg-error-prefix=${libgpgerror.dev}"
|
||||
|
@ -37,5 +37,6 @@ stdenv.mkDerivation rec {
|
|||
homepage = http://gnupg.org;
|
||||
license = licenses.lgpl2Plus;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.erictapen ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
@ -58,5 +60,6 @@ stdenv.mkDerivation rec {
|
|||
homepage = https://github.com/OpenSC/OpenSC/wiki;
|
||||
license = licenses.lgpl21Plus;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.erictapen ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue