nixpkgs/pkgs/development/libraries/libcacard/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
779 B
Nix
Raw Normal View History

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