mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
gnupg: Fix default path to pcsclite
This commit is contained in:
parent
d388855731
commit
9631f5a718
@ -1,5 +1,5 @@
|
||||
{ fetchurl, stdenv, readline, zlib, libgpgerror, pth, libgcrypt, libassuan
|
||||
, libksba, coreutils, libiconv
|
||||
, libksba, coreutils, libiconv, pcsclite
|
||||
# Each of the dependencies below are optional.
|
||||
# Gnupg can be built without them at the cost of reduced functionality.
|
||||
, pinentry ? null, openldap ? null, bzip2 ? null, libusb ? null, curl ? null
|
||||
@ -19,6 +19,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
patchPhase = ''
|
||||
find tests -type f | xargs sed -e 's@/bin/pwd@${coreutils}&@g' -i
|
||||
sed -i 's,"libpcsclite\.so[^"]*","${pcsclite}/lib/libpcsclite.so",g' scd/scdaemon.c
|
||||
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
find . -name pcsc-wrapper.c | xargs sed -i 's/typedef unsinged int pcsc_dword_t/typedef unsigned int pcsc_dword_t/'
|
||||
'' + ''
|
||||
|
@ -1,6 +1,7 @@
|
||||
{ fetchurl, stdenv, pkgconfig, libgcrypt, libassuan, libksba, npth
|
||||
, readline ? null, libusb ? null, gnutls ? null, adns ? null, openldap ? null
|
||||
, zlib ? null, bzip2 ? null, pinentry ? null, autoreconfHook, gettext
|
||||
, pcsclite
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
@ -14,6 +15,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
patches = [ ./socket-activate-2.1.1.patch ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's,"libpcsclite\.so[^"]*","${pcsclite}/lib/libpcsclite.so",g' scd/scdaemon.c
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
pkgconfig libgcrypt libassuan libksba npth
|
||||
readline libusb gnutls adns openldap zlib bzip2
|
||||
|
Loading…
Reference in New Issue
Block a user