Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
80 lines
1.8 KiB
Nix
80 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
autoconf,
|
|
autoconf-archive,
|
|
automake,
|
|
libtool,
|
|
gettext,
|
|
flex,
|
|
perl,
|
|
pkg-config,
|
|
pcsclite,
|
|
libusb1,
|
|
libiconv,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
version = "1.1.12";
|
|
pname = "acsccid";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/acsccid/acsccid-${finalAttrs.version}.tar.bz2";
|
|
sha256 = "sha256-KPYHWlSUpWjOL9hmbEifb0pRWZtE+8k5Dh3bSNPMxb0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
autoconf
|
|
autoconf-archive
|
|
automake
|
|
libtool
|
|
gettext
|
|
flex
|
|
perl
|
|
];
|
|
|
|
buildInputs = [
|
|
pcsclite
|
|
libusb1
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
libiconv
|
|
];
|
|
|
|
configureFlags = [
|
|
"--enable-usbdropdir=${placeholder "out"}/pcsc/drivers"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/Makefile.in \
|
|
--replace-fail '$(INSTALL_UDEV_RULE_FILE)' ""
|
|
patchShebangs src/convert_version.pl
|
|
patchShebangs src/create_Info_plist.pl
|
|
'';
|
|
|
|
meta = {
|
|
description = "PC/SC driver for Linux/Mac OS X and it supports ACS CCID smart card readers";
|
|
longDescription = ''
|
|
acsccid is a PC/SC driver for Linux/Mac OS X and it supports ACS CCID smart card
|
|
readers. This library provides a PC/SC IFD handler implementation and
|
|
communicates with the readers through the PC/SC Lite resource manager (pcscd).
|
|
|
|
acsccid is based on ccid. See CCID free software driver for more
|
|
information:
|
|
https://ccid.apdu.fr/
|
|
|
|
It can be enabled in /etc/nixos/configuration.nix by adding:
|
|
services.pcscd.enable = true;
|
|
services.pcscd.plugins = [ pkgs.acsccid ];
|
|
'';
|
|
homepage = "http://acsccid.sourceforge.net";
|
|
license = lib.licenses.lgpl2Plus;
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|