about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/misc/gpshell/default.nix
blob: 108d6190cb7da923f7b25ff4aa9d77df40ad793c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchurl, pkgconfig, globalplatform, pcsclite, gppcscconnectionplugin
, makeWrapper
}:

stdenv.mkDerivation rec {
  pname = "gpshell";
  version = "1.4.4";

  src = fetchurl {
    url = "mirror://sourceforge/globalplatform/gpshell-${version}.tar.gz";
    sha256 = "19a77zvyf2vazbv17185s4pynhylk2ky8vhl4i8pg9zww29sicqi";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ globalplatform pcsclite makeWrapper ];

  postFixup = ''
    wrapProgram "$out/bin/gpshell" --prefix LD_LIBRARY_PATH : "${gppcscconnectionplugin}/lib"
  '';

  meta = with stdenv.lib; {
    homepage = https://sourceforge.net/p/globalplatform/wiki/Home/;
    description = "Smartcard management application";
    license = licenses.gpl3;
    platforms = platforms.all;
  };
}