mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 20:54:56 +00:00
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>
41 lines
821 B
Nix
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;
|
|
};
|
|
}
|