forked from mirrors/nixpkgs
73112a6e78
Fixes this: $ gscriptor Can't load '/nix/store/17w6hdwbli924v7d43xxxp66qhgqpc24-perl-Pango-1.227/lib/perl5/site_perl/5.22.2/x86_64-linux-thread-multi/auto/Pango/Pango.so' for module Pango: /nix/store/17w6hdwbli924v7d43xxxp66qhgqpc24-perl-Pango-1.227/lib/perl5/site_perl/5.22.2/x86_64-linux-thread-multi/auto/Pango/Pango.so: undefined symbol: cairo_font_type_to_sv at /nix/store/5z1wn7knhckr3a0asb8lzp99sdai09f2-perl-5.22.2/lib/perl5/5.22.2/x86_64-linux-thread-multi/DynaLoader.pm line 193. at /nix/store/srdac7af3nz6fb74haa8l8ls9wd9pas0-perl-Gtk2-1.2498/lib/perl5/site_perl/5.22.2/x86_64-linux-thread-multi/Gtk2.pm line 31. Compilation failed in require at /nix/store/srdac7af3nz6fb74haa8l8ls9wd9pas0-perl-Gtk2-1.2498/lib/perl5/site_perl/5.22.2/x86_64-linux-thread-multi/Gtk2.pm line 31. BEGIN failed--compilation aborted at /nix/store/srdac7af3nz6fb74haa8l8ls9wd9pas0-perl-Gtk2-1.2498/lib/perl5/site_perl/5.22.2/x86_64-linux-thread-multi/Gtk2.pm line 31. Compilation failed in require at /nix/store/sgy2xsyvmam09pl25x8gb507gyiz9ybn-pcsc-tools-1.4.25/bin/.gscriptor-wrapped line 28. BEGIN failed--compilation aborted at /nix/store/sgy2xsyvmam09pl25x8gb507gyiz9ybn-pcsc-tools-1.4.25/bin/.gscriptor-wrapped line 28.
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ stdenv, lib, fetchurl, makeWrapper, pkgconfig, udev, dbus_libs, pcsclite
|
|
, wget, coreutils
|
|
, perl, pcscperl, Glib, Gtk2, Pango, Cairo
|
|
}:
|
|
|
|
let deps = lib.makeBinPath [ wget coreutils ];
|
|
|
|
in stdenv.mkDerivation rec {
|
|
name = "pcsc-tools-1.4.25";
|
|
|
|
src = fetchurl {
|
|
url = "http://ludovic.rousseau.free.fr/softwares/pcsc-tools/${name}.tar.gz";
|
|
sha256 = "0iqcy28pb963ds4pjrpi37577vm6nkgf3i0b3rr978jy9qi1bix9";
|
|
};
|
|
|
|
buildInputs = [ udev dbus_libs perl pcsclite ];
|
|
|
|
makeFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
nativeBuildInputs = [ makeWrapper pkgconfig ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/scriptor \
|
|
--set PERL5LIB "${lib.makePerlPath [ pcscperl ]}"
|
|
wrapProgram $out/bin/gscriptor \
|
|
--set PERL5LIB "${lib.makePerlPath [ pcscperl Glib Gtk2 Pango Cairo ]}"
|
|
wrapProgram $out/bin/ATR_analysis \
|
|
--set PERL5LIB "${lib.makePerlPath [ pcscperl ]}"
|
|
wrapProgram $out/bin/pcsc_scan \
|
|
--set PATH "$out/bin:${deps}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Tools used to test a PC/SC driver, card or reader";
|
|
homepage = http://ludovic.rousseau.free.fr/softwares/pcsc-tools/;
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ viric ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|