depot/third_party/nixpkgs/pkgs/development/libraries/aqbanking/libchipcard.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

29 lines
848 B
Nix

{ lib, stdenv, fetchurl, pkg-config, gwenhywfar, pcsclite, zlib }:
let
inherit ((import ./sources.nix).libchipcard) sha256 releaseId version;
in stdenv.mkDerivation rec {
pname = "libchipcard";
inherit version;
src = fetchurl {
url = "https://www.aquamaniac.de/rdm/attachments/download/${releaseId}/${pname}-${version}.tar.gz";
inherit sha256;
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gwenhywfar pcsclite zlib ];
makeFlags = [ "crypttokenplugindir=$(out)/lib/gwenhywfar/plugins/ct" ];
configureFlags = [ "--with-gwen-dir=${gwenhywfar}" ];
meta = with lib; {
description = "Library for access to chipcards";
homepage = "https://www.aquamaniac.de/rdm/projects/libchipcard";
license = licenses.lgpl21;
maintainers = with maintainers; [ aszlig ];
platforms = platforms.linux;
};
}