summary refs log tree commit diff
path: root/pkgs/tools/security/gpgstats/default.nix
blob: 480ef5bf3e7e12d98c717619b7e9927cb2b36c04 (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 = platforms.unix;
  };
}