9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
42 lines
941 B
Nix
42 lines
941 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, pkg-config, pcsclite, libusb-compat-0_1
|
|
, doxygen, libxslt
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "openct";
|
|
version = "0.6.20";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OpenSC";
|
|
repo = "openct";
|
|
rev = "${pname}-${version}";
|
|
sha256 = "09wxq0jxdxhci3zr7jd3zcxjkl3j0r1v00k3q8gqrg9gighh8nk2";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i 's,$(DESTDIR),$(out),g' etc/Makefile.am
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--enable-api-doc"
|
|
"--enable-usb"
|
|
"--enable-pcsc"
|
|
"--localstatedir=/var"
|
|
"--sysconfdir=/etc"
|
|
];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
buildInputs = [ pcsclite libusb-compat-0_1 doxygen libxslt ];
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/etc
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://github.com/OpenSC/openct/";
|
|
license = licenses.lgpl21;
|
|
description = "Drivers for several smart card readers";
|
|
platforms = platforms.all;
|
|
};
|
|
}
|