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.6 KiB
Nix
80 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
pkg-config,
|
|
zlib,
|
|
readline,
|
|
openssl,
|
|
libiconv,
|
|
pcsclite,
|
|
libassuan,
|
|
libXt,
|
|
docbook_xsl,
|
|
libxslt,
|
|
docbook_xml_dtd_412,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "opensc";
|
|
version = "0.26.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OpenSC";
|
|
repo = "OpenSC";
|
|
tag = version;
|
|
hash = "sha256-H5df+x15fz28IlL/G9zPBxbNBzc+BlDmmgNZVEYQgac=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
autoreconfHook
|
|
libxslt # xsltproc
|
|
];
|
|
buildInputs = [
|
|
zlib
|
|
readline
|
|
openssl
|
|
libassuan
|
|
libXt
|
|
libiconv
|
|
docbook_xml_dtd_412
|
|
]
|
|
++ lib.optional (!stdenv.hostPlatform.isDarwin) pcsclite;
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-error";
|
|
|
|
configureFlags = [
|
|
"--enable-zlib"
|
|
"--enable-readline"
|
|
"--enable-openssl"
|
|
"--enable-pcsc"
|
|
"--enable-sm"
|
|
"--enable-man"
|
|
"--enable-doc"
|
|
"--localstatedir=/var"
|
|
"--sysconfdir=/etc"
|
|
"--with-xsl-stylesheetsdir=${docbook_xsl}/xml/xsl/docbook"
|
|
]
|
|
++
|
|
lib.optional (!stdenv.hostPlatform.isDarwin)
|
|
"--with-pcsc-provider=${lib.getLib pcsclite}/lib/libpcsclite${stdenv.hostPlatform.extensions.sharedLibrary}";
|
|
|
|
installFlags = [
|
|
"sysconfdir=$(out)/etc"
|
|
"completiondir=$(out)/etc"
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "Set of libraries and utilities to access smart cards";
|
|
homepage = "https://github.com/OpenSC/OpenSC/wiki";
|
|
license = licenses.lgpl21Plus;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.michaeladler ];
|
|
};
|
|
}
|