2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, ncurses, gpgme }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gpgstats";
|
|
|
|
version = "0.5";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.vanheusden.com/gpgstats/${pname}-${version}.tgz";
|
|
|
|
sha256 = "1n3njqhjwgfllcxs0xmk89dzgirrpfpfzkj71kqyvq97gc1wbcxy";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses gpgme ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp gpgstats $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
NIX_CFLAGS_COMPILE = lib.optionalString (!stdenv.is64bit)
|
2020-04-24 23:36:52 +00:00
|
|
|
"-D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|