3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/pcsctools/default.nix

38 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchurl, makeWrapper, pkgconfig, udev, dbus, pcsclite
, wget, coreutils, perlPackages
2015-11-13 12:24:03 +00:00
}:
2015-03-09 10:50:44 +00:00
let deps = lib.makeBinPath [ wget coreutils ];
2015-11-13 12:24:03 +00:00
in stdenv.mkDerivation rec {
name = "pcsc-tools-1.5.4";
2015-03-09 10:50:44 +00:00
src = fetchurl {
2018-10-11 21:34:28 +01:00
url = "http://ludovic.rousseau.free.fr/softwares/pcsc-tools/${name}.tar.bz2";
sha256 = "14vw6ya8gzyw3lzyrsvfcxx7qm7ry39fbxcdqqh552c1lyxnm7n3";
2015-03-09 10:50:44 +00:00
};
buildInputs = [ udev dbus perlPackages.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 "${with perlPackages; makePerlPath [ pcscperl ]}"
2015-11-13 12:24:03 +00:00
wrapProgram $out/bin/gscriptor \
--set PERL5LIB "${with perlPackages; makePerlPath [ pcscperl Glib Gtk2 Pango Cairo ]}"
2015-11-13 12:24:03 +00:00
wrapProgram $out/bin/ATR_analysis \
--set PERL5LIB "${with perlPackages; makePerlPath [ pcscperl ]}"
2015-11-13 12:24:03 +00:00
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;
maintainers = with maintainers; [ ];
platforms = platforms.linux;
2015-03-09 10:50:44 +00:00
};
}