nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 40 lines 821 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 pkg-config, 6 gwenhywfar, 7 pcsclite, 8 zlib, 9}: 10 11let 12 inherit ((import ./sources.nix).libchipcard) hash releaseId version; 13in 14stdenv.mkDerivation rec { 15 pname = "libchipcard"; 16 inherit version; 17 18 src = fetchurl { 19 url = "https://www.aquamaniac.de/rdm/attachments/download/${releaseId}/libchipcard-${version}.tar.gz"; 20 inherit hash; 21 }; 22 23 nativeBuildInputs = [ pkg-config ]; 24 25 buildInputs = [ 26 gwenhywfar 27 pcsclite 28 zlib 29 ]; 30 31 makeFlags = [ "crypttokenplugindir=$(out)/lib/gwenhywfar/plugins/ct" ]; 32 33 meta = { 34 description = "Library for access to chipcards"; 35 homepage = "https://www.aquamaniac.de/rdm/projects/libchipcard"; 36 license = lib.licenses.lgpl21; 37 maintainers = with lib.maintainers; [ aszlig ]; 38 platforms = lib.platforms.linux; 39 }; 40}