2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gwenhywfar, pcsclite, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2022-07-18 16:21:45 +00:00
|
|
|
inherit ((import ./sources.nix).libchipcard) hash releaseId version;
|
2020-04-24 23:36:52 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "libchipcard";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.aquamaniac.de/rdm/attachments/download/${releaseId}/${pname}-${version}.tar.gz";
|
2022-07-18 16:21:45 +00:00
|
|
|
inherit hash;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ gwenhywfar pcsclite zlib ];
|
|
|
|
|
|
|
|
makeFlags = [ "crypttokenplugindir=$(out)/lib/gwenhywfar/plugins/ct" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Library for access to chipcards";
|
|
|
|
homepage = "https://www.aquamaniac.de/rdm/projects/libchipcard";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ aszlig ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|