summary refs log blame commit diff
path: root/pkgs/development/libraries/aqbanking/libchipcard.nix
blob: f483f232e37b1930317df7a8ea742d65670bcab9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                                  
 


                                                                        
                        
                  
 

                                                                                                       
                   

    
                                     






                                                                         
                    
                                                    
                                                                    




                                               
{ 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;
  };
}