forked from mirrors/nixpkgs
69b393ace5
These URLs are reported as problematic by Repology. It could be a permanent redirection or the page does not exist anymore
34 lines
1,004 B
Nix
34 lines
1,004 B
Nix
{ stdenv, fetchurl, pkgconfig, gwenhywfar, pcsclite, zlib }:
|
|
|
|
let
|
|
inherit ((import ./sources.nix).libchipcard) sha256 releaseId version;
|
|
in stdenv.mkDerivation rec {
|
|
pname = "libchipcard";
|
|
inherit version;
|
|
|
|
src = let
|
|
qstring = "package=02&release=${releaseId}&file=01";
|
|
mkURLs = map (base: "${base}/sites/download/download.php?${qstring}");
|
|
in fetchurl {
|
|
name = "${pname}-${version}.tar.gz";
|
|
urls = mkURLs [ "http://www.aquamaniac.de" "http://www2.aquamaniac.de" ];
|
|
inherit sha256;
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ gwenhywfar pcsclite zlib ];
|
|
|
|
makeFlags = [ "crypttokenplugindir=$(out)/lib/gwenhywfar/plugins/ct" ];
|
|
|
|
configureFlags = [ "--with-gwen-dir=${gwenhywfar}" ];
|
|
|
|
meta = with stdenv.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;
|
|
};
|
|
}
|