2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, glib, nss }:
|
2018-10-12 20:58:38 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "libcacard";
|
2021-12-10 10:21:49 +01:00
|
|
|
version = "2.8.1";
|
2018-10-12 20:58:38 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://www.spice-space.org/download/libcacard/${pname}-${version}.tar.xz";
|
2021-12-10 10:21:49 +01:00
|
|
|
sha256 = "sha256-+79N6Mt9tb3/XstnL/Db5pOfufNEuQDVG6YpUymjMuc=";
|
2018-10-12 20:58:38 +02:00
|
|
|
};
|
|
|
|
|
2021-12-10 10:21:49 +01:00
|
|
|
postPatch = lib.optionalString stdenv.isDarwin ''
|
|
|
|
sed -i '/--version-script/d' Makefile.in
|
|
|
|
sed -i 's/^vflag = .*$/vflag = ""/' meson.build
|
|
|
|
'';
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2018-10-12 20:58:38 +02:00
|
|
|
buildInputs = [ glib nss ];
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2018-10-12 20:58:38 +02:00
|
|
|
description = "Smart card emulation library";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://gitlab.freedesktop.org/spice/libcacard";
|
2018-10-12 20:58:38 +02:00
|
|
|
license = licenses.lgpl21;
|
2021-12-31 19:48:55 +01:00
|
|
|
maintainers = with maintainers; [ yana ];
|
2018-10-12 20:58:38 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|