2018-07-17 20:11:16 +00:00
|
|
|
{ stdenv, lib, fetchurl, makeWrapper, pkgconfig, udev, dbus, pcsclite
|
2015-11-13 12:24:03 +00:00
|
|
|
, wget, coreutils
|
2017-02-17 16:00:28 +00:00
|
|
|
, perl, pcscperl, Glib, Gtk2, Pango, Cairo
|
2015-11-13 12:24:03 +00:00
|
|
|
}:
|
2015-03-09 10:50:44 +00:00
|
|
|
|
2016-04-13 12:53:51 +00:00
|
|
|
let deps = lib.makeBinPath [ wget coreutils ];
|
2015-11-13 12:24:03 +00:00
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2018-10-11 20:34:28 +00:00
|
|
|
name = "pcsc-tools-1.5.3";
|
2015-03-09 10:50:44 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-11 20:34:28 +00:00
|
|
|
url = "http://ludovic.rousseau.free.fr/softwares/pcsc-tools/${name}.tar.bz2";
|
|
|
|
sha256 = "050x3yqd5ywl385zai3k1zhbm2lz1f5ksalfpm9hd86s50f03ans";
|
2015-03-09 10:50:44 +00:00
|
|
|
};
|
|
|
|
|
2018-07-17 20:11:16 +00:00
|
|
|
buildInputs = [ udev dbus perl pcsclite ];
|
2015-03-09 10:50:44 +00:00
|
|
|
|
2015-11-13 12:24:03 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper pkgconfig ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/scriptor \
|
|
|
|
--set PERL5LIB "${lib.makePerlPath [ pcscperl ]}"
|
|
|
|
wrapProgram $out/bin/gscriptor \
|
2017-02-17 16:00:28 +00:00
|
|
|
--set PERL5LIB "${lib.makePerlPath [ pcscperl Glib Gtk2 Pango Cairo ]}"
|
2015-11-13 12:24:03 +00:00
|
|
|
wrapProgram $out/bin/ATR_analysis \
|
|
|
|
--set PERL5LIB "${lib.makePerlPath [ pcscperl ]}"
|
|
|
|
wrapProgram $out/bin/pcsc_scan \
|
|
|
|
--set PATH "$out/bin:${deps}"
|
|
|
|
'';
|
2015-03-09 10:50:44 +00:00
|
|
|
|
2015-11-13 12:24:03 +00:00
|
|
|
meta = with lib; {
|
2015-03-09 10:50:44 +00:00
|
|
|
description = "Tools used to test a PC/SC driver, card or reader";
|
|
|
|
homepage = http://ludovic.rousseau.free.fr/softwares/pcsc-tools/;
|
2015-03-09 15:01:10 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2018-07-22 19:50:19 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.linux;
|
2015-03-09 10:50:44 +00:00
|
|
|
};
|
|
|
|
}
|