nixpkgs-suyu/pkgs/tools/security/pcsctools/default.nix

38 lines
1.2 KiB
Nix
Raw Normal View History

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