Files
nixpkgs/pkgs/development/libraries/aqbanking/libchipcard.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

41 lines
821 B
Nix

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