mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
85 lines
1.8 KiB
Nix
85 lines
1.8 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoconf
|
|
, automake
|
|
, libtool
|
|
, gettext
|
|
, flex
|
|
, perl
|
|
, pkg-config
|
|
, pcsclite
|
|
, libusb1
|
|
, libiconv
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.1.8";
|
|
pname = "acsccid";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "acshk";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "12aahrvsk21qgpjwcrr01s742ixs44nmjkvcvqyzhqb307x1rrn3";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
autoconf
|
|
automake
|
|
libtool
|
|
gettext
|
|
flex
|
|
perl
|
|
];
|
|
|
|
buildInputs = [
|
|
pcsclite
|
|
libusb1
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
libiconv
|
|
];
|
|
|
|
configureFlags = [
|
|
"--enable-usbdropdir=${placeholder "out"}/pcsc/drivers"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
postPatch = ''
|
|
sed -e s_/bin/echo_echo_g -i src/Makefile.am
|
|
patchShebangs src/convert_version.pl
|
|
patchShebangs src/create_Info_plist.pl
|
|
'';
|
|
|
|
preConfigure = ''
|
|
libtoolize --force
|
|
aclocal
|
|
autoheader
|
|
automake --force-missing --add-missing
|
|
autoconf
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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 = src.meta.homepage;
|
|
license = licenses.lgpl2Plus;
|
|
maintainers = [ ];
|
|
platforms = with platforms; unix;
|
|
};
|
|
}
|