summary refs log tree commit diff
path: root/pkgs/tools/security/gpgstats/default.nix
blob: a04b87c8e3133e7a331f45cd7e07bf20d73cac52 (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
28
29
30
{ stdenv, fetchurl, ncurses, gpgme }:

stdenv.mkDerivation rec {
  name = "gpgstats-${version}";
  version = "0.5";

  src = fetchurl {
    url = "http://www.vanheusden.com/gpgstats/${name}.tgz";
    sha256 = "1n3njqhjwgfllcxs0xmk89dzgirrpfpfzkj71kqyvq97gc1wbcxy";
  };

  buildInputs = [ ncurses gpgme ];

  installPhase = ''
    mkdir -p $out/bin
    cp gpgstats $out/bin
  '';

  meta = with stdenv.lib; {
    description = "Calculates statistics on the keys in your gpg key-ring";
    longDescription = ''
    GPGstats calculates statistics on the keys in your key-ring.
    '';
    homepage = http://www.vanheusden.com/gpgstats/;
    license = licenses.gpl2;
    maintainers = with maintainers; [ davidak ];
    platforms = with platforms; unix;
  };
}