diff options
author | Nikolay Amiantov <ab@fmap.me> | 2015-11-13 15:24:03 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2015-11-13 15:28:45 +0300 |
commit | f4ec8c9dc71d43e303e265b37d672a1b25baf391 (patch) | |
tree | 18a6c98cdf4159f5f9fd1e43ab0cac2ff8653570 /pkgs/tools/security/pcsctools | |
parent | 8286d0ba05effc081644d77046c7349243503fdc (diff) |
pcsctools: 1.4.23 -> 1.4.25
Diffstat (limited to 'pkgs/tools/security/pcsctools')
-rw-r--r-- | pkgs/tools/security/pcsctools/default.nix | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/pkgs/tools/security/pcsctools/default.nix b/pkgs/tools/security/pcsctools/default.nix index 72e43f15fe62d..59db6889a5789 100644 --- a/pkgs/tools/security/pcsctools/default.nix +++ b/pkgs/tools/security/pcsctools/default.nix @@ -1,22 +1,36 @@ -{ stdenv, fetchurl, pkgconfig, udev, dbus_libs, perl, pcsclite }: +{ stdenv, lib, fetchurl, makeWrapper, pkgconfig, udev, dbus_libs, pcsclite +, wget, coreutils +, perl, pcscperl, Glib, Gtk2, Pango +}: -stdenv.mkDerivation rec { - name = "pcsc-tools-1.4.23"; +let deps = lib.makeSearchPath "bin" [ wget coreutils ]; + +in stdenv.mkDerivation rec { + name = "pcsc-tools-1.4.25"; src = fetchurl { - url = "http://ludovic.rousseau.free.fr/softwares/pcsc-tools/pcsc-tools-1.4.23.tar.gz"; - sha256 = "1qjgvvvwhykmzn4js9s3rjnp9pbjc3sz4lb4d7i9kvr3xsv7pjk9"; + url = "http://ludovic.rousseau.free.fr/softwares/pcsc-tools/${name}.tar.gz"; + sha256 = "0iqcy28pb963ds4pjrpi37577vm6nkgf3i0b3rr978jy9qi1bix9"; }; buildInputs = [ udev dbus_libs perl pcsclite ]; - preBuild = '' - makeFlags=DESTDIR=$out - ''; + makeFlags = [ "DESTDIR=$(out)" ]; - nativeBuildInputs = [ pkgconfig ]; + 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 ]}" + wrapProgram $out/bin/ATR_analysis \ + --set PERL5LIB "${lib.makePerlPath [ pcscperl ]}" + wrapProgram $out/bin/pcsc_scan \ + --set PATH "$out/bin:${deps}" + ''; - meta = with stdenv.lib; { + 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; |