2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, glib, nss }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libcacard";
|
2021-12-30 13:39:12 +00:00
|
|
|
version = "2.8.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.spice-space.org/download/libcacard/${pname}-${version}.tar.xz";
|
2021-12-30 13:39:12 +00:00
|
|
|
sha256 = "sha256-+79N6Mt9tb3/XstnL/Db5pOfufNEuQDVG6YpUymjMuc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
postPatch = lib.optionalString stdenv.isDarwin ''
|
|
|
|
sed -i '/--version-script/d' Makefile.in
|
|
|
|
sed -i 's/^vflag = .*$/vflag = ""/' meson.build
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ glib nss ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Smart card emulation library";
|
|
|
|
homepage = "https://gitlab.freedesktop.org/spice/libcacard";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ yegortimoshenko ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|