2015-10-03 00:38:15 +01:00
|
|
|
{ stdenv, fetchurl, ncurses, gpgme }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gpgstats-${version}";
|
|
|
|
version = "0.5";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://www.vanheusden.com/gpgstats/${name}.tgz";
|
2015-10-03 00:38:15 +01:00
|
|
|
sha256 = "1n3njqhjwgfllcxs0xmk89dzgirrpfpfzkj71kqyvq97gc1wbcxy";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses gpgme ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp gpgstats $out/bin
|
|
|
|
'';
|
|
|
|
|
2016-03-09 22:15:41 +00:00
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionals (!stdenv.is64bit)
|
|
|
|
[ "-D_FILE_OFFSET_BITS=64" "-DLARGEFILE_SOURCE=1" ];
|
|
|
|
|
2015-10-03 00:38:15 +01:00
|
|
|
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;
|
2015-10-11 21:09:23 +01:00
|
|
|
maintainers = with maintainers; [ davidak ];
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.unix;
|
2015-10-03 00:38:15 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|